Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / inspector / appcache / appcache-swap.html
blobd316dcb37a6f5e338a087604bedc74e24c037e02
1 <html>
2 <head>
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>
7 <script>
8 function test()
10 var frameId1;
11 var frameId2;
13 WebInspector.ResourcesPanel.show();
14 InspectorTest.startApplicationCacheStatusesRecording();
15 InspectorTest.dumpApplicationCache();
16 InspectorTest.createAndNavigateIFrame("resources/with-versioned-manifest.php", step1);
18 function step1(frameId)
20 frameId1 = frameId;
21 InspectorTest.waitForFrameManifestURLAndStatus(frameId1, "resources/versioned-manifest.php", applicationCache.IDLE, step2);
24 function step2()
26 InspectorTest.dumpApplicationCache();
27 InspectorTest.makeSimpleXHR("GET", "resources/versioned-manifest.php?command=step", true, step3);
30 function step3()
32 InspectorTest.createAndNavigateIFrame("resources/with-versioned-manifest.php", step4);
35 function step4(frameId)
37 frameId2 = 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);
46 function step6()
48 InspectorTest.dumpApplicationCache();
50 InspectorTest.swapFrameCache(frameId1);
51 InspectorTest.waitForFrameManifestURLAndStatus(frameId1, "resources/versioned-manifest.php", applicationCache.IDLE, step7);
54 function step7()
56 InspectorTest.dumpApplicationCache();
57 InspectorTest.completeTest();
60 </script>
61 </head>
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>
65 </body>
66 </html>