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

Side by Side Diff: chrome/test/data/prerender/prerender_visibility_quick.html

Issue 7736003: Revert 98539 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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
« no previous file with comments | « chrome/test/data/prerender/prerender_visibility_hidden_quick.html ('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 <!--
3 This test checks the visibility API when a prerendered page is displayed
4 before the page has finished loading.
5
6 TODO(mmenke): Currently, we get get extra events when a page is shown on
7 Windows. Make this check for extra events once that's fixed.
8 -->
9 <head>
10 <title>Prerender Visibility Quick Switch</title>
11
12 <script>
13 // Checks that the the current state is visible. Due to expected races between
14 // loading the page and switching to the tab, it's possible for the page to
15 // start out with visibility 'prerender', 'hidden', or 'visible'.
16 function DidDisplayPass() {
17 return !document.webkitHidden &&
18 'visible' == document.webkitVisibilityState;
19 }
20 </script>
21
22 </head>
23 <body></body>
24 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/prerender/prerender_visibility_hidden_quick.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698