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

Side by Side Diff: LayoutTests/fast/workers/worker-exception-during-navigation.html

Issue 11320014: Merge 132371 - Crash when trying to write exception message to null console (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1271/
Patch Set: Created 8 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 <body onload="test()"> 1 <body onload="test()">
2 <p>The regression test for <a href=https://bugs.webkit.org/show_bug.cgi?id=99658 >Bug 99658</a></p> 2 <p>The regression test for <a href=https://bugs.webkit.org/show_bug.cgi?id=99658 >Bug 99658</a></p>
3 <p>The test starts bunch of workers that just throw an exception. During that ti me, current document is unloaded. The test passes if there are no crashes after the page unload.</p> 3 <p>The test starts bunch of workers that just throw an exception. During that ti me, current document is unloaded. The test passes if there are no crashes after the page unload.</p>
4 <p>Note that the test is potentially flaky and may produce false positives if we are unlucky with the worker exceptions timing. It should not fail if there is n o bug though.</p> 4 <p>Note that the test is potentially flaky and may produce false positives if we are unlucky with the worker exceptions timing. It should not fail if there is n o bug though.</p>
5 <script src="../../resources/gc.js"></script> 5 <script src="../../resources/gc.js"></script>
6 <script> 6 <script>
7 function test() { 7 function test() {
8 if (document.location.search == "?done") { 8 if (document.location.search == "?done") {
9 // Set timeout to give the test some time to crash. 9 // Set timeout to give the test some time to crash.
10 setTimeout(function() { 10 setTimeout(function() {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 setTimeout(function() { 43 setTimeout(function() {
44 console.log("Unloading the current document to see if there will be a cr ash."); 44 console.log("Unloading the current document to see if there will be a cr ash.");
45 document.location.href = "?done"; 45 document.location.href = "?done";
46 workers = null; 46 workers = null;
47 gc(); 47 gc();
48 }, 10); 48 }, 10);
49 } 49 }
50 </script> 50 </script>
51 </body> 51 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698