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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-timer-fired-from-eval-call-site.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-timer-fired-from-eval-call-site.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-timer-fired-from-eval-call-site.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-timer-fired-from-eval-call-site.html
deleted file mode 100644
index 22569e8305c70b5aa39c5889312f57f7364343a9..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-timer-fired-from-eval-call-site.html
+++ /dev/null
@@ -1,58 +0,0 @@
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../http/tests/inspector/timeline-test.js"></script>
-<script>
-
-function performActions(callback)
-{
- window.callWhenDone = callback;
- var content = "" +
- "var fn2 = function() {" +
- " console.markTimeline(\"Script evaluated\");" +
- " window.callWhenDone();" +
- "};\\n" +
- "var fn1 = function() {" +
- " window.setTimeout(fn2, 1);" +
- "};\\n" +
- "window.setTimeout(fn1, 1);\\n" +
- "//# sourceURL=fromEval.js";
- content = "eval('" + content + "');";
- var scriptElement = document.createElement('script');
- var contentNode = document.createTextNode(content);
- scriptElement.appendChild(contentNode);
- document.body.appendChild(scriptElement);
- document.body.removeChild(scriptElement);
-}
-
-function test()
-{
- InspectorTest.invokeAsyncWithTimeline("performActions", finish);
-
- function finish()
- {
- function formatter(record)
- {
- if (record.type() === "TimerFire") {
- var fnCallSite = record.children()[0].traceEvent().args["data"];
- InspectorTest.addResult(record.type() + " " + fnCallSite.scriptName + ":" + fnCallSite.scriptLine);
- }
- }
- InspectorTest.printTimelineRecords(null, formatter);
- InspectorTest.completeTest();
- }
-}
-
-if (!window.testRunner)
- setTimeout(performActions, 3000);
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests the Timeline API instrumentation of a TimerFired events inside evaluated scripts.
-</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698