Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / images / image-document-write-assert.html
blob9b27e19d8dc0ad95e94b4852c2fe1f520c2aa5f5
1 <!DOCTYPE html>
2 <html>
3 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.setCanOpenWindows();
8 testRunner.waitUntilDone();
11 function log(message)
13 var console = document.getElementById("console");
14 console.appendChild(document.createTextNode(message + "\n"));
17 function loadPage()
19 var newwindow = window.open("resources/dice.png");
20 newwindow.onload = function() {
21 if (window.eventSender) {
22 newwindow.document.write("This doesn't crash");
23 log ("Test Success");
24 testRunner.notifyDone();
25 } else
26 newwindow.document.write("This doesn't crash");
29 </script>
30 <body onload="loadPage()">
31 <p>This tests that writing on an "image page" doesn't asserts the tab. This test requires testRunner to run. To test manually, open <a href="resources/dice.png">this image</a> in a browser window, and write into the page using document.write. It must not crash.</p>
32 <pre id="console"></pre>
33 </body>
34 </html>