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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/enabled-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: address comments Created 4 years, 8 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/origin_trials/resources/enabled-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/enabled-worker.js b/third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/enabled-worker.js
new file mode 100644
index 0000000000000000000000000000000000000000..0b379c9d267a42a1fc6ceb8bc40711caa2976c9e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/enabled-worker.js
@@ -0,0 +1,8 @@
+importScripts('/resources/testharness.js');
+
+// The trial should be enabled.
+test(() => {
+ assert_idl_attribute(self, 'frobulate');
+ assert_true(self.frobulate, 'Attribute should return boolean value');
+ }, 'Attribute should exist and return value in worker');
+done();

Powered by Google App Engine
This is Rietveld 408576698