| Index: chrome/test/data/beforeunload_slow.html
|
| diff --git a/chrome/test/data/beforeunload_slow.html b/chrome/test/data/beforeunload_slow.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8331a2281b1df2df68d2c5f6ccb9bac8686e311a
|
| --- /dev/null
|
| +++ b/chrome/test/data/beforeunload_slow.html
|
| @@ -0,0 +1,19 @@
|
| +<html>
|
| + <head>
|
| + <title>Loading...</title>
|
| + <script>
|
| + window.onbeforeunload = function(e) {
|
| + // Delay must be slightly bigger than
|
| + // RenderViewHostImpl::kUnloadTimeoutMS to trigger
|
| + // "renderer unresponsive".
|
| + var delay = 1500;
|
| + var finishTime = new Date().getTime() + delay;
|
| + while (new Date() < finishTime) {}
|
| + return null;
|
| + };
|
| + </script>
|
| + </head>
|
| + <body>
|
| + <p>Navigate to another page to trigger beforeunload handler.</p>
|
| + </body>
|
| +</html>
|
|
|