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

Unified Diff: LayoutTests/inspector/timeline/timeline-gc-event.html

Issue 235043002: TimelinePanel: make GC events synchronous. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments addressed Created 6 years, 8 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
new file mode 100644
index 0000000000000000000000000000000000000000..a7d19354f6987bf40acc4dd52005d0aac06d99e1
--- /dev/null
+++ b/LayoutTests/inspector/timeline/timeline-gc-event.html
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/timeline-test.js"></script>
+<script>
+
+function produceGarbageForGCEvents(callback)
+{
+ if (window.testRunner) {
+ window.gc();
+ testRunner.displayAsyncThen(callback);
+ }
+}
+
+function test()
+{
+ InspectorTest.invokeAsyncWithTimeline("produceGarbageForGCEvents", validate);
+
+ 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;
+ }
+ }
+
+ InspectorTest.completeTest();
+ }
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<p>
+Tests the Timeline API instrumentation of a gc event
+</p>
+</body>
+</html>
« no previous file with comments | « LayoutTests/http/tests/inspector/timeline-test.js ('k') | LayoutTests/inspector/timeline/timeline-gc-event-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698