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

Issue 426553003: [DevTools] Run tests only after all UI bits are initialized. (Closed)

Created:
6 years, 4 months ago by dgozman
Modified:
6 years, 4 months ago
Reviewers:
vsevik, apavlov, pfeldman
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org
Project:
blink
Visibility:
Public.

Description

[DevTools] Run tests only after all UI bits are initialized. Tests use WebInspector.panels, which are initialized only in presentUI. BUG=397648 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179146

Patch Set 1 #

Total comments: 6

Patch Set 2 : renamed to InspectorUILoadedForTests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -12 lines) Patch
M Source/devtools/front_end/Tests.js View 1 1 chunk +1 line, -6 lines 0 comments Download
M Source/devtools/front_end/common/NotificationService.js View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/devtools/front_end/common/WebInspector.js View 1 chunk +0 lines, -4 lines 0 comments Download
M Source/devtools/front_end/main/Main.js View 1 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
dgozman
Take a look please.
6 years, 4 months ago (2014-07-28 12:17:32 UTC) #1
apavlov
https://codereview.chromium.org/426553003/diff/1/Source/devtools/front_end/common/NotificationService.js File Source/devtools/front_end/common/NotificationService.js (left): https://codereview.chromium.org/426553003/diff/1/Source/devtools/front_end/common/NotificationService.js#oldcode18 Source/devtools/front_end/common/NotificationService.js:18: InspectorLoaded: "InspectorLoaded", Seva, isn't this a CodeSchool-consumed event? Or ...
6 years, 4 months ago (2014-07-28 12:30:31 UTC) #2
vsevik
https://codereview.chromium.org/426553003/diff/1/Source/devtools/front_end/Tests.js File Source/devtools/front_end/Tests.js (right): https://codereview.chromium.org/426553003/diff/1/Source/devtools/front_end/Tests.js#newcode888 Source/devtools/front_end/Tests.js:888: WebInspector.notifications.addEventListener(WebInspector.NotificationService.Events.InspectorLoadedForTests, runTests); Can we override WebInspector.app.presentUI instead? https://codereview.chromium.org/426553003/diff/1/Source/devtools/front_end/common/NotificationService.js File ...
6 years, 4 months ago (2014-07-29 08:42:15 UTC) #3
pfeldman
How about we get rid of WebInspector.panels calls instead?
6 years, 4 months ago (2014-07-29 08:45:14 UTC) #4
dgozman
> How about we get rid of WebInspector.panels calls instead? That's orthogonal to this change. ...
6 years, 4 months ago (2014-07-29 08:51:47 UTC) #5
vsevik
I thought panels are created in _createAppUI method when we create and initialize InspectorView. Why ...
6 years, 4 months ago (2014-07-29 09:00:36 UTC) #6
pfeldman
My worry is that following this route, we can create a comfortable environment where the ...
6 years, 4 months ago (2014-07-29 09:01:02 UTC) #7
dgozman
Agreed with vsevik@ to just rename notification to InspectorUILoadedForTests.
6 years, 4 months ago (2014-07-29 12:44:27 UTC) #8
dgozman
On 2014/07/29 09:01:02, pfeldman wrote: > My worry is that following this route, we can ...
6 years, 4 months ago (2014-07-29 12:46:08 UTC) #9
dgozman
PTAL
6 years, 4 months ago (2014-07-29 12:57:22 UTC) #10
pfeldman
lgtm
6 years, 4 months ago (2014-07-29 13:18:47 UTC) #11
dgozman
The CQ bit was checked by dgozman@chromium.org
6 years, 4 months ago (2014-07-29 13:23:12 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/426553003/10001
6 years, 4 months ago (2014-07-29 13:23:31 UTC) #13
commit-bot: I haz the power
6 years, 4 months ago (2014-07-29 14:29:08 UTC) #14
Message was sent while issue was closed.
Change committed as 179146

Powered by Google App Engine
This is Rietveld 408576698