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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/timeline/fetch-as-stream.html

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <style> 3 <style>
4 div#test { 4 div#test {
5 display: none; 5 display: none;
6 background-color: blue; 6 background-color: blue;
7 width: 100px; 7 width: 100px;
8 height: 100px; 8 height: 100px;
9 } 9 }
10 </style> 10 </style>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 InspectorTest.completeTest(); 74 InspectorTest.completeTest();
75 } 75 }
76 76
77 function performEventsSanityCheck(events) 77 function performEventsSanityCheck(events)
78 { 78 {
79 var phaseComplete = 0; 79 var phaseComplete = 0;
80 80
81 var knownEvents = { 81 var knownEvents = {
82 "MessageLoop::PostTask": 0, 82 "MessageLoop::PostTask": 0,
83 "FunctionCall": 0, 83 "FunctionCall": 0,
84 "UpdateLayoutTree": 0, 84 "UpdateStyleAndLayoutTree": 0,
85 "Layout": 0 85 "Layout": 0
86 }; 86 };
87 87
88 for (var i = 0; i < events.length; ++i) { 88 for (var i = 0; i < events.length; ++i) {
89 var event = events[i]; 89 var event = events[i];
90 if (event.phase === "X") 90 if (event.phase === "X")
91 ++phaseComplete; 91 ++phaseComplete;
92 if (event.name in knownEvents) 92 if (event.name in knownEvents)
93 ++knownEvents[event.name]; 93 ++knownEvents[event.name];
94 } 94 }
95 assertGreaterOrEqual(events.length, 10, "Too few trace events recorded") ; 95 assertGreaterOrEqual(events.length, 10, "Too few trace events recorded") ;
96 assertGreaterOrEqual(knownEvents["UpdateLayoutTree"], 1, "Too few Update LayoutTree events"); 96 assertGreaterOrEqual(knownEvents["UpdateStyleAndLayoutTree"], 1, "Too fe w UpdateStyleAndLayoutTree events");
97 assertGreaterOrEqual(knownEvents["Layout"], 1, "Too few Layout events"); 97 assertGreaterOrEqual(knownEvents["Layout"], 1, "Too few Layout events");
98 InspectorTest.log("Event sanity test done"); 98 InspectorTest.log("Event sanity test done");
99 InspectorTest.completeTest(); 99 InspectorTest.completeTest();
100 } 100 }
101 } 101 }
102 </script> 102 </script>
103 </head> 103 </head>
104 <body onload="runTest()"> 104 <body onload="runTest()">
105 <div id="test"> 105 <div id="test">
106 </div> 106 </div>
107 </body> 107 </body>
108 </html> 108 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698