Bug 26549

Summary: Web Inspector needs a testing infrastructure
Product: WebKit Reporter: Kevin McCullough <kmccullough>
Component: Web Inspector (Deprecated)Assignee: Pavel Feldman <pfeldman>
Status: RESOLVED FIXED    
Severity: Normal CC: timothy
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 30008, 30009, 30010, 30014    
Bug Blocks:    
Attachments:
Description Flags
testing harness
timothy: review-
testing harness #2
none
testing harness #2 with waitToDumpWatchdogInterval rolled back to original value none

Description Kevin McCullough 2009-06-19 11:08:00 PDT
* SUMMARY
We have many involved and highly promoted features in the Web Inspector but with almost no way to test most of them.  (e.g. the JS debugger and profiler)

We should build a testing infrastructure similar to DRT that allows the Inspector to be tested with simple JS and HTML files so that developers can create tests like the LayoutTests, and make them easy to run by developers and the build bots.
Comment 1 Mark Rowe (bdash) 2009-06-19 13:58:53 PDT
<rdar://problem/6988926>
Comment 2 Pavel Feldman 2009-09-30 07:45:26 PDT
Created attachment 40370 [details]
testing harness

This patch contains two test cases and the harness implementation for the Mac. I'd like to get your feedback on it before I extract WebInspectorPrivate.h and jump into implementing it for other platforms.
Comment 3 Timothy Hatcher 2009-10-01 07:47:50 PDT
Comment on attachment 40370 [details]
testing harness

Some tabs in evaluate-in-frontend.js.

> +	var output = document.getElementById("output");
> +    output.innerHTML += text + "<BR>";

Stray space.

> +    void testEvaluateInFrontend(long callId, const String& script);

These functions with "testEvaluate" read funny. I think "evaluateTest" would read better. Since I read it as "evaluate this test", not "test the evaluate".

> +    Vector<pair<long, String> > m_pendingTestEvaluateInFrontendCommands;

Maybe m_pendingEvaluateTestCommands.
Comment 4 Pavel Feldman 2009-10-01 12:48:37 PDT
Created attachment 40470 [details]
testing harness #2
Comment 5 Pavel Feldman 2009-10-01 12:52:04 PDT
Created attachment 40472 [details]
testing harness #2 with waitToDumpWatchdogInterval rolled back to original value

Note that this patch requires additional testing on non-Mac platforms prior to landing.
Comment 7 Timothy Hatcher 2009-10-02 11:12:05 PDT
Comment on attachment 40472 [details]
testing harness #2 with waitToDumpWatchdogInterval rolled back to original value

Clearing the review flag since this patch has been split.