Bug 129217

Summary: Web Inspector: convert model tests and inspector-test.js to use Test.html
Product: WebKit Reporter: BJ Burg <bburg>
Component: Web InspectorAssignee: BJ Burg <bburg>
Status: RESOLVED FIXED    
Severity: Normal CC: bunhere, cdumez, chrisjshull, commit-queue, graouts, gyuyoung.kim, joepeck, sergio, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 129190, 129642    
Bug Blocks: 129744, 130145    
Attachments:
Description Flags
the patch timothy: review+

Description BJ Burg 2014-02-22 15:21:20 PST
Once https://bugs.webkit.org/show_bug.cgi?id=129190 is fixed, we can remove the special file-loading code from the InspectorTest.js.

I would also like to move model/controller tests (those that use a full-blown inspector instead of just listeners for the raw protocol) to LayoutTests/inspector, and use a different inspector-test.js harness there.
Comment 1 Radar WebKit Bug Importer 2014-02-22 15:21:38 PST
<rdar://problem/16142670>
Comment 2 BJ Burg 2014-03-03 18:25:35 PST
I am mostly done with this, but it may be blocked by flakiness of inspector/test-harness-trivially-works.html
Comment 3 BJ Burg 2014-03-06 14:27:01 PST
Created attachment 226039 [details]
the patch
Comment 4 BJ Burg 2014-03-10 11:12:33 PDT
Ready for review
Comment 5 Timothy Hatcher 2014-03-12 12:10:11 PDT
Comment on attachment 226039 [details]
the patch

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

> Source/WebInspectorUI/UserInterface/Test.html:87
> +    <script src="Models/Profile.js"></script>
> +    <script src="Models/ProfileNode.js"></script>
> +    <script src="Models/ProfileNodeCall.js"></script>
> +    <script src="Models/TimelineRecord.js"></script>
> +    <script src="Models/LayoutTimelineRecord.js"></script>
> +    <script src="Models/ResourceTimelineRecord.js"></script>
> +    <script src="Models/ScriptTimelineRecord.js"></script>
> +    <script src="Models/Timeline.js"></script>
> +    <script src="Models/NetworkTimeline.js"></script>
> +    <script src="Models/SourceCodeTimeline.js"></script>
> +    <script src="Models/TimelineMarker.js"></script>
> +    <script src="Models/TimelineRecording.js"></script>

Should be sorted (and match Main.html).
Comment 6 BJ Burg 2014-03-12 13:55:39 PDT
Comment on attachment 226039 [details]
the patch

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

>> Source/WebInspectorUI/UserInterface/Test.html:87
>> +    <script src="Models/TimelineRecording.js"></script>
> 
> Should be sorted (and match Main.html).

The subclassing tripped me up, will fix.
Comment 7 BJ Burg 2014-03-12 13:58:16 PDT
I will land this but the inspector directory is marked as skipped until https://webkit.org/b/129642 is fixed, as that assert could be hit on any test converted in this patch.
Comment 8 BJ Burg 2014-03-12 15:19:50 PDT
Committed <http://trac.webkit.org/changeset/165501>