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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLImageElement/image-src-onerror.html

Issue 2295653002: Use window.testRunner in if-clause (Closed)
Patch Set: a Created 4 years, 3 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script> 2 <script>
3 if (testRunner) { 3 if (window.testRunner) {
4 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
5 testRunner.waitUntilDone(); 5 testRunner.waitUntilDone();
6 } 6 }
7 window.onload = function() { 7 window.onload = function() {
8 setTimeout(function() { 8 setTimeout(function() {
9 if (testRunner) 9 if (window.testRunner)
10 testRunner.notifyDone(); 10 testRunner.notifyDone();
11 }, 500); 11 }, 500);
12 }; 12 };
13 </script> 13 </script>
14 <img src="1x.gif" onerror="console.log('Error triggerred');"> 14 <img src="1x.gif" onerror="console.log('Error triggerred');">
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698