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 3936a676f0c27e03cd7761adededd474d4a178d1..516c48945cdd403915d76153b2d86e3b33979798 100644 |
--- a/LayoutTests/inspector/timeline/timeline-gc-event.html |
+++ b/LayoutTests/inspector/timeline/timeline-gc-event.html |
@@ -16,16 +16,13 @@ function test() |
{ |
InspectorTest.invokeAsyncWithTimeline("produceGarbageForGCEvents", validate); |
- function validate(records) |
+ function validate() |
{ |
- 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"); |
- } |
- |
+ var gcRecord = InspectorTest.findFirstTimelineRecord(WebInspector.TimelineModel.RecordType.GCEvent); |
+ if (gcRecord) |
+ InspectorTest.addResult("SUCCESS: Found expected GC event record"); |
+ else |
+ InspectorTest.addResult("FAIL: GC event record wasn't found"); |
InspectorTest.completeTest(); |
} |
} |