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> |