OLD | NEW |
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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["FunctionCall"], 1, "Too few FunctionCa
ll events"); | |
97 assertGreaterOrEqual(knownEvents["UpdateLayoutTree"], 1, "Too few Update
LayoutTree events"); | 96 assertGreaterOrEqual(knownEvents["UpdateLayoutTree"], 1, "Too few Update
LayoutTree events"); |
98 assertGreaterOrEqual(knownEvents["Layout"], 1, "Too few Layout events"); | 97 assertGreaterOrEqual(knownEvents["Layout"], 1, "Too few Layout events"); |
99 InspectorTest.log("Event sanity test done"); | 98 InspectorTest.log("Event sanity test done"); |
100 InspectorTest.completeTest(); | 99 InspectorTest.completeTest(); |
101 } | 100 } |
102 } | 101 } |
103 </script> | 102 </script> |
104 </head> | 103 </head> |
105 <body onload="runTest()"> | 104 <body onload="runTest()"> |
106 <div id="test"> | 105 <div id="test"> |
107 </div> | 106 </div> |
108 </body> | 107 </body> |
109 </html> | 108 </html> |
OLD | NEW |