OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 * { | 4 * { |
5 color: black; | 5 color: black; |
6 } | 6 } |
7 </style> | 7 </style> |
8 <script> | 8 <script> |
9 function print(message, color) | 9 function print(message, color) |
10 { | 10 { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 fragment = document.createDocumentFragment(); | 72 fragment = document.createDocumentFragment(); |
73 shouldBe("window.DocumentFragment.prototype.isPrototypeOf(fragment)", true); | 73 shouldBe("window.DocumentFragment.prototype.isPrototypeOf(fragment)", true); |
74 | 74 |
75 xpathevaluator = new XPathEvaluator(); | 75 xpathevaluator = new XPathEvaluator(); |
76 shouldBe("window.XPathEvaluator.prototype.isPrototypeOf(xpathevaluator)", tr
ue); | 76 shouldBe("window.XPathEvaluator.prototype.isPrototypeOf(xpathevaluator)", tr
ue); |
77 | 77 |
78 xpathresult = xpathevaluator.evaluate('/', document, null, 0, null); | 78 xpathresult = xpathevaluator.evaluate('/', document, null, 0, null); |
79 shouldBe("window.XPathResult.prototype.isPrototypeOf(xpathresult)", true); | 79 shouldBe("window.XPathResult.prototype.isPrototypeOf(xpathresult)", true); |
80 | 80 |
81 try { | |
82 nodeFilter = document.createNodeIterator(document, NodeFilter.SHOW_ELEMENT
, function () {}, false).filter; | |
83 } catch(e) {} | |
84 shouldBe("window.NodeFilter.prototype.isPrototypeOf(nodeFilter)", false); | |
85 | |
86 originalNodePrototype = window.Node.prototype; | 81 originalNodePrototype = window.Node.prototype; |
87 | 82 |
88 deleteResult = delete window.Node.prototype; | 83 deleteResult = delete window.Node.prototype; |
89 print("[Deleted window.Node.prototype]"); | 84 print("[Deleted window.Node.prototype]"); |
90 shouldBe("window.Node.prototype", originalNodePrototype); | 85 shouldBe("window.Node.prototype", originalNodePrototype); |
91 shouldBe("deleteResult", false); | 86 shouldBe("deleteResult", false); |
92 | 87 |
93 originalNodeConstructor = window.Node; | 88 originalNodeConstructor = window.Node; |
94 | 89 |
95 // Attempt to shadow window.Node with a frame named 'Node' | 90 // Attempt to shadow window.Node with a frame named 'Node' |
(...skipping 25 matching lines...) Expand all Loading... |
121 | 116 |
122 <body onload="test();"> | 117 <body onload="test();"> |
123 <p>This page tests global constructor objects like window.HTMLDocument. If it pa
sses, you'll | 118 <p>This page tests global constructor objects like window.HTMLDocument. If it pa
sses, you'll |
124 see no lines with the text FAIL below. | 119 see no lines with the text FAIL below. |
125 </p> | 120 </p> |
126 <hr> | 121 <hr> |
127 <div id='console'></div> | 122 <div id='console'></div> |
128 | 123 |
129 </body> | 124 </body> |
130 </html> | 125 </html> |
OLD | NEW |