| Index: LayoutTests/inspector/tracing/timeline-js-samping-codeobject-names.html
|
| diff --git a/LayoutTests/inspector/tracing/timeline-js-samping-codeobject-names.html b/LayoutTests/inspector/tracing/timeline-js-samping-codeobject-names.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6034546cc1e90c2eae8f83a5cb48aafe0a955a96
|
| --- /dev/null
|
| +++ b/LayoutTests/inspector/tracing/timeline-js-samping-codeobject-names.html
|
| @@ -0,0 +1,37 @@
|
| +<html>
|
| +<head>
|
| +<script src="../../http/tests/inspector/inspector-test.js"></script>
|
| +<script src="../tracing-test.js"></script>
|
| +<script>
|
| +function test()
|
| +{
|
| + Runtime.experiments.enableForTest("timelineTracingJSProfile");
|
| + var rawNames = [
|
| + "",
|
| + "Script:",
|
| + "Script:http://example.com/alina?",
|
| + "Script:http://example.com/:1",
|
| + "Script:http://example.com/:1:2",
|
| + "Script:http://example.com/:1:2:3",
|
| + "Script:http://example.com/:1:2:3x:4",
|
| + "Builtin:~foo1 http://url.com/foo.js",
|
| + "Builtin:~foo2 http://url.com/foo.js:11",
|
| + "Builtin:*foo3 http://url.com/foo.js:11:22",
|
| + "Builtin:foo4 http://url.com/foo.js:11:22:33",
|
| + "Builtin:~ http://url.com/anonymous.js:123",
|
| + "Builtin:~function name with spaces http://url.com/anonymous.js:123"
|
| + ];
|
| +
|
| + for (var name of rawNames) {
|
| + var frame = WebInspector.TimelineJSProfileProcessor._buildCallFrame(name, "456");
|
| + InspectorTest.addResult(name + " => " + [frame.functionName, frame.url, frame.scriptId, frame.lineNumber, frame.columnNumber].join(","));
|
| + }
|
| +
|
| + InspectorTest.completeTest();
|
| +}
|
| +
|
| +</script>
|
| +</head>
|
| +<body onload="runTest()">
|
| +</body>
|
| +</html>
|
|
|