WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
147231
Web Inspector: rewrite inspector-protocol/console tests to use new testing patterns
https://bugs.webkit.org/show_bug.cgi?id=147231
Summary
Web Inspector: rewrite inspector-protocol/console tests to use new testing pa...
Brian Burg
Reported
2015-07-23 12:25:26 PDT
These are currently poorly structured. This is also a simple test case for improving the way that tests listen for events (both with and without promises).
Attachments
Patch
(27.25 KB, patch)
2015-07-23 12:34 PDT
,
Brian Burg
no flags
Details
Formatted Diff
Diff
Patch for landing
(36.33 KB, patch)
2015-07-23 15:00 PDT
,
Brian Burg
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-07-23 12:25:47 PDT
<
rdar://problem/21966884
>
Brian Burg
Comment 2
2015-07-23 12:34:44 PDT
Created
attachment 257362
[details]
Patch
Joseph Pecoraro
Comment 3
2015-07-23 14:15:26 PDT
Comment on
attachment 257362
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=257362&action=review
r=me
> LayoutTests/ChangeLog:29 > + * inspector-protocol/console/console-message-expected.txt: > + * inspector-protocol/console/console-message.html:
I'd rather we just favor the LayoutTest/inspector/console tests, and remove these. But maybe I'll too idealistic.
> LayoutTests/http/tests/inspector-protocol/resources/InspectorTest.js:42 > + if (typeof methodOrObject === "object") { > + var {method, params, handler} = methodOrObject; > + }
Style: braces
> LayoutTests/http/tests/inspector-protocol/resources/InspectorTest.js:91 > + else if (typeof listeners == "function")
Style: ===
> LayoutTests/inspector-protocol/console/console-message-expected.txt:8 > +Running test case: ConsoleLogString
Would be nice to output newlines before running test cases to break the output up a bit and make it more readable.
Brian Burg
Comment 4
2015-07-23 14:31:07 PDT
Comment on
attachment 257362
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=257362&action=review
>> LayoutTests/ChangeLog:29 >> + * inspector-protocol/console/console-message.html: > > I'd rather we just favor the LayoutTest/inspector/console tests, and remove these. But maybe I'll too idealistic.
I'm coming around to your point of view. However, there are some hardcoded path comparisons in DRT/WKTR that decide whether to use the stub or full frontend based on where the test lives. So this would be a separate patch.
>> LayoutTests/inspector-protocol/console/console-message-expected.txt:8 >> +Running test case: ConsoleLogString > > Would be nice to output newlines before running test cases to break the output up a bit and make it more readable.
Agree, might as well make the change now before it spreads.
Brian Burg
Comment 5
2015-07-23 15:00:13 PDT
Created
attachment 257389
[details]
Patch for landing
Joseph Pecoraro
Comment 6
2015-07-23 15:32:55 PDT
Comment on
attachment 257389
[details]
Patch for landing r=me
WebKit Commit Bot
Comment 7
2015-07-23 16:21:53 PDT
Comment on
attachment 257389
[details]
Patch for landing Clearing flags on attachment: 257389 Committed
r187269
: <
http://trac.webkit.org/changeset/187269
>
WebKit Commit Bot
Comment 8
2015-07-23 16:21:57 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug