Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: sky/tests/modules/application.sky

Issue 697873007: Add Module and Application interfaces (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/tests/modules/application.sky
diff --git a/sky/tests/lowlevel/create-document.sky b/sky/tests/modules/application.sky
similarity index 50%
copy from sky/tests/lowlevel/create-document.sky
copy to sky/tests/modules/application.sky
index cb4f7c3f0d8fbaf367dedbcd8d7cef7f9db7f45b..6fa8af1912882c77ad0446ace3bef21fc9c97c1c 100644
--- a/sky/tests/lowlevel/create-document.sky
+++ b/sky/tests/modules/application.sky
@@ -2,13 +2,12 @@
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
-describe('Document', function() {
+describe('Application', function() {
it('should have a constructor', function() {
var doc = new Document();
- assert.isNotNull(doc);
- assert.doesNotThrow(function() {
- doc.registerElement('x-foo');
- }, 'new document should have a registration context');
+ var app = new Application(doc, "http://www.example.com/app");
+ assert.equal(app.document, doc);
+ assert.equal(app.url, "http://www.example.com/app");
});
});
</script>

Powered by Google App Engine
This is Rietveld 408576698