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

Issue 2340323002: Add Origin Trials Test interface, rather than attaching trials directly to internals. (Closed)

Created:
4 years, 3 months ago by iclelland
Modified:
4 years, 3 months ago
Reviewers:
haraken, chasej
CC:
chromium-reviews, blink-reviews, chasej+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Origin Trials Test interface, rather than attaching trials directly to internals. This makes the test interface almost exactly like any other origin trial, and means that we don't have to do any special handling at internals construction time to support it. Because it lives on window.internals.originTrialTest() now, I renamed the various test methods and attributes to be more descriptive of what they are actually testing, rather than prefixing them with 'frobulate' to avoid polluting the internals namespace. BUG=647273 Committed: https://crrev.com/2076a9846ca82c6f6566d5fb7526729c853157ee Cr-Commit-Position: refs/heads/master@{#419225}

Patch Set 1 #

Patch Set 2 : IDL-backed methods are not static on full interfaces #

Total comments: 11

Patch Set 3 : Remove newly-invalid IDL empty attribute set #

Patch Set 4 : Updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -226 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/disabled-worker.js View 1 2 3 1 chunk +16 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/enabled-worker.js View 1 2 3 1 chunk +19 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/origin_trials.js View 2 chunks +96 lines, -51 lines 0 comments Download
M third_party/WebKit/Source/core/BUILD.gn View 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/core_idl_files.gni View 2 chunks +6 lines, -8 lines 0 comments Download
D third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulate.h View 1 chunk +0 lines, -25 lines 0 comments Download
D third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulate.cpp View 1 chunk +0 lines, -30 lines 0 comments Download
D third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulate.idl View 1 chunk +0 lines, -11 lines 0 comments Download
D third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulateInterfaceBindings.h View 1 chunk +0 lines, -25 lines 0 comments Download
D third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulateInterfaceBindings.idl View 1 chunk +0 lines, -15 lines 0 comments Download
D third_party/WebKit/Source/core/origin_trials/testing/WorkerInternalsFrobulate.h View 1 chunk +0 lines, -23 lines 0 comments Download
D third_party/WebKit/Source/core/origin_trials/testing/WorkerInternalsFrobulate.idl View 1 chunk +0 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.idl View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/testing/OriginTrialsTest.h View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/core/testing/OriginTrialsTest.cpp View 1 2 chunks +19 lines, -6 lines 0 comments Download
A third_party/WebKit/Source/core/testing/OriginTrialsTest.idl View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/testing/OriginTrialsTestPartial.h View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/testing/OriginTrialsTestPartial.idl View 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/WorkerInternals.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/WorkerInternals.cpp View 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/WorkerInternals.idl View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp View 2 chunks +2 lines, -6 lines 0 comments Download

Messages

Total messages: 27 (17 generated)
iclelland
+r chasej, can you PTAL?
4 years, 3 months ago (2016-09-15 17:50:29 UTC) #8
iclelland
+r haraken, can you PTAL as well? You're an OWNER, and this is also blocking ...
4 years, 3 months ago (2016-09-16 13:17:36 UTC) #12
haraken
LGTM https://codereview.chromium.org/2340323002/diff/20001/third_party/WebKit/Source/core/testing/OriginTrialsTest.idl File third_party/WebKit/Source/core/testing/OriginTrialsTest.idl (right): https://codereview.chromium.org/2340323002/diff/20001/third_party/WebKit/Source/core/testing/OriginTrialsTest.idl#newcode6 third_party/WebKit/Source/core/testing/OriginTrialsTest.idl:6: ] interface OriginTrialsTest { Remove the empty []. ...
4 years, 3 months ago (2016-09-16 13:48:46 UTC) #13
iclelland
https://codereview.chromium.org/2340323002/diff/20001/third_party/WebKit/Source/core/testing/OriginTrialsTest.idl File third_party/WebKit/Source/core/testing/OriginTrialsTest.idl (right): https://codereview.chromium.org/2340323002/diff/20001/third_party/WebKit/Source/core/testing/OriginTrialsTest.idl#newcode6 third_party/WebKit/Source/core/testing/OriginTrialsTest.idl:6: ] interface OriginTrialsTest { On 2016/09/16 13:48:46, haraken wrote: ...
4 years, 3 months ago (2016-09-16 14:38:43 UTC) #14
chasej
https://codereview.chromium.org/2340323002/diff/20001/third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/enabled-worker.js File third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/enabled-worker.js (right): https://codereview.chromium.org/2340323002/diff/20001/third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/enabled-worker.js#newcode8 third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/enabled-worker.js:8: }, 'Attribute should exist and return value in worker'); ...
4 years, 3 months ago (2016-09-16 15:17:02 UTC) #15
iclelland
https://codereview.chromium.org/2340323002/diff/20001/third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/enabled-worker.js File third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/enabled-worker.js (right): https://codereview.chromium.org/2340323002/diff/20001/third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/enabled-worker.js#newcode8 third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/enabled-worker.js:8: }, 'Attribute should exist and return value in worker'); ...
4 years, 3 months ago (2016-09-16 15:59:47 UTC) #16
chasej
LGTM https://codereview.chromium.org/2340323002/diff/20001/third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp File third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp (right): https://codereview.chromium.org/2340323002/diff/20001/third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp#newcode106 third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp:106: originTrialContext->setFeatureBindingsInstalled("Frobulate"); On 2016/09/16 15:59:47, iclelland wrote: > On ...
4 years, 3 months ago (2016-09-16 18:23:44 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2340323002/50001
4 years, 3 months ago (2016-09-16 18:26:56 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:50001)
4 years, 3 months ago (2016-09-16 18:34:05 UTC) #25
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 18:36:11 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2076a9846ca82c6f6566d5fb7526729c853157ee
Cr-Commit-Position: refs/heads/master@{#419225}

Powered by Google App Engine
This is Rietveld 408576698