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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-auto-zoom.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/timeline-test.js"></script> 4 <script src="../../../http/tests/inspector/timeline-test.js"></script>
5 <script> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 var sessionId = "4.20"; 8 var sessionId = "4.20";
9 var mainThread = 1; 9 var mainThread = 1;
10 var pid = 100; 10 var pid = 100;
(...skipping 16 matching lines...) Expand all
27 {"name": "FunctionCall", "ts": 3000000, "dur": 400000, "ph": "X", args: {}, "tid": mainThread, "pid": 100, "cat":"disabled-by-default-devtools.timeline ", "args":{"data":{}}}, 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"}, 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":{}}}, 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"}, 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":{}}}, 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"}, 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":{}}} 33 {"name": "FunctionCall", "ts": 6000000, "dur": 1000, "ph": "X", args: { }, "tid": mainThread, "pid": 100, "cat":"disabled-by-default-devtools.timeline" , "args":{"data":{}}}
34 ]; 34 ];
35 35
36 InspectorTest.setTraceEvents(InspectorTest.timelineModel(), InspectorTest.tr acingModel(), traceEvents); 36 InspectorTest.setTraceEvents(InspectorTest.timelineModel(), InspectorTest.tr acingModel(), traceEvents);
37 var overview = WebInspector.panels.timeline._overviewPane; 37 var overview = UI.panels.timeline._overviewPane;
38 var startTime = overview._windowStartTime; 38 var startTime = overview._windowStartTime;
39 var endTime = overview._windowEndTime; 39 var endTime = overview._windowEndTime;
40 InspectorTest.assertGreaterOrEqual(startTime, 1010); 40 InspectorTest.assertGreaterOrEqual(startTime, 1010);
41 InspectorTest.assertGreaterOrEqual(2000, startTime); 41 InspectorTest.assertGreaterOrEqual(2000, startTime);
42 InspectorTest.assertGreaterOrEqual(endTime, 4200); 42 InspectorTest.assertGreaterOrEqual(endTime, 4200);
43 InspectorTest.assertGreaterOrEqual(5000, startTime); 43 InspectorTest.assertGreaterOrEqual(5000, startTime);
44 InspectorTest.completeTest(); 44 InspectorTest.completeTest();
45 } 45 }
46 46
47 </script> 47 </script>
48 </head> 48 </head>
49 49
50 <body onload="runTest()"> 50 <body onload="runTest()">
51 <p> 51 <p>
52 Test auto zoom feature of the timeline. 52 Test auto zoom feature of the timeline.
53 </p> 53 </p>
54 54
55 </body> 55 </body>
56 </html> 56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698