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

Side by Side Diff: sky/tests/lowlevel/createElement.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 unified diff | Download patch
OLDNEW
1 <test> 1 <test>
2 <import src="../resources/chai.sky" /> 2 <import src="../resources/chai.sky" />
3 <import src="../resources/mocha.sky" /> 3 <import src="../resources/mocha.sky" />
4 <script> 4 <script>
5 describe('createElementNS tests from mozilla, attached to webkit bug 16833', fun ction() { 5 describe('createElementNS tests from mozilla, attached to webkit bug 16833', fun ction() {
6 it('should behave like mozilla', function() { 6 it('should behave like mozilla', function() {
7 function stringForExceptionCode(c) 7 function stringForExceptionCode(c)
8 { 8 {
9 var exceptionName; 9 var exceptionName;
10 switch(c) { 10 switch(c) {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 msg += "; " + test.message; 97 msg += "; " + test.message;
98 try { 98 try {
99 doc[createFunctionName].apply(doc, test.args); 99 doc[createFunctionName].apply(doc, test.args);
100 assert(!("code" in test), msg); 100 assert(!("code" in test), msg);
101 } catch (e) { 101 } catch (e) {
102 assertExceptionCode(e, test.code || "expected no exception", msg ); 102 assertExceptionCode(e, test.code || "expected no exception", msg );
103 } 103 }
104 } 104 }
105 } 105 }
106 106
107 var doc = document.implementation.createDocument(); 107 var doc = new Document();
108 runNSTests(allNoNSTests, doc, "createElement"); 108 runNSTests(allNoNSTests, doc, "createElement");
109 }); 109 });
110 }); 110 });
111 </script> 111 </script>
112 </test> 112 </test>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698