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

Issue 2513423003: DevTools: Convert inspector-unit tests to use reusable test harness (Closed)

Created:
4 years, 1 month ago by chenwilliam
Modified:
4 years ago
Reviewers:
einbinder, dgozman, pfeldman
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, darin-cc_chromium.org, devtools-reviews_chromium.org, Dirk Pranke, 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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: Convert inspector-unit tests to use reusable test harness BUG=667560 Committed: https://crrev.com/0a7cd2cdb19c86e206a9b8f96ff03378635f135c Cr-Commit-Position: refs/heads/master@{#435771}

Patch Set 1 #

Patch Set 2 : clean diff #

Total comments: 4

Patch Set 3 : address CL feedback #

Total comments: 4

Patch Set 4 : address CL feedback #

Total comments: 5

Patch Set 5 : address Pavel feedback #

Patch Set 6 : refactor into test app #

Total comments: 2

Patch Set 7 : create shell module #

Total comments: 16

Patch Set 8 : address dmitry comments #

Patch Set 9 : Moved type definition out of externs #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+727 lines, -813 lines) Patch
M components/test_runner/test_interfaces.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/shell/browser/layout_test/blink_test_controller.cc View 1 2 3 4 4 chunks +8 lines, -5 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_devtools_frontend.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_devtools_frontend.cc View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/inspector-unit/filtered-item-selection-dialog-filtering.html View 1 2 3 4 1 chunk +0 lines, -109 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/inspector-unit/filtered-item-selection-dialog-filtering.js View 1 2 3 4 5 4 chunks +12 lines, -26 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector-unit/inspector-unit-test.js View 1 2 1 chunk +0 lines, -157 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/inspector-unit/inspector-unit-test.json View 1 2 3 4 1 chunk +0 lines, -16 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/inspector-unit/static-viewport-control.html View 1 2 1 chunk +0 lines, -62 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector-unit/static-viewport-control.js View 1 2 3 4 5 1 chunk +50 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/inspector-unit/suggest-box.html View 1 2 1 chunk +0 lines, -67 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector-unit/suggest-box.js View 1 2 3 4 5 1 chunk +55 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/inspector-unit/test-failure.html View 1 chunk +0 lines, -16 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector-unit/test-failure.js View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt.html View 1 2 1 chunk +0 lines, -38 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt.js View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt-hint.html View 1 2 1 chunk +0 lines, -124 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt-hint.js View 1 2 3 4 5 1 chunk +108 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie.html View 1 chunk +0 lines, -183 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie.js View 1 2 3 4 5 1 chunk +170 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/BUILD.gn View 1 2 3 4 5 6 8 chunks +16 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/externs.js View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/shell/TestShell.js View 1 2 3 4 5 6 7 1 chunk +41 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/shell/module.json View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/test_runner/TestRunner.js View 1 2 3 4 5 6 7 8 1 chunk +151 lines, -0 lines 2 comments Download
A third_party/WebKit/Source/devtools/front_end/test_runner/module.json View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/unit_test_runner.html View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/unit_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/unit_test_runner.json View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/scripts/compile_frontend.py View 1 2 3 4 5 1 chunk +8 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/apache_http.py View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
chenwilliam
Please take a look - I started with Joel's unit tests as part of the ...
4 years, 1 month ago (2016-11-22 01:17:20 UTC) #2
einbinder
https://codereview.chromium.org/2513423003/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector-unit/inspector-unit-test.js File third_party/WebKit/LayoutTests/http/tests/inspector-unit/inspector-unit-test.js (right): https://codereview.chromium.org/2513423003/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector-unit/inspector-unit-test.js#newcode128 third_party/WebKit/LayoutTests/http/tests/inspector-unit/inspector-unit-test.js:128: Runtime.startApplication("/inspector-unit/inspector-unit-test").then(() => runTest(test)); Maybe don't force things to be ...
4 years, 1 month ago (2016-11-22 02:19:46 UTC) #3
chenwilliam
Please take another look. I updated based on feedback and migrated all of the inspector-unit ...
4 years, 1 month ago (2016-11-22 20:56:05 UTC) #4
dgozman
Looks really good! Let's try to do this with a real inspector test now? https://codereview.chromium.org/2513423003/diff/40001/third_party/WebKit/LayoutTests/http/tests/inspector-unit/inspector-unit-test-helper.js ...
4 years, 1 month ago (2016-11-22 21:59:05 UTC) #5
chenwilliam
PTAL. https://codereview.chromium.org/2513423003/diff/40001/third_party/WebKit/LayoutTests/http/tests/inspector-unit/inspector-unit-test-helper.js File third_party/WebKit/LayoutTests/http/tests/inspector-unit/inspector-unit-test-helper.js (right): https://codereview.chromium.org/2513423003/diff/40001/third_party/WebKit/LayoutTests/http/tests/inspector-unit/inspector-unit-test-helper.js#newcode156 third_party/WebKit/LayoutTests/http/tests/inspector-unit/inspector-unit-test-helper.js:156: .then((data) => data.text()) On 2016/11/22 21:59:05, dgozman wrote: ...
4 years, 1 month ago (2016-11-23 00:27:41 UTC) #6
dgozman
lgtm https://codereview.chromium.org/2513423003/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector-unit/inspector-unit-test-helper.js File third_party/WebKit/LayoutTests/http/tests/inspector-unit/inspector-unit-test-helper.js (right): https://codereview.chromium.org/2513423003/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector-unit/inspector-unit-test-helper.js#newcode108 third_party/WebKit/LayoutTests/http/tests/inspector-unit/inspector-unit-test-helper.js:108: return Promise.all(lazyModules.map(lazyModule => window.runtime.loadModulePromise(lazyModule))); window -> self https://codereview.chromium.org/2513423003/diff/60001/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py ...
4 years ago (2016-11-28 18:44:51 UTC) #7
pfeldman
https://codereview.chromium.org/2513423003/diff/60001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2513423003/diff/60001/content/shell/browser/layout_test/blink_test_controller.cc#newcode271 content/shell/browser/layout_test/blink_test_controller.cc:271: test_url_ = LayoutTestDevToolsFrontend::MapJSTestURL(test_url); We should not defer to devtools-specific ...
4 years ago (2016-11-28 19:01:03 UTC) #8
chenwilliam
Please take another look. I've created a front-end test application which lets us get rid ...
4 years ago (2016-11-29 22:33:34 UTC) #10
pfeldman
https://codereview.chromium.org/2513423003/diff/100001/third_party/WebKit/Source/devtools/front_end/unit_test_runner.js File third_party/WebKit/Source/devtools/front_end/unit_test_runner.js (right): https://codereview.chromium.org/2513423003/diff/100001/third_party/WebKit/Source/devtools/front_end/unit_test_runner.js#newcode12 third_party/WebKit/Source/devtools/front_end/unit_test_runner.js:12: function initializeTest() { test runner module should do this ...
4 years ago (2016-11-29 23:06:17 UTC) #11
chenwilliam
Please take another look. I've extracted the logic to initialize unit test into a new ...
4 years ago (2016-11-30 02:21:02 UTC) #12
dgozman
https://codereview.chromium.org/2513423003/diff/120001/components/test_runner/test_interfaces.cc File components/test_runner/test_interfaces.cc (right): https://codereview.chromium.org/2513423003/diff/120001/components/test_runner/test_interfaces.cc#newcode100 components/test_runner/test_interfaces.cc:100: spec.find("unit_test_runner.html") == std::string::npos) { Why this? How does the ...
4 years ago (2016-11-30 18:19:54 UTC) #13
einbinder
https://codereview.chromium.org/2513423003/diff/120001/components/test_runner/test_interfaces.cc File components/test_runner/test_interfaces.cc (right): https://codereview.chromium.org/2513423003/diff/120001/components/test_runner/test_interfaces.cc#newcode100 components/test_runner/test_interfaces.cc:100: spec.find("unit_test_runner.html") == std::string::npos) { On 2016/11/30 at 18:19:54, dgozman ...
4 years ago (2016-11-30 19:51:06 UTC) #14
chenwilliam
PTAL. https://codereview.chromium.org/2513423003/diff/120001/components/test_runner/test_interfaces.cc File components/test_runner/test_interfaces.cc (right): https://codereview.chromium.org/2513423003/diff/120001/components/test_runner/test_interfaces.cc#newcode100 components/test_runner/test_interfaces.cc:100: spec.find("unit_test_runner.html") == std::string::npos) { On 2016/11/30 18:19:54, dgozman ...
4 years ago (2016-11-30 19:53:09 UTC) #15
chenwilliam
https://codereview.chromium.org/2513423003/diff/120001/third_party/WebKit/Source/devtools/front_end/externs.js File third_party/WebKit/Source/devtools/front_end/externs.js (right): https://codereview.chromium.org/2513423003/diff/120001/third_party/WebKit/Source/devtools/front_end/externs.js#newcode809 third_party/WebKit/Source/devtools/front_end/externs.js:809: var testRunner = {}; On 2016/11/30 19:51:06, einbinder wrote: ...
4 years ago (2016-11-30 23:06:04 UTC) #16
einbinder
lgtm https://codereview.chromium.org/2513423003/diff/120001/components/test_runner/test_interfaces.cc File components/test_runner/test_interfaces.cc (right): https://codereview.chromium.org/2513423003/diff/120001/components/test_runner/test_interfaces.cc#newcode100 components/test_runner/test_interfaces.cc:100: spec.find("unit_test_runner.html") == std::string::npos) { On 2016/11/30 at 19:53:08, ...
4 years ago (2016-12-01 02:07:51 UTC) #17
pfeldman
lgtm
4 years ago (2016-12-01 21:38:20 UTC) #18
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/2513423003/160001
4 years ago (2016-12-01 21:40:49 UTC) #21
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years ago (2016-12-01 23:50:20 UTC) #24
commit-bot: I haz the power
4 years ago (2016-12-01 23:52:49 UTC) #26
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/0a7cd2cdb19c86e206a9b8f96ff03378635f135c
Cr-Commit-Position: refs/heads/master@{#435771}

Powered by Google App Engine
This is Rietveld 408576698