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

Side by Side Diff: lib/src/prism/tests/languages/jade/flow-control_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 each val, index in [1,2,3]
2
3 if foo
4 else if bar
5 else
6
7 unless foo
8
9 while n < 4
10
11 case foo
12 when "bar"
13 default
14
15 ----------------------------------------------------
16
17 [
18 ["flow-control", [
19 ["each", [
20 ["keyword", "each"],
21 " val",
22 ["punctuation", ","],
23 " index ",
24 ["keyword", "in"]
25 ]],
26 ["punctuation", "["],
27 ["number", "1"],
28 ["punctuation", ","],
29 ["number", "2"],
30 ["punctuation", ","],
31 ["number", "3"],
32 ["punctuation", "]"]
33 ]],
34
35 ["flow-control", [
36 ["branch", "if"],
37 " foo"
38 ]],
39 ["flow-control", [
40 ["branch", "else"],
41 ["keyword", "if"],
42 " bar"
43 ]],
44 ["flow-control", [
45 ["branch", "else"]
46 ]],
47
48 ["flow-control", [
49 ["branch", "unless"],
50 " foo"
51 ]],
52
53 ["flow-control", [
54 ["branch", "while"],
55 " n ",
56 ["operator", "<"],
57 ["number", "4"]
58 ]],
59
60 ["flow-control", [
61 ["branch", "case"],
62 " foo"
63 ]],
64 ["flow-control", [
65 ["branch", "when"],
66 ["string", "\"bar\""]
67 ]],
68 ["flow-control", [
69 ["branch", "default"]
70 ]]
71 ]
72
73 ----------------------------------------------------
74
75 Checks for all flow-control structures.
OLDNEW
« no previous file with comments | « lib/src/prism/tests/languages/jade/doctype_feature.test ('k') | lib/src/prism/tests/languages/jade/keyword_feature.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698