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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/cache-storage/serviceworker/credentials.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 <meta charset=utf-8> 2 <meta charset=utf-8>
3 <title>Cache Storage: Verify credentials are respected by Cache operations</titl e> 3 <title>Cache Storage: Verify credentials are respected by Cache operations</titl e>
4 <link rel="help" href="https://w3c.github.io/ServiceWorker/#cache-storage"> 4 <link rel="help" href="https://w3c.github.io/ServiceWorker/#cache-storage">
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="../../service-worker/resources/test-helpers.sub.js"></script> 7 <script src="../../service-worker/resources/test-helpers.sub.js"></script>
8 <style>iframe { display: none; }</style> 8 <style>iframe { display: none; }</style>
9 <script> 9 <script>
10 10
(...skipping 26 matching lines...) Expand all
37 assert_equals(data.length, 3, 'three entries should be present'); 37 assert_equals(data.length, 3, 'three entries should be present');
38 assert_equals(data.filter(function(url) { return /@/.test(url); }).length, 2, 38 assert_equals(data.filter(function(url) { return /@/.test(url); }).length, 2,
39 'two entries should contain credentials'); 39 'two entries should contain credentials');
40 assert_true(data.some(function(url) { return /aa:bb@/.test(url); }), 40 assert_true(data.some(function(url) { return /aa:bb@/.test(url); }),
41 'entry with credentials aa:bb should be present'); 41 'entry with credentials aa:bb should be present');
42 assert_true(data.some(function(url) { return /cc:dd@/.test(url); }), 42 assert_true(data.some(function(url) { return /cc:dd@/.test(url); }),
43 'entry with credentials cc:dd should be present'); 43 'entry with credentials cc:dd should be present');
44 }); 44 });
45 }, "Cache API matching includes credentials"); 45 }, "Cache API matching includes credentials");
46 </script> 46 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698