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

Issue 2950713002: [DevTools] New harness for inspector-protocol layout tests (Closed)

Created:
3 years, 6 months ago by dgozman
Modified:
3 years, 6 months ago
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, darin-cc_chromium.org, devtools-reviews_chromium.org, einbinder+watch-test-runner_chromium.org, jam, jochen+watch_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo, pfeldman, pfeldman+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] New harness for inspector-protocol layout tests New harness loads a helper html file in a main testing window, connects it to a browser-wide DevToolsAgentHost for manipulating pages and evaluates the javascript test. DevToolsProtocolTestBindings is a small implementation of DevToolsAgentHost <--> harness communication (based on DevToolsFrontendHost). Harness has a Page and Session class, which will make it possible to test multiple sessions connected to the same page, and (if need arises) multiple pages interaction. Converted 4 tests to new harness. More to come. BUG=734762 Review-Url: https://codereview.chromium.org/2950713002 Cr-Commit-Position: refs/heads/master@{#481419} Committed: https://chromium.googlesource.com/chromium/src/+/454746093cd6f8d587a0c28818c500846c311cc9

Patch Set 1 #

Total comments: 8

Patch Set 2 : addressed comments, 4 tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+803 lines, -271 lines) Patch
M content/shell/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/browser/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/blink_test_controller.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/blink_test_controller.cc View 1 6 chunks +15 lines, -0 lines 0 comments Download
A content/shell/browser/layout_test/devtools_protocol_test_bindings.h View 1 1 chunk +49 lines, -0 lines 0 comments Download
A content/shell/browser/layout_test/devtools_protocol_test_bindings.cc View 1 1 chunk +134 lines, -0 lines 0 comments Download
M content/shell/browser/shell_devtools_manager_delegate.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/enable-blink-features=LayoutNG View 1 1 chunk +2 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector-protocol/json-parse.html View 1 chunk +0 lines, -24 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/json-parse.js View 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/json-parse-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/inspector-protocol/loading-iframe-document-node.html View 1 1 chunk +0 lines, -89 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/loading-iframe-document-node.js View 1 1 chunk +40 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/loading-iframe-document-node-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/resources/inspector-protocol-page.html View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/resources/inspector-protocol-test.html View 1 chunk +10 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/resources/inspector-protocol-test.js View 1 1 chunk +452 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector-protocol/shadow-dom-rules-in-styleSheetAddedEvent.html View 1 1 chunk +0 lines, -42 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/shadow-dom-rules-in-styleSheetAddedEvent.js View 1 1 chunk +21 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/shadow-dom-rules-in-styleSheetAddedEvent-expected.txt View 1 1 chunk +1 line, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector-protocol/stylesheet-tracking-restart.html View 1 1 chunk +0 lines, -111 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector-protocol/stylesheet-tracking-restart.js View 1 1 chunk +47 lines, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py View 1 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (13 generated)
dgozman
Could you please take a look? @dpranke: Tools/Scripts/webkitpy/layout_tests/port/base.py @einbinder: LayoutTests/inspector-protocol/resources/inspector-protocol-test.js @pfeldman: everything. This is extracted ...
3 years, 6 months ago (2017-06-20 00:48:27 UTC) #2
pfeldman
lgtm
3 years, 6 months ago (2017-06-20 22:21:52 UTC) #5
Dirk Pranke
lgtm
3 years, 6 months ago (2017-06-20 23:05:38 UTC) #8
einbinder
lgtm https://codereview.chromium.org/2950713002/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/resources/inspector-protocol-test.js File third_party/WebKit/LayoutTests/inspector-protocol/resources/inspector-protocol-test.js (right): https://codereview.chromium.org/2950713002/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/resources/inspector-protocol-test.js#newcode117 third_party/WebKit/LayoutTests/inspector-protocol/resources/inspector-protocol-test.js:117: throw new Error(); Put the message in this ...
3 years, 6 months ago (2017-06-21 01:21:48 UTC) #9
dgozman
Thank you for review! https://codereview.chromium.org/2950713002/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/resources/inspector-protocol-test.js File third_party/WebKit/LayoutTests/inspector-protocol/resources/inspector-protocol-test.js (right): https://codereview.chromium.org/2950713002/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/resources/inspector-protocol-test.js#newcode117 third_party/WebKit/LayoutTests/inspector-protocol/resources/inspector-protocol-test.js:117: throw new Error(); On 2017/06/21 ...
3 years, 6 months ago (2017-06-21 18:11:47 UTC) #11
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/2950713002/20001
3 years, 6 months ago (2017-06-21 20:20:42 UTC) #17
commit-bot: I haz the power
3 years, 6 months ago (2017-06-22 03:04:56 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/454746093cd6f8d587a0c28818c5...

Powered by Google App Engine
This is Rietveld 408576698