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

Issue 2712843005: Use asserts in origin trials layout tests (Closed)

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

Description

Use asserts in origin trials layout tests The layout tests for exposure of interfaces were using console messages with comparisons against -expected.txt files. Although they were using testharness.js, the tests were not using asserts. This CL changes the tests to use asserts, and remove the -expected.txt files wherever possible. Discussion on console messages in testharness tests can be found here: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/3Ob2lq14KEs BUG=687492 Review-Url: https://codereview.chromium.org/2712843005 Cr-Commit-Position: refs/heads/master@{#453063} Committed: https://chromium.googlesource.com/chromium/src/+/2a99dd6adb183a1a501035ccd9777e189087de82

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Remove other -expected.txt files #

Total comments: 14

Patch Set 4 : Address comments #

Total comments: 1

Patch Set 5 : Address more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -905 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/foreignfetch-origin-trial-interfaces.html View 1 chunk +6 lines, -23 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/foreignfetch-origin-trial-interfaces-expected.txt View 1 2 3 4 1 chunk +4 lines, -22 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/imagecapture-origin-trial-interfaces.html View 1 chunk +4 lines, -5 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/imagecapture-origin-trial-interfaces-expected.txt View 1 chunk +0 lines, -35 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/imagecapture-origin-trial-interfaces-script-added.html View 1 chunk +4 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/imagecapture-origin-trial-interfaces-script-added-expected.txt View 1 chunk +1 line, -63 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/resources/foreignfetch-origin-trial-interfaces-worker-disabled.js View 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/resources/foreignfetch-origin-trial-interfaces-worker-enabled.php View 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/rootscroller-origin-trial-interfaces.html View 1 chunk +2 lines, -5 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/rootscroller-origin-trial-interfaces-expected.txt View 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/rootscroller-origin-trial-interfaces-script-added.html View 1 chunk +6 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/rootscroller-origin-trial-interfaces-script-added-expected.txt View 1 2 3 4 1 chunk +2 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/webusb-origin-trial-interfaces.html View 2 chunks +17 lines, -21 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/webusb-origin-trial-interfaces-expected.txt View 1 chunk +0 lines, -91 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/webusb-origin-trial-interfaces-script-added.html View 1 chunk +25 lines, -37 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/webusb-origin-trial-interfaces-script-added-expected.txt View 1 2 3 4 1 chunk +3 lines, -175 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js View 1 2 3 4 2 chunks +75 lines, -112 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/origin-trials-runtimeflags-disabled/http/tests/origin_trials/webexposed/foreignfetch-origin-trial-interfaces-expected.txt View 1 chunk +4 lines, -14 lines 0 comments Download
D third_party/WebKit/LayoutTests/virtual/origin-trials-runtimeflags-disabled/http/tests/origin_trials/webexposed/imagecapture-origin-trial-interfaces-expected.txt View 1 2 1 chunk +0 lines, -35 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/origin-trials-runtimeflags-disabled/http/tests/origin_trials/webexposed/imagecapture-origin-trial-interfaces-script-added-expected.txt View 1 chunk +0 lines, -33 lines 0 comments Download
D third_party/WebKit/LayoutTests/virtual/origin-trials-runtimeflags-disabled/http/tests/origin_trials/webexposed/rootscroller-origin-trial-interfaces-expected.txt View 1 2 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/origin-trials-runtimeflags-disabled/http/tests/origin_trials/webexposed/rootscroller-origin-trial-interfaces-script-added-expected.txt View 1 chunk +2 lines, -8 lines 0 comments Download
D third_party/WebKit/LayoutTests/virtual/origin-trials-runtimeflags-disabled/http/tests/origin_trials/webexposed/webusb-origin-trial-interfaces-expected.txt View 1 2 1 chunk +0 lines, -91 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/origin-trials-runtimeflags-disabled/http/tests/origin_trials/webexposed/webusb-origin-trial-interfaces-script-added-expected.txt View 1 chunk +2 lines, -89 lines 0 comments Download

Messages

Total messages: 25 (17 generated)
chasej
iclelland, please take a look.
3 years, 10 months ago (2017-02-24 15:20:01 UTC) #13
iclelland
https://codereview.chromium.org/2712843005/diff/40001/third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js File third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js (right): https://codereview.chromium.org/2712843005/diff/40001/third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js#newcode22 third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js:22: // check_interfaces: Should check_interfaces also test that the properties ...
3 years, 10 months ago (2017-02-24 18:38:43 UTC) #16
chasej
Thanks for the comments. See below. https://codereview.chromium.org/2712843005/diff/40001/third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js File third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js (right): https://codereview.chromium.org/2712843005/diff/40001/third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js#newcode22 third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js:22: // check_interfaces: On ...
3 years, 10 months ago (2017-02-24 20:04:08 UTC) #17
iclelland
https://codereview.chromium.org/2712843005/diff/40001/third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js File third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js (right): https://codereview.chromium.org/2712843005/diff/40001/third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js#newcode65 third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js:65: assert_false(interface_prototype.hasOwnProperty(property_name), On 2017/02/24 20:04:07, chasej wrote: > On 2017/02/24 ...
3 years, 10 months ago (2017-02-24 20:23:08 UTC) #18
chasej
On 2017/02/24 20:23:08, iclelland wrote: > https://codereview.chromium.org/2712843005/diff/40001/third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js > File third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js > (right): > > https://codereview.chromium.org/2712843005/diff/40001/third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js#newcode65 ...
3 years, 10 months ago (2017-02-25 02:39:42 UTC) #19
iclelland
On 2017/02/25 02:39:42, chasej wrote: > On 2017/02/24 20:23:08, iclelland wrote: > > > https://codereview.chromium.org/2712843005/diff/40001/third_party/WebKit/LayoutTests/http/tests/resources/origin-trials-helper.js ...
3 years, 10 months ago (2017-02-25 03:02:34 UTC) #20
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/2712843005/80001
3 years, 10 months ago (2017-02-25 03:09:17 UTC) #22
commit-bot: I haz the power
3 years, 10 months ago (2017-02-25 04:12:40 UTC) #25
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/2a99dd6adb183a1a501035ccd977...

Powered by Google App Engine
This is Rietveld 408576698