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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/getregistration.https.html

Issue 2415873002: Import w3c tests for the service workers (Closed)
Patch Set: Rebase Created 4 years, 2 months 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 <script src="../resources/testharness.js"></script> 2 <script src="/resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="/resources/testharnessreport.js"></script>
4 <script src="resources/test-helpers.js"></script> 4 <script src="resources/test-helpers.sub.js"></script>
5 <script> 5 <script>
6 async_test(function(t) { 6 async_test(function(t) {
7 var documentURL = 'no-such-worker'; 7 var documentURL = 'no-such-worker';
8 navigator.serviceWorker.getRegistration(documentURL) 8 navigator.serviceWorker.getRegistration(documentURL)
9 .then(function(value) { 9 .then(function(value) {
10 assert_equals(value, undefined, 10 assert_equals(value, undefined,
11 'getRegistration should resolve with undefined'); 11 'getRegistration should resolve with undefined');
12 t.done(); 12 t.done();
13 }) 13 })
14 .catch(unreached_rejection(t)); 14 .catch(unreached_rejection(t));
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 }) 78 })
79 .then(function(value) { 79 .then(function(value) {
80 assert_equals(value, undefined, 80 assert_equals(value, undefined,
81 'getRegistration should resolve with undefined'); 81 'getRegistration should resolve with undefined');
82 t.done(); 82 t.done();
83 }) 83 })
84 .catch(unreached_rejection(t)); 84 .catch(unreached_rejection(t));
85 }, 'Register then Unregister then getRegistration'); 85 }, 'Register then Unregister then getRegistration');
86 86
87 </script> 87 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698