Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: LayoutTests/inspector/timeline/timeline-paint.html

Issue 399043002: DevTools: switch Timeline frontend into buffered mode and remove the corresponding experiment. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: timeline-websocket-event rebaselined Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/timeline/timeline-paint.html
diff --git a/LayoutTests/inspector/timeline/timeline-paint.html b/LayoutTests/inspector/timeline/timeline-paint.html
index b1e965858b24a507417e439c0b55fb4e57179895..32a20923004a7ed33d6a93b0cc1de49ee7d9c283 100644
--- a/LayoutTests/inspector/timeline/timeline-paint.html
+++ b/LayoutTests/inspector/timeline/timeline-paint.html
@@ -24,31 +24,25 @@ function updateSubframeAndDisplay(callback)
function test()
{
- step1();
+ InspectorTest.invokeAsyncWithTimeline("display", step1);
- function step1()
+ function step1(records)
{
- InspectorTest.invokeAsyncWithTimeline("display", step2);
- }
-
- function step2(records)
- {
- for (var i = 0; i < records.length; ++i) {
- var record = records[i];
- if (record.type === WebInspector.TimelineModel.RecordType.Paint) {
- InspectorTest.printTimelineRecordProperties(record);
- break;
- }
- }
+ var filteredRecords = InspectorTest.filterTimelineRecords(WebInspector.TimelineModel.RecordType.Paint, true);
+ if (filteredRecords.length)
+ InspectorTest.printTimelineRecordProperties(filteredRecords[0]);
+ else
+ InspectorTest.addResult("FAIL: no paint record found");
InspectorTest.invokeAsyncWithTimeline("updateSubframeAndDisplay", step3);
}
function step3(records)
{
+ var filteredRecords = InspectorTest.filterTimelineRecords(WebInspector.TimelineModel.RecordType.Paint, true);
var paintRecord;
- for (var i = 0; i < records.length; ++i) {
- var record = records[i];
- if (record.type === WebInspector.TimelineModel.RecordType.Paint && record.children && record.children.length) {
+ for (var i = 0; i < filteredRecords.length; ++i) {
+ var record = filteredRecords[i];
+ if (record.children && record.children.length) {
paintRecord = record;
break;
}

Powered by Google App Engine
This is Rietveld 408576698