WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
52634
Web Inspector: Add layout test for the CPU profiler
https://bugs.webkit.org/show_bug.cgi?id=52634
Summary
Web Inspector: Add layout test for the CPU profiler
Mikhail Naganov
Reported
2011-01-18 09:51:36 PST
This test replaces DevToolsSanityTest.TestProfilerTab from Chromium's interactive_ui_tests.
Attachments
patch
(3.09 KB, patch)
2011-01-18 09:54 PST
,
Mikhail Naganov
yurys
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mikhail Naganov
Comment 1
2011-01-18 09:54:12 PST
Created
attachment 79288
[details]
patch
Yury Semikhatsky
Comment 2
2011-01-19 01:09:47 PST
Comment on
attachment 79288
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=79288&action=review
> LayoutTests/inspector/cpu-profiler-profiling.html:29 > + var tree = this.profileDataGridTree;
You could dump textContent of the tree instead of traversing it.
> LayoutTests/inspector/cpu-profiler-profiling.html:62 > +Tests that CPU profiling works.
Layout tests usually include link to the bug.
Mikhail Naganov
Comment 3
2011-01-19 03:12:13 PST
Comment on
attachment 79288
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=79288&action=review
>> LayoutTests/inspector/cpu-profiler-profiling.html:29 >> + var tree = this.profileDataGridTree; > > You could dump textContent of the tree instead of traversing it.
This will also look complex because profileDataGridTree doesn't have a link to HTML element, so I will need to descend to children anyway. Also, directly matching textContent will not work, because it will contain timings -- substring search will be needed.
>> LayoutTests/inspector/cpu-profiler-profiling.html:62 >> +Tests that CPU profiling works. > > Layout tests usually include link to the bug.
OK, will add.
Mikhail Naganov
Comment 4
2011-01-19 05:07:35 PST
Committed as
http://trac.webkit.org/changeset/76114
2011-01-18 Mikhail Naganov <
mnaganov@chromium.org
> Reviewed by Yury Semikhatsky. Web Inspector: Add layout test for the CPU profiler. This test replaces DevToolsSanityTest.TestProfilerTab from Chromium's interactive_ui_tests.
https://bugs.webkit.org/show_bug.cgi?id=52634
* inspector/cpu-profiler-profiling-expected.txt: Added. * inspector/cpu-profiler-profiling.html: Added.
Mikhail Naganov
Comment 5
2011-01-21 08:05:24 PST
Relanded as
http://trac.webkit.org/changeset/76346
This time the test passes in Chromium.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug