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

Side by Side Diff: LayoutTests/http/tests/cache/cancel-during-revalidation-succeeded.html

Issue 205523003: Remove beforeload events. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove more tests Created 6 years, 9 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
(Empty)
1 <html>
2 <head>
3 <link id="img" rel="stylesheet" href="resources/stylesheet304.php">
4 </head>
5 <body>
6 It's possible for a successful revalidation to cause events to fire synchronousl y.
7 We shouldn't crash if one of those events stops the load.
8 See https://bugs.webkit.org/show_bug.cgi?id=72762.
9 <script>
10 if (window.testRunner) {
11 testRunner.dumpAsText();
12 testRunner.waitUntilDone();
13 }
14
15 function obl(e) {
16 if (window.sessionStorage.getItem("reloaded")) {
17 window.stop();
18 window.sessionStorage.removeItem("reloaded");
19 setTimeout(finish, 0);
20 } else {
21 window.sessionStorage.reloaded = "true";
22 location.reload();
23 }
24 }
25
26 function finish() {
27 if (window.testRunner)
28 testRunner.notifyDone();
29 }
30 </script>
31 <object type="application/x-no-such-mime" onbeforeload="obl();"></embed>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698