Bug 31189 - Web Inspector: brush up inspector tests
Summary: Web Inspector: brush up inspector tests
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Pavel Feldman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-05 14:54 PST by Pavel Feldman
Modified: 2009-11-05 15:30 PST (History)
5 users (show)

See Also:


Attachments
[PATCH] (41.42 KB, patch)
2009-11-05 14:58 PST, Pavel Feldman
timothy: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Feldman 2009-11-05 14:54:56 PST
- Introduce utility scripts for code reuse
- Migrate from div section for frontend scripts to function prefix
- Rename evaluate-in-frontend.js to inspector-test.js
- Rename highlighters tests
- Other cleanups
Comment 1 Pavel Feldman 2009-11-05 14:58:51 PST
Created attachment 42600 [details]
[PATCH]
Comment 2 Timothy Hatcher 2009-11-05 15:08:45 PST
Comment on attachment 42600 [details]
[PATCH]


> +        for (var i = 0; i < result.length; ++i) {
> +            output(result[i].text + " " + result[i].clazz);
> +        }

No braces.


> -        var output = document.getElementById("output");
> +        var output = document.getElementById("outputPre");

I don't think Pre helps. What was wrong with output?


> +window.didEvaluateForTestInFrontend = function(callId, jsonResult)

This should just be function didEvaluateForTestInFrontend(callId, jsonResult)


> +//Fronten functions.

Typo. Needs space after //.


> +// Fronten functions.

Typo.
Comment 3 Pavel Feldman 2009-11-05 15:15:55 PST
(In reply to comment #2)
> (From update of attachment 42600 [details])
> 
> > +        for (var i = 0; i < result.length; ++i) {
> > +            output(result[i].text + " " + result[i].clazz);
> > +        }
> 
> No braces.
> 
> 
> > -        var output = document.getElementById("output");
> > +        var output = document.getElementById("outputPre");
> 
> I don't think Pre helps. What was wrong with output?
> 

Otherwise it gives single line output...

> 
> > +window.didEvaluateForTestInFrontend = function(callId, jsonResult)
> 
> This should just be function didEvaluateForTestInFrontend(callId, jsonResult)
> 

Done.

> 
> > +//Fronten functions.
> 
> Typo. Needs space after //.
>

Done. 
> 
> > +// Fronten functions.
> 
> Typo.


Done. Copy paste / regex issue.
Comment 4 Pavel Feldman 2009-11-05 15:30:03 PST
Committing to http://svn.webkit.org/repository/webkit/trunk ...
	R	LayoutTests/inspector/evaluate-in-frontend.js => LayoutTests/inspector/inspector-test.js
	R	LayoutTests/inspector/css-syntax-highlight-expected.txt => LayoutTests/inspector/syntax-highlight-css-expected.txt
	R	LayoutTests/inspector/javascript-syntax-highlight-expected.txt => LayoutTests/inspector/syntax-highlight-javascript-expected.txt
	D	LayoutTests/inspector/css-syntax-highlight.html
	D	LayoutTests/inspector/javascript-syntax-highlight.html
	M	LayoutTests/ChangeLog
	M	LayoutTests/inspector/console-dir-expected.txt
	M	LayoutTests/inspector/console-dir.html
	M	LayoutTests/inspector/console-dirxml-expected.txt
	M	LayoutTests/inspector/console-dirxml.html
	M	LayoutTests/inspector/console-format-collections-expected.txt
	M	LayoutTests/inspector/console-format-collections.html
	M	LayoutTests/inspector/console-format-expected.txt
	M	LayoutTests/inspector/console-format.html
	M	LayoutTests/inspector/console-tests-expected.txt
	M	LayoutTests/inspector/console-tests.html
	A	LayoutTests/inspector/console-tests.js
	M	LayoutTests/inspector/elements-panel-structure-expected.txt
	M	LayoutTests/inspector/elements-panel-structure.html
	A	LayoutTests/inspector/elements-tests.js
	M	LayoutTests/inspector/evaluate-in-frontend.html
	M	LayoutTests/inspector/styles-iframe.html
	A	LayoutTests/inspector/syntax-highlight-css.html
	A	LayoutTests/inspector/syntax-highlight-javascript.html
	A	LayoutTests/inspector/syntax-highlight.js
	M	LayoutTests/inspector/timeline-trivial.html
	M	LayoutTests/platform/qt/Skipped
Committed r50582