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

Issue 2837083003: DevTools: create test infrastructure so devtools drives the test (Closed)

Created:
3 years, 8 months ago by chenwilliam
Modified:
3 years, 6 months ago
Reviewers:
dgozman, qyearsley
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+blink_chromium.org, pfeldman
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: create test infrastructure so devtools drives the test Improvements: * devtools drives the test, not the inspected page * tests are pure JS * doc-typed test harness * improved debugging experience (surround test function with TestRunner.debugTest) This copies a couple of existing tests - once this infra has been proven, we'll delete the originals. Perf: - Old (66 sec) [0] - New (45 sec) [1] [0] src/blink/tools/run_layout_tests.py --repeat-each=100 inspector/console/console-clear.html [1] src/blink/tools/run_layout_tests.py --repeat-each=100 http/tests/inspector/devtools-js/console-clear.js BUG=667560 Review-Url: https://codereview.chromium.org/2837083003 Cr-Commit-Position: refs/heads/master@{#481045} Committed: https://chromium.googlesource.com/chromium/src/+/941c636edf9661207927a5da8dd88a622998d1f6

Patch Set 1 #

Total comments: 22

Patch Set 2 : cl fb #

Patch Set 3 : fix #

Total comments: 12

Patch Set 4 : some cl fb addressed #

Patch Set 5 : fixup #

Patch Set 6 : all #

Total comments: 32

Patch Set 7 : cl fb #

Patch Set 8 : clean up #

Total comments: 4

Patch Set 9 : fixed #

Patch Set 10 : rebaseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+626 lines, -60 lines) Patch
M content/shell/browser/layout_test/blink_test_controller.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/blink_test_controller.cc View 1 2 3 4 5 6 7 8 9 8 chunks +40 lines, -19 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_devtools_bindings.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -1 line 0 comments Download
M content/shell/browser/layout_test/layout_test_devtools_bindings.cc View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -3 lines 0 comments Download
M content/shell/browser/shell_devtools_bindings.h View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M content/shell/browser/shell_devtools_bindings.cc View 1 2 3 4 2 chunks +6 lines, -21 lines 0 comments Download
M content/shell/test_runner/test_interfaces.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector-unit/filtered-item-selection-dialog-filtering.js View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector-unit/filtered-list-widget-providers.js View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector-unit/tabbed-pane.js View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt.js View 2 chunks +2 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/devtools-js/console-clear.js View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/devtools-js/console-clear-expected.txt View 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/devtools-js/simple-test.js View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/devtools-js/simple-test-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/BUILD.gn View 1 2 3 4 5 6 7 8 9 5 chunks +10 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/console_test_runner/ConsoleTestRunner.js View 1 2 3 4 5 1 chunk +146 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/console_test_runner/module.json View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/integration_test_runner.html View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/integration_test_runner.js View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/integration_test_runner.json View 1 2 3 4 1 chunk +75 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/integration_test_runner/IntegrationTestRunner.js View 1 2 3 4 5 6 1 chunk +99 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/integration_test_runner/module.json View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/main/Main.js View 1 2 3 4 5 6 7 8 9 5 chunks +24 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/test_runner/TestRunner.js View 1 2 3 4 5 6 7 8 6 chunks +96 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/test_runner/module.json View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/scripts/compile_frontend.py View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/scripts/extract_module/extract_module.js View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (7 generated)
chenwilliam
Thanks for all of your help! Much of this is similar to the earlier CL ...
3 years, 8 months ago (2017-04-25 01:09:07 UTC) #2
dgozman
https://codereview.chromium.org/2837083003/diff/1/content/shell/browser/layout_test/layout_test_devtools_bindings.cc File content/shell/browser/layout_test/layout_test_devtools_bindings.cc (right): https://codereview.chromium.org/2837083003/diff/1/content/shell/browser/layout_test/layout_test_devtools_bindings.cc#newcode92 content/shell/browser/layout_test/layout_test_devtools_bindings.cc:92: bindings->CreateFrontendHost(devtools_contents_->GetMainFrame()); I now think we can just remove this ...
3 years, 8 months ago (2017-04-25 21:08:28 UTC) #3
chenwilliam
@dgozman, sorry for the very long delay :o Please take another look. After I finish ...
3 years, 6 months ago (2017-06-15 01:01:05 UTC) #4
dgozman
Looks pretty good. https://codereview.chromium.org/2837083003/diff/40001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2837083003/diff/40001/content/shell/browser/layout_test/blink_test_controller.cc#newcode303 content/shell/browser/layout_test/blink_test_controller.cc:303: test_url_ = LayoutTestDevToolsBindings::MapUnitTestURL(test_url); Let's move this ...
3 years, 6 months ago (2017-06-15 21:16:49 UTC) #5
chenwilliam
@dgozman, please take another look :) https://codereview.chromium.org/2837083003/diff/40001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2837083003/diff/40001/content/shell/browser/layout_test/blink_test_controller.cc#newcode303 content/shell/browser/layout_test/blink_test_controller.cc:303: test_url_ = LayoutTestDevToolsBindings::MapUnitTestURL(test_url); ...
3 years, 6 months ago (2017-06-19 18:33:30 UTC) #7
dgozman
https://codereview.chromium.org/2837083003/diff/100001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2837083003/diff/100001/content/shell/browser/layout_test/blink_test_controller.cc#newcode300 content/shell/browser/layout_test/blink_test_controller.cc:300: bool is_devtools_integration_test; bool is_devtools_js_test = false; https://codereview.chromium.org/2837083003/diff/100001/content/shell/browser/layout_test/blink_test_controller.cc#newcode387 content/shell/browser/layout_test/blink_test_controller.cc:387: SecondaryWindow(); ...
3 years, 6 months ago (2017-06-19 22:55:52 UTC) #8
chenwilliam
ptal. https://codereview.chromium.org/2837083003/diff/100001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2837083003/diff/100001/content/shell/browser/layout_test/blink_test_controller.cc#newcode300 content/shell/browser/layout_test/blink_test_controller.cc:300: bool is_devtools_integration_test; On 2017/06/19 22:55:51, dgozman wrote: > ...
3 years, 6 months ago (2017-06-19 23:48:18 UTC) #9
dgozman
lgtm https://codereview.chromium.org/2837083003/diff/100001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2837083003/diff/100001/content/shell/browser/layout_test/blink_test_controller.cc#newcode300 content/shell/browser/layout_test/blink_test_controller.cc:300: bool is_devtools_integration_test; On 2017/06/19 23:48:17, chenwilliam wrote: > ...
3 years, 6 months ago (2017-06-20 00:02:07 UTC) #10
chenwilliam
qyearsley@chromium.org: Could you please review changes in third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py? Thank you. It's not great - perhaps ...
3 years, 6 months ago (2017-06-20 01:10:08 UTC) #12
qyearsley
On 2017/06/20 01:10:08, chenwilliam wrote: > mailto:qyearsley@chromium.org: Could you please review changes in > third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py? ...
3 years, 6 months ago (2017-06-20 21:30:49 UTC) #13
chenwilliam
On 2017/06/20 21:30:49, qyearsley wrote: > On 2017/06/20 01:10:08, chenwilliam wrote: > > mailto:qyearsley@chromium.org: Could ...
3 years, 6 months ago (2017-06-20 21:43:30 UTC) #14
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/2837083003/180001
3 years, 6 months ago (2017-06-20 22:03:59 UTC) #17
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 00:35:53 UTC) #20
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/941c636edf9661207927a5da8dd8...

Powered by Google App Engine
This is Rietveld 408576698