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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sass/test-ast-css-3.html

Issue 1515733002: DevTools: [SASS] implement CSS AST-builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sass-module
Patch Set: rebaseline test Created 5 years 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
Index: third_party/WebKit/LayoutTests/inspector/sass/test-ast-css-3.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sass/test-ast-css-3.html b/third_party/WebKit/LayoutTests/inspector/sass/test-ast-css-3.html
new file mode 100644
index 0000000000000000000000000000000000000000..03cd8238d611d3d39a4b2a1a72c6deeaae863f3c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/sass/test-ast-css-3.html
@@ -0,0 +1,52 @@
+<html>
+<head>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/elements-test.js"></script>
+<script src="./sass-test.js"></script>
+<style>
+pre {
+ font-family: monospace;
+}
+</style>
+<script>
+
+function test()
+{
+ InspectorTest.evaluateInPage("getCSS()", onCSS);
+
+ function onCSS(result)
+ {
+ InspectorTest.parseCSS("", result.value)
+ .then(InspectorTest.dumpAST)
+ .then(InspectorTest.validateASTRanges)
+ .catch(console.error.bind(console))
+ .then(InspectorTest.completeTest);
+ }
+}
+
+function getCSS()
+{
+ return document.querySelector(".snippet").textContent;
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<p>
+Verifies AST of CSS with missing trailing semicolon after last property.
+</p>
+<pre class="snippet">
+body {
+ /* padding-top: 5em; */
+ margin: 0 auto
+}
+
+body {
+ color: red;
+ /* margin: 0 auto */
+}
+
+</pre>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698