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

Side by Side Diff: lib/src/prism/tests/languages/stylus/selector_feature.test

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month 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 div
2 span[foo=bar]
3 color red
4
5 div input,
6 input:nth-child(2n)
7 color red
8
9 #foo
10 .bar::before
11 color red
12
13 #foo
14 .bar {
15 color red
16 }
17
18 {foo} {bar}:hover
19 color red
20
21 ----------------------------------------------------
22
23 [
24 ["selector", ["div\r\nspan[foo=bar]"]],
25 ["property-declaration", [["property", ["color"]], " red"]],
26 ["selector", ["div input", ["punctuation", ","], "\r\ninput:nth-child(2n )"]],
27 ["property-declaration", [["property", ["color"]], " red"]],
28 ["selector", ["#foo"]],
29 ["selector", [".bar::before"]],
30 ["property-declaration", [["property", ["color"]], " red"]],
31 ["selector", ["#foo"]],
32 ["selector", [".bar ", ["punctuation", "{"]]],
33 ["property-declaration", [["property", ["color"]], " red"]],
34 ["punctuation", "}"],
35 ["selector", [
36 ["interpolation", [
37 ["punctuation", "{"], "foo", ["punctuation", "}"]
38 ]],
39 ["interpolation", [
40 ["punctuation", "{"], "bar", ["punctuation", "}"]
41 ]],
42 ":hover"
43 ]],
44 ["property-declaration", [["property", ["color"]], " red"]]
45 ]
46
47 ----------------------------------------------------
48
49 Checks for selectors.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698