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

Unified Diff: LayoutTests/inspector/timeline/timeline-decode-resize.html

Issue 461323003: DevTools: Make Timeline tests use only model records (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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-decode-resize.html
diff --git a/LayoutTests/inspector/timeline/timeline-decode-resize.html b/LayoutTests/inspector/timeline/timeline-decode-resize.html
index a013620eec0264fd5395defc68cb554a3db7d098..d9c472ca70d370b1541e26d77a89bfbe8fddd187 100644
--- a/LayoutTests/inspector/timeline/timeline-decode-resize.html
+++ b/LayoutTests/inspector/timeline/timeline-decode-resize.html
@@ -57,11 +57,12 @@ function test()
function dumpRecords(records)
{
- for (var i = 0; i < records.length; ++i) {
- var record = records[i];
- if (record.type === WebInspector.TimelineModel.RecordType.DecodeImage || record.type === WebInspector.TimelineModel.RecordType.ResizeImage) {
+ InspectorTest.timelineModel().forAllRecords(processRecord.bind(this));
+ function processRecord(record)
+ {
+ if (record.type() === WebInspector.TimelineModel.RecordType.DecodeImage || record.type() === WebInspector.TimelineModel.RecordType.ResizeImage) {
// Some decode events may happen in the background, so we won't have a stack trace.
- delete record.stackTrace;
+ delete record._record.stackTrace;
InspectorTest.printTimelineRecordProperties(record);
}
}
« no previous file with comments | « LayoutTests/inspector/timeline/timeline-bound-function.html ('k') | LayoutTests/inspector/timeline/timeline-frames.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698