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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-load-event.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 display() 6 function display()
7 { 7 {
8 var callback; 8 var callback;
9 var promise = new Promise((fulfill) => callback = fulfill); 9 var promise = new Promise((fulfill) => callback = fulfill);
10 if (window.testRunner) 10 if (window.testRunner)
11 testRunner.setCanOpenWindows(true); 11 testRunner.setCanOpenWindows(true);
12 var popup = window.open("data:text/html,<b>Hello, world</b>"); 12 var popup = window.open("data:text/html,<b>Hello, world</b>");
13 popup.onload = function() 13 popup.onload = function()
14 { 14 {
15 requestAnimationFrame(testRunner.capturePixelsAsyncThen.bind(testRunner, callback)); 15 requestAnimationFrame(testRunner.capturePixelsAsyncThen.bind(testRunner, callback));
16 } 16 }
17 return promise; 17 return promise;
18 } 18 }
19 19
20 function test() 20 function test()
21 { 21 {
22 WebInspector.panels.timeline._captureJSProfileSetting.set(false); 22 UI.panels.timeline._captureJSProfileSetting.set(false);
23 InspectorTest.startTimeline(function() { InspectorTest.reloadPage(pageReload ed); }); 23 InspectorTest.startTimeline(function() { InspectorTest.reloadPage(pageReload ed); });
24 24
25 function pageReloaded() 25 function pageReloaded()
26 { 26 {
27 InspectorTest.callFunctionInPageAsync("display").then(displayDone); 27 InspectorTest.callFunctionInPageAsync("display").then(displayDone);
28 } 28 }
29 29
30 function displayDone() 30 function displayDone()
31 { 31 {
32 InspectorTest.stopTimeline(InspectorTest.safeWrap(finish)) 32 InspectorTest.stopTimeline(InspectorTest.safeWrap(finish))
(...skipping 20 matching lines...) Expand all
53 </script> 53 </script>
54 </head> 54 </head>
55 55
56 <body onload="runTest()"> 56 <body onload="runTest()">
57 <p> 57 <p>
58 Tests the load event. 58 Tests the load event.
59 </p> 59 </p>
60 60
61 </body> 61 </body>
62 </html> 62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698