Summary: | Web Inspector: UI performance test for Scripts panel first open experience. | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ilya Tikhonovsky <loislo> | ||||||||
Component: | Web Inspector (Deprecated) | Assignee: | Ilya Tikhonovsky <loislo> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Attachments: |
|
Description
Ilya Tikhonovsky
2011-09-21 09:36:01 PDT
Created attachment 108170 [details]
[patch] initial version
Comment on attachment 108170 [details] [patch] initial version View in context: https://bugs.webkit.org/attachment.cgi?id=108170&action=review > LayoutTests/http/tests/inspector/inspector-test.js:11 > +//console.log = consoleOutputHook.bind(InspectorTest, "log"); Why did this change? > LayoutTests/inspector/performance/resources/first-open-scripts.html:38 > +var initialize_InspectorTest = function() { Could you extract a javascript file with the test data? Created attachment 108328 [details]
[patch] initial version
Comment on attachment 108328 [details] [patch] initial version View in context: https://bugs.webkit.org/attachment.cgi?id=108328&action=review > LayoutTests/inspector/performance/resources/first-open-scripts.html:26 > + setTimeout = function(func, time) { func(); } What's the reason for overriding setTimeout here? Please add a comment to the code. Comment on attachment 108328 [details] [patch] initial version View in context: https://bugs.webkit.org/attachment.cgi?id=108328&action=review > LayoutTests/inspector/performance/resources/first-open-scripts.html:30 > + setTimeout = originalSetTimeout; Instead of overriding setTimeout which changes regular execution sequence we should find an event that is fired definitely after the panel switch has completed. If there is no such event at the moment we could expose corresponding method on the panel for the test. Any of these seems better than overriding setTimeout Created attachment 108451 [details]
Patch
Comment on attachment 108451 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=108451&action=review > LayoutTests/inspector/performance/resources/first-open-scripts.html:28 > + WebInspector.panels.scripts._visibleView._textViewer._mainPanel._paintScheduledLines(); Extract WebInspector.panels.scripts._visibleView._textViewer._mainPanel into a local variable? Committed r95792: <http://trac.webkit.org/changeset/95792> |