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

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

Issue 2673953003: Allow origin trials to be enabled by script (Closed)
Patch Set: Created 3 years, 10 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 50f2500b9406d2c889ef18fc2734562c1dbc9051..f4d5906d25b0e21613b13662bb6d5d07dceb21bc 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
@@ -4,7 +4,7 @@
// applied to individual IDL members.
// These tests verify that any gated parts of the API are not available.
-expect_failure = (t) => {
+expect_failure = (skip_worker) => {
tests = [{
desc: 'Accessing attribute should throw error',
code: () => {
@@ -83,13 +83,12 @@ expect_failure = (t) => {
}
}];
- fetch_tests_from_worker(new Worker('resources/disabled-worker.js'));
+ if (!skip_worker) {
+ 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);
- else
- test(tests[i].code, tests[i].desc);
+ test(tests[i].code, tests[i].desc);
}
};

Powered by Google App Engine
This is Rietveld 408576698