3 <script src="../inspector-test.js"></script>
4 <script src="appcache-test.js"></script>
12 WebInspector.showPanel("resources");
13 InspectorTest.dumpApplicationCache();
14 InspectorTest.createAndNavigateIFrame("resources/page-with-manifest.php?manifestId=1", step1);
16 function step1(frameId)
19 InspectorTest.waitForFrameManifestURLAndStatus(frameId1, "manifest.php?manifestId=1", applicationCache.IDLE, step2);
24 InspectorTest.dumpApplicationCache();
25 InspectorTest.navigateIFrame(frameId1, "resources/page-with-manifest.php?manifestId=2", step3);
30 InspectorTest.waitForFrameManifestURLAndStatus(frameId1, "manifest.php?manifestId=2", applicationCache.IDLE, step4);
35 InspectorTest.dumpApplicationCache();
36 InspectorTest.createAndNavigateIFrame("resources/page-with-manifest.php?manifestId=1", step5);
39 function step5(frameId)
42 InspectorTest.waitForFrameManifestURLAndStatus(frameId2, "manifest.php?manifestId=1", applicationCache.IDLE, step6);
47 InspectorTest.dumpApplicationCache();
48 InspectorTest.createAndNavigateIFrame("resources/page-with-manifest.php?manifestId=1", step7);
51 function step7(frameId)
54 InspectorTest.waitForFrameManifestURLAndStatus(frameId3, "manifest.php?manifestId=1", applicationCache.IDLE, step8);
59 InspectorTest.waitForFrameManifestURLAndStatus(frameId2, "manifest.php?manifestId=1", applicationCache.IDLE, step9);
64 InspectorTest.dumpApplicationCache();
65 InspectorTest.removeIFrame(frameId3, step10);
70 InspectorTest.waitForFrameManifestURLAndStatus(frameId3, "", applicationCache.UNCACHED, step11);
75 InspectorTest.dumpApplicationCache();
76 InspectorTest.removeIFrame(frameId2, step12);
81 InspectorTest.waitForFrameManifestURLAndStatus(frameId2, "", applicationCache.UNCACHED, step13);
86 InspectorTest.dumpApplicationCache();
87 InspectorTest.removeIFrame(frameId1, step14);
92 InspectorTest.waitForFrameManifestURLAndStatus(frameId1, "", applicationCache.UNCACHED, step15);
97 InspectorTest.dumpApplicationCache();
98 InspectorTest.completeTest();
103 <body onload="runTest()">
104 <p>Tests that application cache model keeps track of manifest urls and statuses correctly.</p>
105 <a href="https://bugs.webkit.org/show_bug.cgi?id=64581">Bug 64581</a>