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