Index: LayoutTests/inspector/console/console-css-unterminated-comment.html |
diff --git a/LayoutTests/inspector/console/console-css-unterminated-comment.html b/LayoutTests/inspector/console/console-css-unterminated-comment.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d6c8d2d46c0eab2977656a7873076a2427d7fba3 |
--- /dev/null |
+++ b/LayoutTests/inspector/console/console-css-unterminated-comment.html |
@@ -0,0 +1,30 @@ |
+<html> |
+<head> |
+<script src="../../http/tests/inspector/inspector-test.js"></script> |
+<script src="../../http/tests/inspector/console-test.js"></script> |
+ |
+<style>/* unterminated comment </style> |
+<style>/*</style> |
+ |
+<style>/* terminated comment */</style> |
+<style>/* terminated comment *//*</style> |
+ |
+<script> |
+ |
+function test() |
+{ |
+ WebInspector.console.messages.forEach(function(message) |
+ { |
+ InspectorTest.addResult(message.message + " (line " + message.line + ")"); |
+ }); |
+ |
+ InspectorTest.completeTest(); |
+} |
+ |
+</script> |
+</head> |
+ |
+<body onload="runTest()"> |
+<p id="p">Tests that unterminated comment in CSS generates a warning.</p> |
+</body> |
+</html> |