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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLImageElement/image-srcset-invalid-url-no-crash.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 src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <script> 3 <script>
4 description("Invalid img.srcset URL should not crash"); 4 description("Invalid img.srcset URL should not crash");
5 window.jsTestIsAsync = true; 5 window.jsTestIsAsync = true;
6 if (testRunner) { 6 if (window.testRunner) {
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8 testRunner.waitUntilDone(); 8 testRunner.waitUntilDone();
9 } 9 }
10 function done() { 10 function done() {
11 testPassed("no crash."); 11 testPassed("no crash.");
12 finishJSTest(); 12 finishJSTest();
13 } 13 }
14 </script> 14 </script>
15 <img src="1x.png" srcset="//&%dE,; 1.2x" onerror="done()"> 15 <img src="1x.png" srcset="//&%dE,; 1.2x" onerror="done()">
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698