OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../inspector-test.js"></script> | 3 <script src="../inspector-test.js"></script> |
4 <script src="cache-storage-test.js"></script> | 4 <script src="cache-storage-test.js"></script> |
5 <script> | 5 <script> |
6 function test() | 6 function test() |
7 { | 7 { |
8 var cacheStorageModel = SDK.ServiceWorkerCacheModel.fromTarget(SDK.targetMan
ager.mainTarget()); | 8 var cacheStorageModel = InspectorTest.mainTarget.model(SDK.ServiceWorkerCach
eModel); |
9 cacheStorageModel.enable(); | 9 cacheStorageModel.enable(); |
10 | 10 |
11 function errorAndExit(error) | 11 function errorAndExit(error) |
12 { | 12 { |
13 if (error) | 13 if (error) |
14 InspectorTest.addResult(error); | 14 InspectorTest.addResult(error); |
15 InspectorTest.completeTest(); | 15 InspectorTest.completeTest(); |
16 } | 16 } |
17 | 17 |
18 function main() | 18 function main() |
(...skipping 16 matching lines...) Expand all Loading... |
35 } | 35 } |
36 | 36 |
37 InspectorTest.waitForCacheRefresh(main); | 37 InspectorTest.waitForCacheRefresh(main); |
38 } | 38 } |
39 </script> | 39 </script> |
40 </head> | 40 </head> |
41 <body onload="runTest()"> | 41 <body onload="runTest()"> |
42 <p>Tests that cache entry data is correctly deleted by the inspector.</p> | 42 <p>Tests that cache entry data is correctly deleted by the inspector.</p> |
43 </body> | 43 </body> |
44 </html> | 44 </html> |
OLD | NEW |