| 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
|
| index ccf821882540f0703d3b9e6a8498641f50213c26..5c10f56286e4a608acc1ab501acc226f4861d4e5 100644
|
| --- 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
|
| @@ -1,24 +1,2 @@
|
| -importScripts('/resources/testharness.js');
|
| -
|
| -// Test whether the origin-trial-enabled attributes are *NOT* attached in a
|
| -// worker where the trial is not enabled.
|
| -// This is deliberately just a minimal set of tests to ensure that trials are
|
| -// available in a worker. The full suite of tests are in origin_trials.js.
|
| -test(() => {
|
| - var testObject = self.internals.originTrialsTest();
|
| - assert_idl_attribute(testObject, 'throwingAttribute');
|
| - assert_throws('NotSupportedError', () => {
|
| - testObject.throwingAttribute;
|
| - }, 'Accessing attribute should throw error');
|
| -}, 'Accessing attribute should throw error in worker');
|
| -test(() => {
|
| - var testObject = self.internals.originTrialsTest();
|
| - assert_not_exists(testObject, 'normalAttribute');
|
| - assert_equals(testObject.normalAttribute, undefined);
|
| -}, 'Attribute should not exist in worker');
|
| -test(() => {
|
| - var testObject = self.internals.originTrialsTest();
|
| - assert_not_exists(testObject, 'CONSTANT');
|
| - assert_equals(testObject.CONSTANT, undefined);
|
| -}, 'Constant should not exist in worker');
|
| -done();
|
| +importScripts('origintrials-worker.js');
|
| +expect_failure_worker();
|
|
|