Bug 147729

Summary: Web Inspector: move LayoutTests/inspector-protocol/ tests to LayoutTests/inspector/
Product: WebKit Reporter: BJ Burg <bburg>
Component: Web InspectorAssignee: BJ Burg <bburg>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
See Also: https://bugs.webkit.org/show_bug.cgi?id=147739
https://bugs.webkit.org/show_bug.cgi?id=147787
Attachments:
Description Flags
Proposed Fix timothy: review+

Description BJ Burg 2015-08-06 10:08:48 PDT
Joe and I came up with the following organization. All inspector tests belong under LayoutTests/inspector/, regardless of the test harness that is used. The harness is a per-test choice, determined by which file is included (protocol-test.js or inspector-test.js). Most tests are arranged according to the domain that they exercise.

inspector/
    dom/
    dom-debugger/
    debugger/
    runtime/
    ...
    unittests/
    protocol/


unittests/ will contain all tests not specific to any protocol domain or methods, such as the unit tests for AsyncTestSuite, EventListener, and other classes.

protocol/ will contain tests for the protocol layer, such as tests for InspectorBackend and error messages sent by the backend.
Comment 1 Timothy Hatcher 2015-08-06 13:29:35 PDT
I would go with unit-tests. unit tests just seems odd.
Comment 2 BJ Burg 2015-08-06 20:34:58 PDT
Created attachment 258441 [details]
Proposed Fix
Comment 3 Joseph Pecoraro 2015-08-07 11:22:59 PDT
Comment on attachment 258441 [details]
Proposed Fix

I think this can lead to confusion. Now LayoutTests/inspector has some tests that use 1 path (protocol-test) and other tests that use another path (inspector-test) both have "InspectorTest.foo" that behave differently.
Comment 4 BJ Burg 2015-08-07 11:33:30 PDT
Committed r188142: <http://trac.webkit.org/changeset/188142>
Comment 5 BJ Burg 2015-08-07 11:38:19 PDT
(In reply to comment #3)
> Comment on attachment 258441 [details]
> Proposed Fix
> 
> I think this can lead to confusion. Now LayoutTests/inspector has some tests
> that use 1 path (protocol-test) and other tests that use another path
> (inspector-test) both have "InspectorTest.foo" that behave differently.

I would be happy to rename InspectorTest from protocol-test.js to ProtocolTest. There is plenty of de-duplication that we should do, and now it's more obvious where we need to improve.