| OLD | NEW |
| (Empty) |
| 1 description("Tests that pages that use Geolocation are not put in the page cache
.<br><br>Currently, Geolocation does not work with the page cache so pages that
use Geolocation are explicitly prevented from entering the cache. This test chec
ks for accidental enabling of the page Cache for Geolocation. See https://bugs.w
ebkit.org/show_bug.cgi?id=43956 for details."); | |
| 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 fired, count = ' + pageOneOnloadCount); | |
| 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 |