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 2694903007: Add a warning for the deprecation of content-initiated data URL navigations (Closed)
Patch Set: creis comments Created 3 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
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("resources/hello.html");
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 UI.panels.timeline._disableCaptureJSProfileSetting.set(true); 22 UI.panels.timeline._disableCaptureJSProfileSetting.set(true);
(...skipping 30 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