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

Side by Side Diff: LayoutTests/svg/custom/draw-image-crash.html

Issue 561813003: Prepare blink to unify definitions of load completion (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 months 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 This test passes if it does not crash and 'PASS' is printed.<br/> 3 This test passes if it does not crash and 'PASS' is printed.<br/>
4 <img id="crash" src="resources/draw-image-crash.svg"></img> 4 <img id="crash" src="resources/draw-image-crash.svg"></img>
5 <script> 5 <script>
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 8
9 setTimeout(function() { 9 window.onload = function() {
10 if (location.hash == '#done') { 10 if (location.hash == '#done') {
11 document.write('PASS'); 11 document.write('PASS');
12 if (window.testRunner) { 12 if (window.testRunner) {
13 testRunner.dumpAsText(); 13 testRunner.dumpAsText();
14 testRunner.notifyDone(); 14 testRunner.notifyDone();
15 } 15 }
16 } else { 16 } else {
17 location.hash = 'done'; 17 location.hash = 'done';
18 window.location.reload(); 18 window.location.reload();
19 } 19 }
20 }, 0); 20 }
21 </script> 21 </script>
22 </html> 22 </html>
23 23
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698