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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/origin_trials.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
Index: third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/origin_trials.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/origin_trials.js b/third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/origin_trials.js
index 693cde95d66b24243cb2ef1396f067efde78cb8b..a16f1f2376ca077588589d9ca94deae17efff5c3 100644
--- a/third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/origin_trials.js
+++ b/third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/origin_trials.js
@@ -24,6 +24,8 @@ expect_failure = (t) => {
}
}];
+ fetch_tests_from_worker(new Worker('resources/disabled-worker.js'));
+
for (var i = 0; i < tests.length; ++i) {
if (t)
t.step(tests[i].code);
@@ -44,4 +46,6 @@ test(() => {
assert_idl_attribute(window.internals, 'frobulateBindings');
assert_true(window.internals.frobulateBindings, 'Attribute should return boolean value');
}, 'Attribute should exist and return value');
+
+fetch_tests_from_worker(new Worker('resources/enabled-worker.js'));
};

Powered by Google App Engine
This is Rietveld 408576698