OLD | NEW |
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 Loading... |
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> |
OLD | NEW |