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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sass/test-ast-scss-1.html

Issue 1511073002: DevTools: [SASS] introduce sass module, implement SCSS AST-builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: introduce ASTDocument 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script>
5 <script src="./sass-test.js"></script>
6 <style>
7 pre {
8 font-family: monospace;
9 }
10 </style>
11 <script>
12
13 function test()
14 {
15 InspectorTest.evaluateInPage("getSASS()", onSASS);
16
17 function onSASS(result)
18 {
19 InspectorTest.parseSCSS("", result.value)
20 .then(InspectorTest.dumpAST)
21 .then(InspectorTest.validateASTRanges)
22 .catch(console.error.bind(console))
23 .then(InspectorTest.completeTest);
24 }
25 }
26
27 function getSASS()
28 {
29 return document.querySelector(".snippet").textContent;
30 }
31
32 </script>
33 </head>
34
35 <body onload="runTest()">
36 <p>
37 Verifies SCSS AST in case of simple nesting and CSS properties.
38 </p>
39 <pre class="snippet">
40 div {
41 /* display: flex; */
42 color: $my-color;
43 background-color: blue;
44 /* position: absolute; */
45
46 .className {
47 padding: 10px 0 0 10px;
48 /* font-family: "Times New Roman"; */
49 background-image: url(assets/no-image-set.png);
50
51 #test::before {
52 margin: 10px 10px;
53 content: "test me";
54 /* border: 1px solid black; */
55 }
56 }
57 }
58 </pre>
59 </body>
60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698