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

Side by Side Diff: LayoutTests/inspector/timeline/timeline-gc-event.html

Issue 709423002: DevTools: remove old Timeline front-end implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated LayoutTests/inspector/layers/layer-canvas-log.html Created 6 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 <script>
6
7 function produceGarbageForGCEvents(callback)
8 {
9 if (window.testRunner) {
10 window.gc();
11 testRunner.displayAsyncThen(callback);
12 }
13 }
14
15 function test()
16 {
17 InspectorTest.invokeAsyncWithTimeline("produceGarbageForGCEvents", validate) ;
18
19 function validate()
20 {
21 var gcRecord = InspectorTest.findFirstTimelineRecord(WebInspector.Timeli neModel.RecordType.GCEvent);
22 if (gcRecord)
23 InspectorTest.addResult("SUCCESS: Found expected GC event record");
24 else
25 InspectorTest.addResult("FAIL: GC event record wasn't found");
26 InspectorTest.completeTest();
27 }
28 }
29
30 </script>
31 </head>
32
33 <body onload="runTest()">
34 <p>
35 Tests the Timeline API instrumentation of a gc event
36 </p>
37 </body>
38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698