| Index: LayoutTests/http/tests/inspector/cache-storage/cache-names.html
|
| diff --git a/LayoutTests/http/tests/inspector/cache-storage/cache-names.html b/LayoutTests/http/tests/inspector/cache-storage/cache-names.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e80fcba9bae34f33de60f72372b9e511eb7d456c
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/inspector/cache-storage/cache-names.html
|
| @@ -0,0 +1,40 @@
|
| +<html>
|
| +<head>
|
| +<script src="../inspector-test.js"></script>
|
| +<script src="cache-storage-test.js"></script>
|
| +<script>
|
| +function test()
|
| +{
|
| + var cacheStorageModel = WebInspector.ServiceWorkerCacheModel.fromTarget(WebInspector.targetManager.mainTarget());
|
| + cacheStorageModel.enable();
|
| +
|
| + function errorAndExit(error)
|
| + {
|
| + if (error)
|
| + console.error(error);
|
| + InspectorTest.completeTest();
|
| + }
|
| +
|
| + function main()
|
| + {
|
| + InspectorTest.clearAllCaches()
|
| + .then(InspectorTest.dumpCacheTree)
|
| + .then(InspectorTest.createCache.bind(this, "testCache1"))
|
| + .then(InspectorTest.dumpCacheTree)
|
| + .then(InspectorTest.createCache.bind(this, "testCache2"))
|
| + .then(InspectorTest.createCache.bind(this, "testCache3"))
|
| + .then(InspectorTest.createCache.bind(this, "testCache4"))
|
| + .then(InspectorTest.dumpCacheTree)
|
| + .then(InspectorTest.clearAllCaches)
|
| + .then(InspectorTest.completeTest)
|
| + .catch(errorAndExit);
|
| + }
|
| +
|
| + InspectorTest.waitForCacheRefresh(main);
|
| +}
|
| +</script>
|
| +</head>
|
| +<body onload="runTest()">
|
| +<p>Tests that cache names are correctly loaded and displayed in the inspector.</p>
|
| +</body>
|
| +</html>
|
|
|