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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing-browser-thread.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 = 1; 8 var sessionId = 1;
9 9
10 var testCases = { 10 var testCases = {
(...skipping 18 matching lines...) Expand all
29 { "cat": "__metadata", "name": "thread_name", "ph": "M", "pid": 1, "t id": 2, "ts": 0, "args": { "name": "CrRendererMain" } }, 29 { "cat": "__metadata", "name": "thread_name", "ph": "M", "pid": 1, "t id": 2, "ts": 0, "args": { "name": "CrRendererMain" } },
30 { "cat": "disabled-by-default-devtools.timeline", "ph": "I", "name": "TracingStartedInPage", "pid": 1, "tid": 2, "ts": 100000, "tts": 606543, "args": { "sessionId": sessionId, "page": "0x4age111" } }, 30 { "cat": "disabled-by-default-devtools.timeline", "ph": "I", "name": "TracingStartedInPage", "pid": 1, "tid": 2, "ts": 100000, "tts": 606543, "args": { "sessionId": sessionId, "page": "0x4age111" } },
31 { "cat": "__metadata", "name": "process_name", "ph": "M", "pid": 3, " tid": 4, "ts": 0, "args": { "name": "Foo" } }, 31 { "cat": "__metadata", "name": "process_name", "ph": "M", "pid": 3, " tid": 4, "ts": 0, "args": { "name": "Foo" } },
32 { "cat": "__metadata", "name": "thread_name", "ph": "M", "pid": 3, "t id": 4, "ts": 0, "args": { "name": "Bar" } }, 32 { "cat": "__metadata", "name": "thread_name", "ph": "M", "pid": 3, "t id": 4, "ts": 0, "args": { "name": "Bar" } },
33 { "cat": "disabled-by-default-devtools.timeline", "ph": "I", "name": "TracingStartedInBrowser", "pid": 3, "tid": 4, "ts": 100000, "tts": 606543, "arg s": { "frameTreeNodeId": 1234 } }, 33 { "cat": "disabled-by-default-devtools.timeline", "ph": "I", "name": "TracingStartedInBrowser", "pid": 3, "tid": 4, "ts": 100000, "tts": 606543, "arg s": { "frameTreeNodeId": 1234 } },
34 ] 34 ]
35 }; 35 };
36 for (var testCase of Object.keys(testCases)) { 36 for (var testCase of Object.keys(testCases)) {
37 var model = InspectorTest.createTracingModel(); 37 var model = InspectorTest.createTracingModel();
38 model.setEventsForTest(testCases[testCase]); 38 model.setEventsForTest(testCases[testCase]);
39 var browserMain = WebInspector.TracingModel.browserMainThread(model); 39 var browserMain = SDK.TracingModel.browserMainThread(model);
40 if (!browserMain) { 40 if (!browserMain) {
41 InspectorTest.addResult(`${testCase} failed, no browser main thread found`); 41 InspectorTest.addResult(`${testCase} failed, no browser main thread found`);
42 continue; 42 continue;
43 } 43 }
44 InspectorTest.addResult(`${testCase}: main browser thread is ${browserMa in.name()} (#${browserMain.id()})`); 44 InspectorTest.addResult(`${testCase}: main browser thread is ${browserMa in.name()} (#${browserMain.id()})`);
45 } 45 }
46 InspectorTest.completeTest(); 46 InspectorTest.completeTest();
47 } 47 }
48 48
49 </script> 49 </script>
50 </head> 50 </head>
51 <body onload="runTest()"> 51 <body onload="runTest()">
52 <p>Test that tracing model correctly finds the main browser thread in the trace. 52 <p>Test that tracing model correctly finds the main browser thread in the trace.
53 </p> 53 </p>
54 </body> 54 </body>
55 </html> 55 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698