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

Side by Side Diff: LayoutTests/fast/dom/DeviceMotion/script-tests/no-page-cache.js

Issue 14495004: Remove left-over PageCache stuff (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
OLDNEW
(Empty)
1 description('Tests that pages that use DeviceMotion are not put in the page cach e.');
2
3 if (window.testRunner) {
4 testRunner.waitUntilDone();
5 testRunner.setCanOpenWindows();
6 testRunner.overridePreference('WebKitUsesPageCachePreferenceKey', 1);
7 } else
8 debug('This test can not be run without the TestRunner');
9
10 var pageOneOnloadCount = 0;
11 function reportPageOneOnload() {
12 ++pageOneOnloadCount;
13 debug('resources/cached-page-1.html onload fired, count = ' + pageOneOnloadC ount);
14 if (pageOneOnloadCount == 2) {
15 finishJSTest();
16 }
17 return pageOneOnloadCount;
18 }
19
20 debug("Main page opening resources/cached-page-1.html");
21 window.open("resources/cached-page-1.html");
22
23 window.jsTestIsAsync = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698