Index: LayoutTests/inspector/console/console-css-unterminated-comment.html |
diff --git a/LayoutTests/inspector/console/console-log-syntax-error.html b/LayoutTests/inspector/console/console-css-unterminated-comment.html |
similarity index 55% |
copy from LayoutTests/inspector/console/console-log-syntax-error.html |
copy to LayoutTests/inspector/console/console-css-unterminated-comment.html |
index 967d7a4c74875471236362e95b4a8053376e1e57..00236754935d4bab5a0865d4779ee7a4d48d6a63 100644 |
--- a/LayoutTests/inspector/console/console-log-syntax-error.html |
+++ b/LayoutTests/inspector/console/console-css-unterminated-comment.html |
@@ -2,18 +2,25 @@ |
<head> |
<script src="../../http/tests/inspector/inspector-test.js"></script> |
<script src="../../http/tests/inspector/console-test.js"></script> |
-<script src="resources/syntax-error.js"></script> |
+ |
+<style>/*</style> |
apavlov
2013/07/01 14:46:04
We need to check other cases, like valid terminate
SeRya
2013/07/02 08:27:56
Done.
|
+ |
<script> |
+ |
function test() |
{ |
- InspectorTest.dumpConsoleMessages(); |
+ WebInspector.console.messages.forEach(function(message) |
+ { |
+ InspectorTest.addResult(message.message); |
+ }); |
+ |
InspectorTest.completeTest(); |
} |
+ |
</script> |
</head> |
+ |
<body onload="runTest()"> |
-<p> |
-Tests that syntax errors are logged into console and doesn't cause browser crash. |
-</p> |
+<p id="p">Tests that unterminated comment in CSS generates a warning.</p> |
</body> |
</html> |