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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-js-line-level-profile.html

Issue 2145873002: [DevTools] Split inspector/tracing into subdirectories to speed things up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: third_party/WebKit/LayoutTests/inspector/tracing/timeline-js-line-level-profile.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-js-line-level-profile.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-js-line-level-profile.html
deleted file mode 100644
index 9f3ad55dc3232ef5ff91ef262108f0cd7a8230eb..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-js-line-level-profile.html
+++ /dev/null
@@ -1,81 +0,0 @@
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../http/tests/inspector/debugger-test.js"></script>
-<script src="resources/timeline-data.js"></script>
-<script>
-function test()
-{
- var cpuProfile = {
- startTime: 10,
- endTime: 20,
- head: {
- functionName: "(root)",
- hitCount: 0,
- children: [
- {
- functionName: "foo1",
- hitCount: 100,
- positionTicks: [{line:1, ticks:10}, {line:2, ticks:20}, {line:3, ticks:30}, {line:4, ticks:40}],
- children: []
- },
- {
- functionName: "foo2",
- hitCount: 200,
- positionTicks: [{line:100, ticks:1}, {line:102, ticks:190}],
- children: []
- },
- {
- functionName: "null",
- hitCount: 0,
- positionTicks: [],
- children: [
- {
- functionName: "bar",
- hitCount: 300,
- positionTicks: [{line:55, ticks:22}],
- children: []
- },
- {
- functionName: "baz",
- hitCount: 400,
- // no positionTicks for the node.
- children: []
- }
- ]
- }
- ]
- }
- };
-
- InspectorTest.addSniffer(WebInspector.CodeMirrorTextEditor.prototype, "setGutterDecoration", decorationAdded, true);
- InspectorTest.showScriptSource("timeline-data.js", frameRevealed);
-
- function decorationAdded(line, type, element)
- {
- InspectorTest.addResult(`${line} ${type} ${element.textContent} ${element.style.backgroundColor}`);
- }
-
- function setUrls(url, node)
- {
- node.url = url;
- node.children.forEach(setUrls.bind(null, url));
- }
-
- function frameRevealed(frame)
- {
- var url = frame.uiSourceCode().url();
- InspectorTest.addResult(InspectorTest.formatters.formatAsURL(url));
- setUrls(url, cpuProfile.head);
- var lineProfile = new WebInspector.LineLevelProfile.instance();
- lineProfile.appendCPUProfile(new WebInspector.CPUProfileDataModel(cpuProfile));
- setTimeout(() => InspectorTest.completeTest(), 0);
- }
-}
-
-</script>
-</head>
-<body onload="runTest()">
-Tests that a line-level CPU profile is shown in the text editor.
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698