3 <script src="../inspector-test.js"></script>
4 <script src="appcache-test.js"></script>
5 <script src="../network-test.js"></script>
6 <script src="../resources-test.js"></script>
13 WebInspector.ResourcesPanel.show();
14 InspectorTest.startApplicationCacheStatusesRecording();
15 InspectorTest.dumpApplicationCache();
16 InspectorTest.createAndNavigateIFrame("resources/with-versioned-manifest.php", step1);
18 function step1(frameId)
21 InspectorTest.waitForFrameManifestURLAndStatus(frameId1, "resources/versioned-manifest.php", applicationCache.IDLE, step2);
26 InspectorTest.dumpApplicationCache();
27 InspectorTest.makeSimpleXHR("GET", "resources/versioned-manifest.php?command=step", true, step3);
32 InspectorTest.createAndNavigateIFrame("resources/with-versioned-manifest.php", step4);
35 function step4(frameId)
38 InspectorTest.waitForFrameManifestURLAndStatus(frameId1, "resources/versioned-manifest.php", applicationCache.UPDATEREADY, step5);
41 function step5(frameId)
43 InspectorTest.waitForFrameManifestURLAndStatus(frameId2, "resources/versioned-manifest.php", applicationCache.UPDATEREADY, step6);
48 InspectorTest.dumpApplicationCache();
50 InspectorTest.swapFrameCache(frameId1);
51 InspectorTest.waitForFrameManifestURLAndStatus(frameId1, "resources/versioned-manifest.php", applicationCache.IDLE, step7);
56 InspectorTest.dumpApplicationCache();
57 InspectorTest.completeTest();
62 <body onload="runTest()">
63 <p>Tests that application cache model keeps track of manifest urls and statuses correctly after UPDATEREADY event and swapCache() call.</p>
64 <a href="https://bugs.webkit.org/show_bug.cgi?id=72123">Bug 72123</a>