Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/cache-storage/common.https.html

Issue 2547023002: Import wpt@3c8896ae408c8fd594979da7c99970029e7856a7 (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Cache Storage: Verify that Window and Workers see same storage</title> 2 <title>Cache Storage: Verify that Window and Workers see same storage</title>
3 <link rel="help" href="https://w3c.github.io/ServiceWorker/#cache-storage"> 3 <link rel="help" href="https://w3c.github.io/ServiceWorker/#cache-storage">
4 <meta name="timeout" content="long"> 4 <meta name="timeout" content="long">
5 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script> 6 <script src="/resources/testharnessreport.js"></script>
7 <script src="../resources/testharness-helpers.js"></script>
8 <script> 7 <script>
9 8
10 function wait_for_message(worker) { 9 function wait_for_message(worker) {
11 return new Promise(function(resolve) { 10 return new Promise(function(resolve) {
12 worker.addEventListener('message', function listener(e) { 11 worker.addEventListener('message', function listener(e) {
13 resolve(e.data); 12 resolve(e.data);
14 worker.removeEventListener('message', listener); 13 worker.removeEventListener('message', listener);
15 }); 14 });
16 }); 15 });
17 } 16 }
(...skipping 25 matching lines...) Expand all
43 assert_equals(bodies[0], 'a', 42 assert_equals(bodies[0], 'a',
44 'Body should match response put by worker'); 43 'Body should match response put by worker');
45 assert_equals(bodies[1], 'b', 44 assert_equals(bodies[1], 'b',
46 'Body should match response put by worker'); 45 'Body should match response put by worker');
47 assert_equals(bodies[2], 'c', 46 assert_equals(bodies[2], 'c',
48 'Body should match response put by worker'); 47 'Body should match response put by worker');
49 }); 48 });
50 }, 'Window sees cache puts by Worker'); 49 }, 'Window sees cache puts by Worker');
51 50
52 </script> 51 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698