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

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

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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/immutable-prototype-serviceworker.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/immutable-prototype-serviceworker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/immutable-prototype-serviceworker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/immutable-prototype-serviceworker.js
deleted file mode 100644
index 346b998ceac004b93a3fc505828a2614fbef1560..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/immutable-prototype-serviceworker.js
+++ /dev/null
@@ -1,19 +0,0 @@
-function prototypeChain(global) {
- let result = [];
- while (global !== null) {
- let thrown = false;
- let next = global.__proto__;
- try {
- global.__proto__ = {};
- result.push('mutable');
- } catch (e) {
- result.push('immutable');
- }
- global = next;
- }
- return result;
-}
-
-self.onmessage = function(e) {
- e.data.postMessage(prototypeChain(self));
-};
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/immutable-prototype-serviceworker.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698