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

Side by Side Diff: lib/src/prism/tests/languages/latex/equation_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 $foo$
2 $a \dots
3 b$
4 \(foo\)
5 \(a \dots
6 b\)
7 \[foo\]
8 \[a \dots
9 b\]
10
11 \begin{equation}foo\end{equation}
12 \begin{equation}a \dots
13 b\end{equation}
14 \begin{math}foo\end{math}
15 \begin{math}a \dots
16 b\end{math}
17 \begin{eqnarray}foo\end{eqnarray}
18 \begin{eqnarray}a \dots
19 b\end{eqnarray}
20 \begin{align}foo\end{align}
21 \begin{align*}a \dots
22 b\end{align*}
23 \begin{multline}foo\end{multline}
24 \begin{multline}a \dots
25 b\end{multline}
26 \begin{gather}foo\end{gather}
27 \begin{gather}a \dots
28 b\end{gather}
29
30 ----------------------------------------------------
31
32 [
33 ["equation", ["$foo$"]],
34 ["equation", [
35 "$a ",
36 ["equation-command", "\\dots"],
37 "\r\nb$"
38 ]],
39 ["equation", ["\\(foo\\)"]],
40 ["equation", [
41 "\\(a ",
42 ["equation-command", "\\dots"],
43 "\r\nb\\)"
44 ]],
45 ["equation", ["\\[foo\\]"]],
46 ["equation", [
47 "\\[a ",
48 ["equation-command", "\\dots"],
49 "\r\nb\\]"
50 ]],
51
52 ["function", "\\begin"], ["punctuation", "{"],
53 ["keyword", "equation"], ["punctuation", "}"],
54 ["equation", ["foo"]],
55 ["function", "\\end"], ["punctuation", "{"],
56 ["keyword", "equation"], ["punctuation", "}"],
57 ["function", "\\begin"], ["punctuation", "{"],
58 ["keyword", "equation"], ["punctuation", "}"],
59 ["equation", ["a ", ["equation-command", "\\dots"], "\r\nb"]],
60 ["function", "\\end"], ["punctuation", "{"],
61 ["keyword", "equation"], ["punctuation", "}"],
62
63 ["function", "\\begin"], ["punctuation", "{"],
64 ["keyword", "math"], ["punctuation", "}"],
65 ["equation", ["foo"]],
66 ["function", "\\end"], ["punctuation", "{"],
67 ["keyword", "math"], ["punctuation", "}"],
68 ["function", "\\begin"], ["punctuation", "{"],
69 ["keyword", "math"], ["punctuation", "}"],
70 ["equation", ["a ", ["equation-command", "\\dots"], "\r\nb"]],
71 ["function", "\\end"], ["punctuation", "{"],
72 ["keyword", "math"], ["punctuation", "}"],
73
74 ["function", "\\begin"], ["punctuation", "{"],
75 ["keyword", "eqnarray"], ["punctuation", "}"],
76 ["equation", ["foo"]],
77 ["function", "\\end"], ["punctuation", "{"],
78 ["keyword", "eqnarray"], ["punctuation", "}"],
79 ["function", "\\begin"], ["punctuation", "{"],
80 ["keyword", "eqnarray"], ["punctuation", "}"],
81 ["equation", ["a ", ["equation-command", "\\dots"], "\r\nb"]],
82 ["function", "\\end"], ["punctuation", "{"],
83 ["keyword", "eqnarray"], ["punctuation", "}"],
84
85 ["function", "\\begin"], ["punctuation", "{"],
86 ["keyword", "align"], ["punctuation", "}"],
87 ["equation", ["foo"]],
88 ["function", "\\end"], ["punctuation", "{"],
89 ["keyword", "align"], ["punctuation", "}"],
90 ["function", "\\begin"], ["punctuation", "{"],
91 ["keyword", "align*"], ["punctuation", "}"],
92 ["equation", ["a ", ["equation-command", "\\dots"], "\r\nb"]],
93 ["function", "\\end"], ["punctuation", "{"],
94 ["keyword", "align*"], ["punctuation", "}"],
95
96 ["function", "\\begin"], ["punctuation", "{"],
97 ["keyword", "multline"], ["punctuation", "}"],
98 ["equation", ["foo"]],
99 ["function", "\\end"], ["punctuation", "{"],
100 ["keyword", "multline"], ["punctuation", "}"],
101 ["function", "\\begin"], ["punctuation", "{"],
102 ["keyword", "multline"], ["punctuation", "}"],
103 ["equation", ["a ", ["equation-command", "\\dots"], "\r\nb"]],
104 ["function", "\\end"], ["punctuation", "{"],
105 ["keyword", "multline"], ["punctuation", "}"],
106
107 ["function", "\\begin"], ["punctuation", "{"],
108 ["keyword", "gather"], ["punctuation", "}"],
109 ["equation", ["foo"]],
110 ["function", "\\end"], ["punctuation", "{"],
111 ["keyword", "gather"], ["punctuation", "}"],
112 ["function", "\\begin"], ["punctuation", "{"],
113 ["keyword", "gather"], ["punctuation", "}"],
114 ["equation", ["a ", ["equation-command", "\\dots"], "\r\nb"]],
115 ["function", "\\end"], ["punctuation", "{"],
116 ["keyword", "gather"], ["punctuation", "}"]
117 ]
118
119 ----------------------------------------------------
120
121 Checks for equations.
OLDNEW
« no previous file with comments | « lib/src/prism/tests/languages/latex/comment_feature.test ('k') | lib/src/prism/tests/languages/latex/headline_feature.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698