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

Side by Side Diff: lib/src/prism/tests/languages/bash/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 ""
2 ''
3 "foo"
4 'foo'
5 "foo
6 bar"
7 'foo
8 bar'
9 "'foo'"
10 '"bar"'
11 "$@"
12 "${foo}"
13 << STRING_END
14 foo
15 bar
16 STRING_END
17 << EOF
18 foo $@
19 bar
20 EOF
21 << 'EOF'
22 'single quoted string'
23 "double quoted string"
24 EOF
25 << "EOF"
26 foo
27 bar
28 EOF
29
30 ----------------------------------------------------
31
32 [
33 ["string", ["\"\""]],
34 ["string", ["''"]],
35 ["string", ["\"foo\""]],
36 ["string", ["'foo'"]],
37 ["string", ["\"foo\r\nbar\""]],
38 ["string", ["'foo\r\nbar'"]],
39 ["string", ["\"'foo'\""]],
40 ["string", ["'\"bar\"'"]],
41 ["string", [
42 "\"", ["variable", "$@"], "\""
43 ]],
44 ["string", [
45 "\"", ["variable", "${foo}"], "\""
46 ]],
47 ["operator", "<<"],
48 ["string", ["STRING_END\r\nfoo\r\nbar\r\nSTRING_END"]],
49 ["operator", "<<"],
50 ["string", ["EOF\r\nfoo ", ["variable", "$@"], "\r\nbar\r\nEOF"]],
51 ["operator", "<<"],
52 ["string", ["'EOF'\r\n'single quoted string'\r\n\"double quoted string\" \r\nEOF"]],
53 ["operator", "<<"],
54 ["string", ["\"EOF\"\r\nfoo\r\nbar\r\nEOF"]]
55 ]
56
57 ----------------------------------------------------
58
59 Checks for single-quoted and double-quoted strings.
60 Also checks for variables in strings.
OLDNEW
« no previous file with comments | « lib/src/prism/tests/languages/bash/shebang_feature.test ('k') | lib/src/prism/tests/languages/bash/variable_feature.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698