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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-auto-zoom.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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 <script>
6 function test()
7 {
8 var sessionId = "4.20";
9 var mainThread = 1;
10 var pid = 100;
11
12 var traceEvents = [
13 {
14 "args": { "sessionId": sessionId },
15 "cat": "disabled-by-default-devtools.timeline",
16 "name": "TracingStartedInPage",
17 "ph": "I",
18 "pid": pid,
19 "tid": mainThread,
20 "ts": 100,
21 },
22 {"name": "Program", "ts": 1000000, "dur":10000, "ph": "X", args: {}, "t id": mainThread, "pid": 100, "cat":"disabled-by-default-devtools.timeline" },
23 {"name": "FunctionCall", "ts": 1000000, "dur": 10000, "ph": "X", args: { }, "tid": mainThread, "pid": 100, "cat":"disabled-by-default-devtools.timeline" , "args":{"data":{}}},
24 {"name": "Program", "ts": 2000000, "dur": 500000, "ph": "X", args: {}, "tid": mainThread, "pid": 100, "cat":"disabled-by-default-devtools.timeline" },
25 {"name": "FunctionCall", "ts": 2000000, "dur": 500000, "ph": "X", args: {}, "tid": mainThread, "pid": 100, "cat":"disabled-by-default-devtools.timeline ", "args":{"data":{}}},
26 {"name": "Program", "ts": 3000000, "dur": 400000, "ph": "X", args: {}, "tid": mainThread, "pid": 100, "cat":"disabled-by-default-devtools.timeline"},
27 {"name": "FunctionCall", "ts": 3000000, "dur": 400000, "ph": "X", args: {}, "tid": mainThread, "pid": 100, "cat":"disabled-by-default-devtools.timeline ", "args":{"data":{}}},
28 {"name": "Program", "ts": 4000000, "dur": 200000, "ph": "X", args: {}, "tid": mainThread, "pid": 100, "cat":"disabled-by-default-devtools.timeline"},
29 {"name": "FunctionCall", "ts": 4000000, "dur": 200000, "ph": "X", args: {}, "tid": mainThread, "pid": 100, "cat":"disabled-by-default-devtools.timeline ", "args":{"data":{}}},
30 {"name": "Program", "ts": 5000000, "dur": 1000, "ph": "X", args: {}, "t id": mainThread, "pid": 100, "cat":"disabled-by-default-devtools.timeline"},
31 {"name": "FunctionCall", "ts": 5000000, "dur": 1000, "ph": "X", args: {} , "tid": mainThread, "pid": 100, "cat":"disabled-by-default-devtools.timeline", "args":{"data":{}}},
32 {"name": "Program", "ts": 6000000, "dur": 1000, "ph": "X", args: {}, "t id": mainThread, "pid": 100, "cat":"disabled-by-default-devtools.timeline"},
33 {"name": "FunctionCall", "ts": 6000000, "dur": 1000, "ph": "X", args: { }, "tid": mainThread, "pid": 100, "cat":"disabled-by-default-devtools.timeline" , "args":{"data":{}}}
34 ];
35
36 InspectorTest.setTraceEvents(InspectorTest.timelineModel(), InspectorTest.tr acingModel(), traceEvents);
37 var overview = WebInspector.panels.timeline._overviewPane;
38 var startTime = overview._windowStartTime;
39 var endTime = overview._windowEndTime;
40 InspectorTest.assertGreaterOrEqual(startTime, 1010);
41 InspectorTest.assertGreaterOrEqual(2000, startTime);
42 InspectorTest.assertGreaterOrEqual(endTime, 4200);
43 InspectorTest.assertGreaterOrEqual(5000, startTime);
44 InspectorTest.completeTest();
45 }
46
47 </script>
48 </head>
49
50 <body onload="runTest()">
51 <p>
52 Test auto zoom feature of the timeline.
53 </p>
54
55 </body>
56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698