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

Side by Side Diff: chrome/test/data/panels/onbeforeunload.html

Issue 8505047: Fix panels being removed from PanelManager prematurely. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change test from using notification to timeout. Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/panels/panel_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 var close_call_num = 1;
5 var title_first_close = "TitleFirstClose";
6 var title_second_close = "TitleSecondClose";
7
8 function changeTitle() {
9 if (close_call_num == 1)
10 document.title = title_first_close;
11 else if (close_call_num == 2)
12 document.title = title_second_close;
13 close_call_num++;
14 }
15
16 window.onbeforeunload = function() {
17 if (close_call_num <= 2)
18 setTimeout("changeTitle()", 0);
19 return "some random string";
20 }
21 </script>
22 </head>
23 <body>
24 OnBeforeUnloadHandler In Panels.
25 </body>
26 </html>
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698