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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/harness/error-in-async-test.html

Issue 2269043002: Reland of Remove EventSender from HTMLStyleElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deflake 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <script> 4 <script>
5 description('Test that the window.onerror handler in resources/js-test.js ' + 5 description('Test that the window.onerror handler in resources/js-test.js ' +
6 'stops asynchronous tests'); 6 'stops asynchronous tests');
7 7
8 function buggyAsyncCode() 8 function buggyAsyncCode()
9 { 9 {
10 debug("Simulating an unexpected error"); 10 debug("Simulating an unexpected error");
11 11
12 // If the onerror handler doesn't finish async tests, this test will 12 // If the onerror handler doesn't finish async tests, this test will
13 // timeout, and the line below will not show. 13 // timeout, and the line below will not show.
14 throw new Error("An unexpected error"); 14 throw new Error("An unexpected error");
15 } 15 }
16 16
17 window.jsTestIsAsync = true; 17 window.jsTestIsAsync = true;
18 debug("Will throw an error soon"); 18 debug("Will throw an error soon");
19 setTimeout(buggyAsyncCode, 0);
20 </script> 19 </script>
20 <body onload="setTimeout(buggyAsyncCode, 0)"></body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698