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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint-with-layout-invalidations-on-deleted-node.html

Issue 2486853002: Timeline: remove TimelineModel inferred properties from TracingModel.Event (Closed)
Patch Set: addressed comments and rebased 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 display() 7 function display()
8 { 8 {
9 document.body.style.backgroundColor = "blue"; 9 document.body.style.backgroundColor = "blue";
10 var element = document.getElementById("testElement"); 10 var element = document.getElementById("testElement");
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 25
26 function test() 26 function test()
27 { 27 {
28 Runtime.experiments.enableForTest("timelineInvalidationTracking"); 28 Runtime.experiments.enableForTest("timelineInvalidationTracking");
29 29
30 InspectorTest.runTestSuite([ 30 InspectorTest.runTestSuite([
31 function testLocalFrame(next) 31 function testLocalFrame(next)
32 { 32 {
33 InspectorTest.invokeAsyncWithTimeline("display", function() { 33 InspectorTest.invokeAsyncWithTimeline("display", function() {
34 var record = InspectorTest.findFirstTimelineRecord(WebInspector. TimelineModel.RecordType.Paint); 34 InspectorTest.dumpInvalidations(WebInspector.TimelineModel.Recor dType.Paint, 0, "paint invalidations");
35 InspectorTest.addArray(record._event.invalidationTrackingEvents, InspectorTest.InvalidationFormatters, "", "paint invalidations");
36 next(); 35 next();
37 }); 36 });
38 }, 37 },
39 38
40 function testSubframe(next) 39 function testSubframe(next)
41 { 40 {
42 InspectorTest.invokeAsyncWithTimeline("updateSubframeAndDisplay", fu nction() { 41 InspectorTest.invokeAsyncWithTimeline("updateSubframeAndDisplay", fu nction() {
43 // The first paint corresponds to the local frame and should hav e no invalidations. 42 // The first paint corresponds to the local frame and should hav e no invalidations.
44 var firstPaintRecord = InspectorTest.findFirstTimelineRecord(Web Inspector.TimelineModel.RecordType.Paint); 43 var firstPaintRecord = InspectorTest.findFirstTimelineRecord(Web Inspector.TimelineModel.RecordType.Paint);
45 var firstInvalidations = firstPaintRecord._event.invalidationTra ckingEvents; 44 var firstInvalidations = WebInspector.InvalidationTracker.invali dationEventsFor(firstPaintRecord._event);
46 InspectorTest.assertEquals(firstInvalidations, undefined); 45 InspectorTest.assertEquals(firstInvalidations, null);
47 46
48 // The second paint corresponds to the subframe and should have our layout/style invalidations. 47 // The second paint corresponds to the subframe and should have our layout/style invalidations.
49 var secondPaintRecord = InspectorTest.findTimelineRecord(WebInsp ector.TimelineModel.RecordType.Paint, 1); 48 InspectorTest.dumpInvalidations(WebInspector.TimelineModel.Recor dType.Paint, 1, "second paint invalidations");
50 InspectorTest.addArray(secondPaintRecord._event.invalidationTrac kingEvents, InspectorTest.InvalidationFormatters, "", "second paint invalidation s");
51 49
52 next(); 50 next();
53 }); 51 });
54 } 52 }
55 ]); 53 ]);
56 } 54 }
57 </script> 55 </script>
58 </head> 56 </head>
59 <body onload="runTest()"> 57 <body onload="runTest()">
60 <p>Tests the Timeline API instrumentation of layout invalidations on a deleted n ode.</p> 58 <p>Tests the Timeline API instrumentation of layout invalidations on a deleted n ode.</p>
61 <div id="testElement">FAIL - this should not be present when the test finishes.< /div> 59 <div id="testElement">FAIL - this should not be present when the test finishes.< /div>
62 <iframe src="../resources/timeline-iframe-paint.html" style="position: absolute; left: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe> 60 <iframe src="../resources/timeline-iframe-paint.html" style="position: absolute; left: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe>
63 </body> 61 </body>
64 </html> 62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698