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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/disabled-worker.js

Issue 1828063002: Add support for origin trials in workers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trial-token-in-header-blink-document
Patch Set: fix test flakyness Created 4 years, 7 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 | « no previous file | third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/enabled-worker.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/disabled-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/disabled-worker.js b/third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/disabled-worker.js
new file mode 100644
index 0000000000000000000000000000000000000000..3599e2a27b19eb8877f0fc31d9432b6581d29bf9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/disabled-worker.js
@@ -0,0 +1,8 @@
+importScripts('/resources/testharness.js');
+
+// The trial should not be enabled.
+test(() => {
+ assert_not_exists(self.internals, 'frobulate');
+ assert_equals(self.internals.frobulate, undefined);
+ }, 'Attribute should not exist in worker');
+done();
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/enabled-worker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698