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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-load-event.html

Issue 1648183002: Unflake inspector/tracing/timeline-load-event.html test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(callback) 6 function display(callback)
7 { 7 {
8 if (window.testRunner) 8 if (window.testRunner)
9 testRunner.setCanOpenWindows(true); 9 testRunner.setCanOpenWindows(true);
10 var popup = window.open("data:text/html,<b>Hello, world</b>"); 10 var popup = window.open("data:text/html,<b>Hello, world</b>");
11 popup.onload = function() 11 popup.onload = function()
12 { 12 {
13 requestAnimationFrame(testRunner.capturePixelsAsyncThen.bind(testRunner, callback)); 13 requestAnimationFrame(testRunner.capturePixelsAsyncThen.bind(testRunner, callback));
14 } 14 }
15 } 15 }
16 16
17 function test() 17 function test()
18 { 18 {
19 WebInspector.panels.timeline._captureJSProfileSetting.set(false);
19 InspectorTest.startTimeline(function() { InspectorTest.reloadPage(pageReload ed); }); 20 InspectorTest.startTimeline(function() { InspectorTest.reloadPage(pageReload ed); });
20 21
21 function pageReloaded() 22 function pageReloaded()
22 { 23 {
23 InspectorTest.invokePageFunctionAsync("display", displayDone); 24 InspectorTest.invokePageFunctionAsync("display", displayDone);
24 } 25 }
25 26
26 function displayDone() 27 function displayDone()
27 { 28 {
28 InspectorTest.stopTimeline(InspectorTest.safeWrap(finish)) 29 InspectorTest.stopTimeline(InspectorTest.safeWrap(finish))
(...skipping 20 matching lines...) Expand all
49 </script> 50 </script>
50 </head> 51 </head>
51 52
52 <body onload="runTest()"> 53 <body onload="runTest()">
53 <p> 54 <p>
54 Tests the load event. 55 Tests the load event.
55 </p> 56 </p>
56 57
57 </body> 58 </body>
58 </html> 59 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698