| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 { | 81 try { |
| 82 nodeFilter = document.createNodeIterator(document, NodeFilter.SHOW_ELEMENT
, function () {}, false).filter; | 82 nodeFilter = document.createNodeIterator(document, NodeFilter.SHOW_ELEMENT
, function () {}, false).filter; |
| 83 } catch(e) {} | 83 } catch(e) {} |
| 84 shouldBe("window.NodeFilter.prototype.isPrototypeOf(nodeFilter)", true); | 84 shouldBe("window.NodeFilter.prototype.isPrototypeOf(nodeFilter)", false); |
| 85 | 85 |
| 86 originalNodePrototype = window.Node.prototype; | 86 originalNodePrototype = window.Node.prototype; |
| 87 | 87 |
| 88 deleteResult = delete window.Node.prototype; | 88 deleteResult = delete window.Node.prototype; |
| 89 print("[Deleted window.Node.prototype]"); | 89 print("[Deleted window.Node.prototype]"); |
| 90 shouldBe("window.Node.prototype", originalNodePrototype); | 90 shouldBe("window.Node.prototype", originalNodePrototype); |
| 91 shouldBe("deleteResult", false); | 91 shouldBe("deleteResult", false); |
| 92 | 92 |
| 93 originalNodeConstructor = window.Node; | 93 originalNodeConstructor = window.Node; |
| 94 | 94 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 121 | 121 |
| 122 <body onload="test();"> | 122 <body onload="test();"> |
| 123 <p>This page tests global constructor objects like window.HTMLDocument. If it pa
sses, you'll | 123 <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. | 124 see no lines with the text FAIL below. |
| 125 </p> | 125 </p> |
| 126 <hr> | 126 <hr> |
| 127 <div id='console'></div> | 127 <div id='console'></div> |
| 128 | 128 |
| 129 </body> | 129 </body> |
| 130 </html> | 130 </html> |
| OLD | NEW |