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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/scroll-invalidations.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 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../http/tests/inspector/inspector-test.js"></script> 4 <script src="../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../http/tests/inspector/timeline-test.js"></script> 5 <script src="../../http/tests/inspector/timeline-test.js"></script>
6 <script> 6 <script>
7 function scrollAndDisplay() 7 function scrollAndDisplay()
8 { 8 {
9 scrollTo(0, 200); 9 scrollTo(0, 200);
10 if (window.testRunner) 10 if (window.testRunner)
11 return new Promise((fulfill) => testRunner.layoutAndPaintAsyncThen(fulfi ll)); 11 return new Promise((fulfill) => testRunner.layoutAndPaintAsyncThen(fulfi ll));
12 return Promise.reject(); 12 return Promise.reject();
13 } 13 }
14 14
15 function test() 15 function test()
16 { 16 {
17 Runtime.experiments.enableForTest("timelineInvalidationTracking"); 17 Runtime.experiments.enableForTest("timelineInvalidationTracking");
18 18
19 InspectorTest.invokeAsyncWithTimeline("scrollAndDisplay", onRecordingDone); 19 InspectorTest.invokeAsyncWithTimeline("scrollAndDisplay", onRecordingDone);
20 20
21 function onRecordingDone() 21 function onRecordingDone()
22 { 22 {
23 var record = InspectorTest.findFirstTimelineRecord(WebInspector.Timeline Model.RecordType.Paint); 23 var record = InspectorTest.findFirstTimelineRecord(TimelineModel.Timelin eModel.RecordType.Paint);
24 InspectorTest.addArray(WebInspector.InvalidationTracker.invalidationEven tsFor(record._event), InspectorTest.InvalidationFormatters, "", "Scroll invalida tions"); 24 InspectorTest.addArray(TimelineModel.InvalidationTracker.invalidationEve ntsFor(record._event), InspectorTest.InvalidationFormatters, "", "Scroll invalid ations");
25 InspectorTest.completeTest(); 25 InspectorTest.completeTest();
26 }; 26 };
27 } 27 }
28 </script> 28 </script>
29 </head> 29 </head>
30 <body onload="runTest()"> 30 <body onload="runTest()">
31 <p>Tests invalidations produced by scrolling a page with position: fixed element s.</p> 31 <p>Tests invalidations produced by scrolling a page with position: fixed element s.</p>
32 <div style="width: 400px; height: 2000px; background-color: grey"></div> 32 <div style="width: 400px; height: 2000px; background-color: grey"></div>
33 <div style="position: fixed; left: 50px; top: 100px; width: 50px; height: 50px; background-color: rgba(255, 100, 100, 0.6)"></div> 33 <div style="position: fixed; left: 50px; top: 100px; width: 50px; height: 50px; background-color: rgba(255, 100, 100, 0.6)"></div>
34 </body> 34 </body>
35 </html> 35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698