Bug 129217 - Web Inspector: convert model tests and inspector-test.js to use Test.html
Summary: Web Inspector: convert model tests and inspector-test.js to use Test.html
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: BJ Burg
URL:
Keywords: InRadar
Depends on: 129190 129642
Blocks: 129744 130145
  Show dependency treegraph
 
Reported: 2014-02-22 15:21 PST by BJ Burg
Modified: 2014-03-12 15:19 PDT (History)
10 users (show)

See Also:


Attachments
the patch (107.23 KB, patch)
2014-03-06 14:27 PST, BJ Burg
timothy: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>