3 <script src=
"../inspector-test.js"></script>
4 <script src=
"../resources-test.js"></script>
5 <script src=
"appcache-test.js"></script>
13 WebInspector
.ResourcesPanel
.show();
14 InspectorTest
.dumpApplicationCache();
15 InspectorTest
.createAndNavigateIFrame("resources/page-with-manifest.php?manifestId=1", step1
);
17 function step1(frameId
)
20 InspectorTest
.waitForFrameManifestURLAndStatus(frameId1
, "manifest.php?manifestId=1", applicationCache
.IDLE
, step2
);
25 InspectorTest
.dumpApplicationCache();
26 InspectorTest
.navigateIFrame(frameId1
, "resources/page-with-manifest.php?manifestId=2", step3
);
31 InspectorTest
.waitForFrameManifestURLAndStatus(frameId1
, "manifest.php?manifestId=2", applicationCache
.IDLE
, step4
);
36 InspectorTest
.dumpApplicationCache();
37 InspectorTest
.createAndNavigateIFrame("resources/page-with-manifest.php?manifestId=1", step5
);
40 function step5(frameId
)
43 InspectorTest
.waitForFrameManifestURLAndStatus(frameId2
, "manifest.php?manifestId=1", applicationCache
.IDLE
, step6
);
48 InspectorTest
.dumpApplicationCache();
49 InspectorTest
.createAndNavigateIFrame("resources/page-with-manifest.php?manifestId=1", step7
);
52 function step7(frameId
)
55 InspectorTest
.waitForFrameManifestURLAndStatus(frameId3
, "manifest.php?manifestId=1", applicationCache
.IDLE
, step8
);
60 InspectorTest
.waitForFrameManifestURLAndStatus(frameId2
, "manifest.php?manifestId=1", applicationCache
.IDLE
, step9
);
65 InspectorTest
.dumpApplicationCache();
66 InspectorTest
.removeIFrame(frameId3
, step10
);
71 InspectorTest
.waitForFrameManifestURLAndStatus(frameId3
, "", applicationCache
.UNCACHED
, step11
);
76 InspectorTest
.dumpApplicationCache();
77 InspectorTest
.removeIFrame(frameId2
, step12
);
82 InspectorTest
.waitForFrameManifestURLAndStatus(frameId2
, "", applicationCache
.UNCACHED
, step13
);
87 InspectorTest
.dumpApplicationCache();
88 InspectorTest
.removeIFrame(frameId1
, step14
);
93 InspectorTest
.waitForFrameManifestURLAndStatus(frameId1
, "", applicationCache
.UNCACHED
, step15
);
98 InspectorTest
.dumpApplicationCache();
99 InspectorTest
.completeTest();
104 <body onload=
"runTest()">
105 <p>Tests that application cache model keeps track of manifest urls and statuses correctly.
</p>
106 <a href=
"https://bugs.webkit.org/show_bug.cgi?id=64581">Bug
64581</a>