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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/immutable-prototype-serviceworker.html

Issue 2933913002: Upstream service worker prototype test to WPT
Patch Set: Migrate test for immutable prototype Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/immutable-prototype-serviceworker.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/immutable-prototype-serviceworker.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/immutable-prototype-serviceworker.html
deleted file mode 100644
index d7b7f6216cb2f585be866f884a896222c6c570da..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/immutable-prototype-serviceworker.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<!DOCTYPE html>
-<html>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script>
-'use strict';
-
-let expected = ['immutable', 'immutable', 'immutable', 'immutable', 'immutable'];
-
-promise_test(t =>
- navigator.serviceWorker.register('resources/immutable-prototype-serviceworker.js', {scope: './resources/'})
- .then(registration => {
- let worker = registration.installing || registration.waiting || registration.active;
- let channel = new MessageChannel()
- worker.postMessage(channel.port2, [channel.port2]);
- let resolve;
- let promise = new Promise(r => resolve = r);
- channel.port1.onmessage = resolve;
- return promise.then(result => assert_array_equals(expected, result.data));
- }),
-'worker prototype chain should be immutable');
-</script>
-</html>

Powered by Google App Engine
This is Rietveld 408576698