| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
| 4 <style id="style" media="screen"> | 4 <style id="style" media="screen"> |
| 5 .non-existent-class { | 5 .non-existent-class { |
| 6 color: rgb(0, 0, 0); | 6 color: rgb(0, 0, 0); |
| 7 } | 7 } |
| 8 </style> | 8 </style> |
| 9 </head> | 9 </head> |
| 10 <body> | 10 <body> |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 { | 69 { |
| 70 description("This tests wrapper class names for JavaScript."); | 70 description("This tests wrapper class names for JavaScript."); |
| 71 | 71 |
| 72 stylesheet = document.getElementById("style").sheet; | 72 stylesheet = document.getElementById("style").sheet; |
| 73 root = document.documentElement; | 73 root = document.documentElement; |
| 74 xmlDocument = document.getElementById("xmlframe").contentDocument; | 74 xmlDocument = document.getElementById("xmlframe").contentDocument; |
| 75 | 75 |
| 76 debug('Basics'); | 76 debug('Basics'); |
| 77 debug(''); | 77 debug(''); |
| 78 | 78 |
| 79 test("document.createAttribute()", "Attr"); | 79 test("document.createAttribute('x')", "Attr"); |
| 80 test("document.createComment('')", "Comment"); | 80 test("document.createComment('')", "Comment"); |
| 81 test("document.createDocumentFragment()", "DocumentFragment"); | 81 test("document.createDocumentFragment()", "DocumentFragment"); |
| 82 test("document.implementation", "DOMImplementation"); | 82 test("document.implementation", "DOMImplementation"); |
| 83 test("root.attributes", "NamedNodeMap"); | 83 test("root.attributes", "NamedNodeMap"); |
| 84 test("document.createNodeIterator(root, 0, null, false)", "NodeIterator"); | 84 test("document.createNodeIterator(root, 0, null, false)", "NodeIterator"); |
| 85 test("document.getElementsByTagName('div')", "HTMLCollection"); | 85 test("document.getElementsByTagName('div')", "HTMLCollection"); |
| 86 test("document.createRange()", "Range"); | 86 test("document.createRange()", "Range"); |
| 87 test("document.createTextNode('')", "Text"); | 87 test("document.createTextNode('')", "Text"); |
| 88 test("document.createTreeWalker(root, 0, null, false)", "TreeWalker"); | 88 test("document.createTreeWalker(root, 0, null, false)", "TreeWalker"); |
| 89 | 89 |
| 90 debug(''); | 90 debug(''); |
| 91 debug('XML'); | 91 debug('XML'); |
| 92 debug(''); | 92 debug(''); |
| 93 | 93 |
| 94 test("xmlDocument", "XMLDocument"); | 94 test("xmlDocument", "XMLDocument"); |
| 95 test("xmlDocument.createCDATASection()", "CDATASection"); | 95 test("xmlDocument.createCDATASection('')", "CDATASection"); |
| 96 test("xmlDocument.createElementNS('x', 'x', 'x')", "Element"); | 96 test("xmlDocument.createElementNS('x', 'x', 'x')", "Element"); |
| 97 test("xmlDocument.createProcessingInstruction('x', '')", "ProcessingInstruct
ion"); | 97 test("xmlDocument.createProcessingInstruction('x', '')", "ProcessingInstruct
ion"); |
| 98 | 98 |
| 99 debug(''); | 99 debug(''); |
| 100 debug('Events'); | 100 debug('Events'); |
| 101 debug(''); | 101 debug(''); |
| 102 | 102 |
| 103 test("document.createEvent('Event')", "Event"); | 103 test("document.createEvent('Event')", "Event"); |
| 104 test("document.createEvent('KeyboardEvent')", "KeyboardEvent"); | 104 test("document.createEvent('KeyboardEvent')", "KeyboardEvent"); |
| 105 test("document.createEvent('MouseEvent')", "MouseEvent"); | 105 test("document.createEvent('MouseEvent')", "MouseEvent"); |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 287 |
| 288 function frameLoaded() | 288 function frameLoaded() |
| 289 { | 289 { |
| 290 runTest(); | 290 runTest(); |
| 291 } | 291 } |
| 292 | 292 |
| 293 </script> | 293 </script> |
| 294 <iframe id="xmlframe" onload="frameLoaded()" style="height:0px" src="data:applic
ation/xhtml+xml,<?xml version='1.0' encoding='UTF-8'?><body/>"></iframe> | 294 <iframe id="xmlframe" onload="frameLoaded()" style="height:0px" src="data:applic
ation/xhtml+xml,<?xml version='1.0' encoding='UTF-8'?><body/>"></iframe> |
| 295 </body> | 295 </body> |
| 296 </html> | 296 </html> |
| OLD | NEW |