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

Unified Diff: LayoutTests/inspector/timeline/timeline-gc-event.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-gc-event.html
diff --git a/LayoutTests/inspector/timeline/timeline-gc-event.html b/LayoutTests/inspector/timeline/timeline-gc-event.html
index a7d19354f6987bf40acc4dd52005d0aac06d99e1..3936a676f0c27e03cd7761adededd474d4a178d1 100644
--- a/LayoutTests/inspector/timeline/timeline-gc-event.html
+++ b/LayoutTests/inspector/timeline/timeline-gc-event.html
@@ -18,13 +18,12 @@ function test()
function validate(records)
{
- for (var i = 0; i < records.length; ++i) {
- var record = records[i];
- if (record.type === WebInspector.TimelineModel.RecordType.GCEvent) {
- InspectorTest.addResult("The expected GC event record");
- InspectorTest.addObject(record, InspectorTest.timelinePropertyFormatters);
- break;
- }
+ var gcRecords = InspectorTest.filterTimelineRecords(WebInspector.TimelineModel.RecordType.GCEvent, true);
+ if (gcRecords.length) {
+ InspectorTest.addResult("The expected GC event record");
+ InspectorTest.addObject(gcRecords[0], InspectorTest.timelinePropertyFormatters);
+ } else {
+ InspectorTest.addResult("FAILED: GC event record wasn't found");
}
InspectorTest.completeTest();

Powered by Google App Engine
This is Rietveld 408576698