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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-open-function-call.html

Issue 2335973002: DevTools: Auto close open sync trace events. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-open-function-call-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-open-function-call.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-open-function-call.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-open-function-call.html
new file mode 100644
index 0000000000000000000000000000000000000000..2a7cb1b63e686536edc9931a8f129b4ae809720a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-open-function-call.html
@@ -0,0 +1,78 @@
+<html>
+<head>
+<script src="../../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../../http/tests/inspector/timeline-test.js"></script>
+<script>
+
+function test()
+{
+ var sessionId = "6.23";
+ var rawTraceEvents = [
+ {
+ "args": {
+ "name": "Renderer"
+ },
+ "cat": "__metadata",
+ "name": "process_name",
+ "ph": "M",
+ "pid": 17851,
+ "tid": 23,
+ "ts": 0
+ },
+ {
+ "args": {
+ "name": "CrRendererMain"
+ },
+ "cat": "__metadata",
+ "name": "thread_name",
+ "ph": "M",
+ "pid": 17851,
+ "tid": 23,
+ "ts": 0
+ },
+ {
+ "args": {
+ "sessionId": sessionId
+ },
+ "cat": "disabled-by-default-devtools.timeline",
+ "name": "TracingStartedInPage",
+ "ph": "I",
+ "pid": 17851,
+ "tid": 23,
+ "ts": 100000,
+ "tts": 606543
+ },
+ {
+ "cat": "disabled-by-default-devtools.timeline",
+ "name": "FunctionCall",
+ "ph": "B",
+ "pid": 17851,
+ "tid": 23,
+ "ts": 101000,
+ "args": {}
+ },
+ {
+ "cat": "disabled-by-default-devtools.timeline",
+ "name": "JSSample",
+ "ph": "I",
+ "pid": 17851,
+ "tid": 23,
+ "ts": 142000,
+ "args": {}
+ }];
+
+ var model = InspectorTest.createTimelineModelWithEvents(rawTraceEvents);
+ var event = model.mainThreadEvents().find(e => e.name === WebInspector.TimelineModel.RecordType.FunctionCall);
+ InspectorTest.addResult(`${event.startTime} ${event.endTime}`);
+ InspectorTest.completeTest();
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<p>
+Checks the FunctionCall with no closing event processed properly.
+</p>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-open-function-call-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698