| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../http/tests/inspector/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
| 5 | 5 |
| 6 <style> | 6 <style> |
| 7 x {} | 7 x {} |
| 8 | 8 |
| 9 x { | 9 x { |
| 10 # | 10 # |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 <script> | 176 <script> |
| 177 | 177 |
| 178 function test() | 178 function test() |
| 179 { | 179 { |
| 180 // Ensure script generated errors don't go to the console. | 180 // Ensure script generated errors don't go to the console. |
| 181 var style = document.createElement('style'); | 181 var style = document.createElement('style'); |
| 182 style.textContent = "x{y:*}"; | 182 style.textContent = "x{y:*}"; |
| 183 document.head.appendChild(style); | 183 document.head.appendChild(style); |
| 184 | 184 |
| 185 var messages = WebInspector.consoleModel.messages(); | 185 var messages = InspectorTest.consoleModel.messages(); |
| 186 for (var i = 0; i < messages.length; i++) { | 186 for (var i = 0; i < messages.length; i++) { |
| 187 if (messages[i].source === WebInspector.ConsoleMessage.MessageSource.CSS
) | 187 if (messages[i].source === WebInspector.ConsoleMessage.MessageSource.CSS
) |
| 188 InspectorTest.addResult(messages[i].message + " (line: " + messages[
i].line + ")"); | 188 InspectorTest.addResult(messages[i].message + " (line: " + messages[
i].line + ")"); |
| 189 } | 189 } |
| 190 | 190 |
| 191 InspectorTest.completeTest(); | 191 InspectorTest.completeTest(); |
| 192 } | 192 } |
| 193 | 193 |
| 194 </script> | 194 </script> |
| 195 </head> | 195 </head> |
| 196 | 196 |
| 197 <body onload="runTest()"> | 197 <body onload="runTest()"> |
| 198 <p id="p">Tests CSS warnings are properly exposed.</p> | 198 <p id="p">Tests CSS warnings are properly exposed.</p> |
| 199 </body> | 199 </body> |
| 200 </html> | 200 </html> |
| OLD | NEW |