Chromium Code Reviews| Index: chrome/test/data/prerender/prerender_visibility_quick.html |
| =================================================================== |
| --- chrome/test/data/prerender/prerender_visibility_quick.html (revision 0) |
| +++ chrome/test/data/prerender/prerender_visibility_quick.html (revision 0) |
| @@ -0,0 +1,24 @@ |
| +<html> |
| +<!-- |
| +This test checks the visibility API when a prerendered page is displayed |
| +before the page has finished loading. |
| + |
| +TODO(mmenke): Currently, we get get extra events when a page is shown on |
|
dominich
2011/08/25 21:18:04
Is this due to the code that forcibly unhides the
mmenke
2011/08/25 21:36:53
That code no longer seems to exist, or at least I
|
| + Windows. Make this check for extra events once that's fixed. |
| +--> |
| +<head> |
| +<title>Prerender Visibility Quick Switch</title> |
| + |
| +<script> |
| +// Checks that the the current state is visible. Due to expected races between |
| +// loading the page and switching to the tab, it's possible for the page to |
| +// start out with visibility 'prerender', 'hidden', or 'visible'. |
| +function DidDisplayPass() { |
| + return !document.webkitHidden && |
| + 'visible' == document.webkitVisibilityState; |
| +} |
| +</script> |
| + |
| +</head> |
| +<body></body> |
| +</html> |
| Property changes on: chrome\test\data\prerender\prerender_visibility_quick.html |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |