Bug 135726

Summary: Web Inspector: add debugging flag to InspectorTest for unbuffered logging to stderr
Product: WebKit Reporter: Brian Burg <burg>
Component: Web InspectorAssignee: Brian Burg <burg>
Status: RESOLVED FIXED    
Severity: Normal CC: graouts, joepeck, mattbaker, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch timothy: review+

Description Brian Burg 2014-08-07 14:59:28 PDT
.
Comment 1 Radar WebKit Bug Importer 2014-08-07 14:59:42 PDT
<rdar://problem/17951314>
Comment 2 Brian Burg 2014-08-07 16:15:11 PDT
Created attachment 236238 [details]
Patch
Comment 3 Brian Burg 2014-08-07 16:16:16 PDT
I decided to not guard this with !LOG_DISABLED, since debug builds often crash for dumb reasons and will additionally spew whatever WebCoreLogging you may have enabled. I also couldn't figure out how to conditionalize the method in InspectorFrontendHost.idl.
Comment 4 Timothy Hatcher 2014-08-07 16:34:01 PDT
Comment on attachment 236238 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=236238&action=review

> Source/WebInspectorUI/UserInterface/Base/Test.js:138
> +    if (InspectorTest.dumpMessagesToConsole && InspectorFrontendHost.unbufferedLog)

Do we need to test InspectorFrontendHost.unbufferedLog?
Comment 5 Brian Burg 2014-08-07 20:01:21 PDT
(In reply to comment #4)
> (From update of attachment 236238 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=236238&action=review
> 
> > Source/WebInspectorUI/UserInterface/Base/Test.js:138
> > +    if (InspectorTest.dumpMessagesToConsole && InspectorFrontendHost.unbufferedLog)
> 
> Do we need to test InspectorFrontendHost.unbufferedLog?

I guess we do control who the InspectorFrontendHost really is during testing, so this could be removed.
Comment 6 Brian Burg 2014-08-08 13:22:14 PDT
Committed r172355: <http://trac.webkit.org/changeset/172355>