3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script>
7 function produceGarbageForGCEvents(callback)
9 if (window.testRunner) {
11 testRunner.displayAsyncThen(callback);
17 InspectorTest.invokeAsyncWithTimeline("produceGarbageForGCEvents", validate);
21 var gcRecord = InspectorTest.findFirstTimelineRecord(WebInspector.TimelineModel.RecordType.GCEvent);
23 InspectorTest.addResult("SUCCESS: Found expected GC event record");
25 InspectorTest.addResult("FAIL: GC event record wasn't found");
26 InspectorTest.completeTest();
33 <body onload="runTest()">
35 Tests the Timeline API instrumentation of a gc event