| Index: chrome/test/data/panels/onbeforeunload.html
|
| diff --git a/chrome/test/data/panels/onbeforeunload.html b/chrome/test/data/panels/onbeforeunload.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5c36c45e4a40314a1e19afb541e4065ae49e135d
|
| --- /dev/null
|
| +++ b/chrome/test/data/panels/onbeforeunload.html
|
| @@ -0,0 +1,26 @@
|
| +<html>
|
| + <head>
|
| + <script>
|
| + var close_call_num = 1;
|
| + var title_first_close = "TitleFirstClose";
|
| + var title_second_close = "TitleSecondClose";
|
| +
|
| + function changeTitle() {
|
| + if (close_call_num == 1)
|
| + document.title = title_first_close;
|
| + else if (close_call_num == 2)
|
| + document.title = title_second_close;
|
| + close_call_num++;
|
| + }
|
| +
|
| + window.onbeforeunload = function() {
|
| + if (close_call_num <= 2)
|
| + setTimeout("changeTitle()", 0);
|
| + return "some random string";
|
| + }
|
| + </script>
|
| + </head>
|
| + <body>
|
| + OnBeforeUnloadHandler In Panels.
|
| + </body>
|
| +</html>
|
|
|