Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/images/image-document-write-assert.html

Issue 2496663002: Merge css3/image/ and fast/images/ to images/ (Closed)
Patch Set: Address failing tests (3 of them) Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <script>
4
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.setCanOpenWindows();
8 testRunner.waitUntilDone();
9 }
10
11 function log(message)
12 {
13 var console = document.getElementById("console");
14 console.appendChild(document.createTextNode(message + "\n"));
15 }
16
17 function loadPage()
18 {
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");
27 };
28 }
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.wri te. It must not crash.</p>
32 <pre id="console"></pre>
33 </body>
34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698