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

Side by Side Diff: lib/src/prism/tests/languages/javascript/template-string_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 bar`
2 `foo
3 bar`
4 `40+2=${40+2}`
5 `${foo()}`
6
7 ----------------------------------------------------
8
9 [
10 ["template-string", [
11 ["string", "`foo bar`"]
12 ]],
13 ["template-string", [
14 ["string", "`foo\r\nbar`"]
15 ]],
16 ["template-string", [
17 ["string", "`40+2="],
18 ["interpolation", [
19 ["interpolation-punctuation", "${"],
20 ["number", "40"],
21 ["operator", "+"],
22 ["number", "2"],
23 ["interpolation-punctuation", "}"]
24 ]],
25 ["string", "`"]
26 ]],
27 ["template-string", [
28 ["string", "`"],
29 ["interpolation", [
30 ["interpolation-punctuation", "${"],
31 ["function", "foo"],
32 ["punctuation", "("],
33 ["punctuation", ")"],
34 ["interpolation-punctuation", "}"]
35 ]],
36 ["string", "`"]
37 ]]
38 ]
39
40 ----------------------------------------------------
41
42 Checks for single-line and multi-line template strings.
OLDNEW
« no previous file with comments | « lib/src/prism/tests/languages/javascript/regex_feature.test ('k') | lib/src/prism/tests/languages/jsx/tag_feature.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698