| function print(message, color) |
| var paragraph = document.createElement("div"); |
| paragraph.appendChild(document.createTextNode(message)); |
| paragraph.style.fontFamily = "monospace"; |
| paragraph.style.color = color; |
| document.getElementById("console").appendChild(paragraph); |
| print("PASS: " + a + " should be " + b + " and is.", "green"); |
| print("FAIL: " + a + " should be " + b + " but instead is " + evalA + ".", "red"); |
| window.XMLHttpRequest = 1; |
| window.XMLSerializer = 1; |
| window.XSLTProcessor = 1; |
| shouldBe("window.Image", 1); |
| shouldBe("window.Option", 1); |
| shouldBe("window.XMLHttpRequest", 1); |
| shouldBe("window.XMLSerializer", 1); |
| shouldBe("window.DOMParser", 1); |
| shouldBe("window.XSLTProcessor", 1); |
| <p>This page tests whether certain global constructors are read-only. Previous versions of WebKit incorrectly |
| <p>If the test passes, you'll see a series of pass message below.</p> |