Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Unified Diff: LayoutTests/inspector/console/console-css-unterminated-comment.html

Issue 18345005: Reporting unterminated comments in CSS. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-css-unterminated-comment-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-css-unterminated-comment-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698