Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / serviceworker / resources / cache-storage-keys-worker.js
index 0d93d4c..f58c613 100644 (file)
@@ -1,4 +1,5 @@
-importScripts('worker-test-harness.js');
+importScripts('worker-testharness.js');
+importScripts('../../resources/testharness-helpers.js');
 
 var test_cache_list =
   ['', 'example', 'Another cache name', 'A', 'a', 'ex ample'];
@@ -14,7 +15,7 @@ promise_test(function(test) {
         })
       .then(function() {
           return Promise.all(test_cache_list.map(function(key) {
-              return self.caches.create(key);
+              return self.caches.open(key);
             }));
         })