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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-usertiming.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-usertiming.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-usertiming.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-usertiming.html
deleted file mode 100644
index 24672e0b34bb8b865f816d83f87e0582a753b67d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-usertiming.html
+++ /dev/null
@@ -1,114 +0,0 @@
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../http/tests/inspector/timeline-test.js"></script>
-<script src="../tracing-test.js"></script>
-<script>
-
-function simplePerformanceMeasure()
-{
- performance.mark("a-start");
- performance.mark("a-end");
- performance.measure("a", "a-start", "a-end");
-}
-
-function nestedPerformanceMeasure()
-{
- performance.mark("a-start");
- {
- performance.mark("b-start");
- performance.mark("b-end");
- {
- performance.mark("c-start");
- {
- performance.mark("d-start");
- performance.mark("d-end");
- }
- performance.mark("c-end");
- }
- }
- performance.mark("a-end");
- performance.measure("a", "a-start", "a-end");
- performance.measure("b", "b-start", "b-end");
- performance.measure("c", "c-start", "c-end");
- performance.measure("d", "d-start", "d-end");
-}
-
-
-function unbalancedPerformanceMeasure()
-{
- performance.mark("a-start");
- performance.mark("b-start");
- performance.mark("a-end");
- performance.mark("b-end");
- performance.measure("a", "a-start", "a-end");
- performance.measure("b", "b-start", "b-end");
-}
-
-
-function parentMeasureIsOnTop()
-{
- performance.mark("startTime1");
- performance.mark("endTime1");
-
- performance.mark("startTime2");
- performance.mark("endTime2");
-
- performance.measure("durationTime1", "startTime1", "endTime1");
- performance.measure("durationTime2", "startTime2", "endTime2");
- performance.measure("durationTimeTotal", "startTime1", "endTime2");
-}
-
-
-function test()
-{
- InspectorTest.runTestSuite([
- function testSimplePerformanceMeasure(next)
- {
- performActions("simplePerformanceMeasure()", next);
- },
-
- function testNestedPerformanceMeasure(next)
- {
- performActions("nestedPerformanceMeasure()", next);
- },
-
- function testUnbalancedPerformanceMeasure(next)
- {
- performActions("unbalancedPerformanceMeasure()", next);
- },
-
- function testParentMeasureIsOnTop(next)
- {
- performActions("parentMeasureIsOnTop()", next);
- }
- ]);
-
- function dumpUserTimings()
- {
- var model = InspectorTest.timelineModel();
- var asyncEvents = model.mainThreadAsyncEvents()
-
- asyncEvents.forEach(function(eventGroup) {
- eventGroup.forEach(function(event) {
- if (event.hasCategory(WebInspector.TimelineModel.Category.UserTiming))
- InspectorTest.addResult(event.name);
- });
- })
- }
-
- function performActions(actions, next)
- {
- InspectorTest.evaluateWithTimeline(actions, _ => { dumpUserTimings(); next(); });
-
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>Test performance.mark/measure records on Timeline</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698