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

Unified Diff: sky/tests/lowlevel/create-document.sky

Issue 697363002: Remove DOMImplementation. (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/lowlevel/create-document.sky
diff --git a/sky/tests/lowlevel/dom-implementation-create-document.sky b/sky/tests/lowlevel/create-document.sky
similarity index 53%
rename from sky/tests/lowlevel/dom-implementation-create-document.sky
rename to sky/tests/lowlevel/create-document.sky
index 62e65b382be13f03e8d167621d5305a7ba6218c4..cb4f7c3f0d8fbaf367dedbcd8d7cef7f9db7f45b 100644
--- a/sky/tests/lowlevel/dom-implementation-create-document.sky
+++ b/sky/tests/lowlevel/create-document.sky
@@ -2,10 +2,10 @@
<import src="../resources/chai.sky" />
<import src="../resources/mocha.sky" />
<script>
-describe('DOMImplementation', function() {
- it('should let you create a document', function() {
- var doc = document.implementation.createDocument();
- assert.isNotNull(doc, 'createDocument should return a value');
+describe('Document', 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');

Powered by Google App Engine
This is Rietveld 408576698