| OLD | NEW |
| (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; | |
| OLD | NEW |