| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 element = document.body; | 51 element = document.body; |
| 52 shouldBe("window.Node.prototype.isPrototypeOf(element)", true); | 52 shouldBe("window.Node.prototype.isPrototypeOf(element)", true); |
| 53 shouldBe("window.Element.prototype.isPrototypeOf(element)", true); | 53 shouldBe("window.Element.prototype.isPrototypeOf(element)", true); |
| 54 shouldBe("window.HTMLElement.prototype.isPrototypeOf(element)", true); | 54 shouldBe("window.HTMLElement.prototype.isPrototypeOf(element)", true); |
| 55 | 55 |
| 56 range = document.createRange(); | 56 range = document.createRange(); |
| 57 shouldBe("window.Range.prototype.isPrototypeOf(range)", true); | 57 shouldBe("window.Range.prototype.isPrototypeOf(range)", true); |
| 58 | 58 |
| 59 cssRule = document.styleSheets[0].cssRules[0]; | 59 cssRule = document.styleSheets[0].cssRules[0]; |
| 60 shouldBe("window.CSSRule.prototype.isPrototypeOf(cssRule)", true); | 60 shouldBe("window.CSSRule.prototype.isPrototypeOf(cssRule)", true); |
| 61 | |
| 62 cssPrimitiveValue = cssRule.style.getPropertyCSSValue("color"); | |
| 63 shouldBe("window.CSSValue.prototype.isPrototypeOf(cssPrimitiveValue)", true)
; | |
| 64 shouldBe("window.CSSPrimitiveValue.prototype.isPrototypeOf(cssPrimitiveValue
)", true); | |
| 65 | 61 |
| 66 cssStyleDeclaration = cssRule.style; | 62 cssStyleDeclaration = cssRule.style; |
| 67 shouldBe("window.CSSStyleDeclaration.prototype.isPrototypeOf(cssStyleDeclara
tion)", true); | 63 shouldBe("window.CSSStyleDeclaration.prototype.isPrototypeOf(cssStyleDeclara
tion)", true); |
| 68 | 64 |
| 69 event = document.createEvent("MutationEvents"); | 65 event = document.createEvent("MutationEvents"); |
| 70 shouldBe("window.Event.prototype.isPrototypeOf(event)", true); | 66 shouldBe("window.Event.prototype.isPrototypeOf(event)", true); |
| 71 shouldBe("window.MutationEvent.prototype.isPrototypeOf(event)", true); | 67 shouldBe("window.MutationEvent.prototype.isPrototypeOf(event)", true); |
| 72 | 68 |
| 73 xmldoc = document.implementation.createDocument(null, null, null); | 69 xmldoc = document.implementation.createDocument(null, null, null); |
| 74 shouldBe("window.XMLDocument.prototype.isPrototypeOf(xmldoc)", true); | 70 shouldBe("window.XMLDocument.prototype.isPrototypeOf(xmldoc)", true); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 114 |
| 119 <body onload="test();"> | 115 <body onload="test();"> |
| 120 <p>This page tests global constructor objects like window.HTMLDocument. If it pa
sses, you'll | 116 <p>This page tests global constructor objects like window.HTMLDocument. If it pa
sses, you'll |
| 121 see no lines with the text FAIL below. | 117 see no lines with the text FAIL below. |
| 122 </p> | 118 </p> |
| 123 <hr> | 119 <hr> |
| 124 <div id='console'></div> | 120 <div id='console'></div> |
| 125 | 121 |
| 126 </body> | 122 </body> |
| 127 </html> | 123 </html> |
| OLD | NEW |