| Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/clients-matchall.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/clients-matchall.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/clients-matchall.html
|
| deleted file mode 100644
|
| index 756383447dd7a8703d6262876088c3a2e60eeaf4..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/clients-matchall.html
|
| +++ /dev/null
|
| @@ -1,62 +0,0 @@
|
| -<!DOCTYPE html>
|
| -<title>Service Worker: Clients.matchAll</title>
|
| -<script src="../resources/testharness.js"></script>
|
| -<script src="../resources/testharnessreport.js"></script>
|
| -<script src="resources/test-helpers.js"></script>
|
| -<script>
|
| -var scope = 'resources/blank.html?clients-matchAll';
|
| -var expectedFirst = [
|
| - /* visibilityState, focused, url, frameType */
|
| - ['visible', true, new URL(scope + '#1', location).toString(), 'nested'],
|
| - ['visible', false, new URL(scope + '#2', location).toString(), 'nested']
|
| -];
|
| -var expectedSecond = [
|
| - /* visibilityState, focused, url, frameType */
|
| - ['visible', true, new URL(scope + '#2', location).toString(), 'nested'],
|
| - ['visible', false, new URL(scope + '#1', location).toString(), 'nested']
|
| -];
|
| -
|
| -var frame1, frame2;
|
| -var worker;
|
| -promise_test(function(t) {
|
| - return service_worker_unregister_and_register(
|
| - t, 'resources/clients-matchall-worker.js', scope)
|
| - .then(function(registration) {
|
| - worker = registration.installing;
|
| - return wait_for_state(t, worker, 'activated');
|
| - })
|
| - .then(function() { return with_iframe(scope + '#1'); })
|
| - .then(function(f) {
|
| - frame1 = f;
|
| - return with_iframe(scope + '#2');
|
| - })
|
| - .then(function(f) {
|
| - frame2 = f;
|
| - return new Promise(function(resolve) {
|
| - frame1.focus();
|
| - var channel = new MessageChannel();
|
| - channel.port1.onmessage = resolve;
|
| - worker.postMessage({port:channel.port2}, [channel.port2]);
|
| - });
|
| - })
|
| - .then(function(message) {
|
| - assert_equals(message.data.length, 2);
|
| - assert_array_equals(message.data[0], expectedFirst[0]);
|
| - assert_array_equals(message.data[1], expectedFirst[1]);
|
| - return new Promise(function(resolve) {
|
| - frame2.focus();
|
| - var channel = new MessageChannel();
|
| - channel.port1.onmessage = resolve;
|
| - worker.postMessage({port:channel.port2}, [channel.port2]);
|
| - });
|
| - })
|
| - .then(function(message) {
|
| - assert_equals(message.data.length, 2);
|
| - assert_array_equals(message.data[0], expectedSecond[0]);
|
| - assert_array_equals(message.data[1], expectedSecond[1]);
|
| - frame1.remove();
|
| - frame2.remove();
|
| - return service_worker_unregister_and_done(t, scope);
|
| - })
|
| - }, 'Test Clients.matchAll()');
|
| -</script>
|
|
|