| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |