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