| 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>
|
|
|