| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- This is in chromium/ because the equivalent version available in Web |
| 3 Platform Tests also asserts the presence of the Client's `type` attribute. |
| 4 This less precise version (and its resources) should be maintained only to |
| 5 preserve test coverage until the attribute is implemented. See |
| 6 https://crbug.com/705685 --> |
| 2 <title>Service Worker: Clients.matchAll with includeUncontrolled</title> | 7 <title>Service Worker: Clients.matchAll with includeUncontrolled</title> |
| 3 <script src="../resources/testharness.js"></script> | 8 <script src="../../resources/testharness.js"></script> |
| 4 <script src="../resources/testharnessreport.js"></script> | 9 <script src="../../resources/testharnessreport.js"></script> |
| 5 <script src="resources/test-helpers.js"></script> | 10 <script src="../resources/test-helpers.js"></script> |
| 6 <script> | 11 <script> |
| 7 var base_url = 'resources/blank.html'; // This is out-of-scope. | 12 var base_url = 'resources/blank.html'; // This is out-of-scope. |
| 8 var scope = base_url + '?clients-matchAll-includeUncontrolled'; | 13 var scope = base_url + '?clients-matchAll-includeUncontrolled'; |
| 9 | 14 |
| 10 // Creates 3 iframes, 2 for in-scope and 1 for out-of-scope. | 15 // Creates 3 iframes, 2 for in-scope and 1 for out-of-scope. |
| 11 // The frame opened for scope + '#2' is returned via a promise. | 16 // The frame opened for scope + '#2' is returned via a promise. |
| 12 // FIXME: remove iframes when the test finishes. | 17 // FIXME: remove iframes when the test finishes. |
| 13 function create_iframes(scope) { | 18 function create_iframes(scope) { |
| 14 return with_iframe(base_url) | 19 return with_iframe(base_url) |
| 15 .then(function(frame0) { | 20 .then(function(frame0) { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 return test_matchall(frame, expected_with_include_uncontrolled, | 76 return test_matchall(frame, expected_with_include_uncontrolled, |
| 72 {includeUncontrolled:true}); | 77 {includeUncontrolled:true}); |
| 73 }) | 78 }) |
| 74 .then(function() { | 79 .then(function() { |
| 75 service_worker_unregister_and_done(t, scope); | 80 service_worker_unregister_and_done(t, scope); |
| 76 }) | 81 }) |
| 77 .catch(unreached_rejection(t)); | 82 .catch(unreached_rejection(t)); |
| 78 }, 'Verify matchAll() respect includeUncontrolled'); | 83 }, 'Verify matchAll() respect includeUncontrolled'); |
| 79 | 84 |
| 80 </script> | 85 </script> |
| OLD | NEW |