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

Side by Side Diff: lib/src/prism/tests/languages/coffeescript/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 'foo'
3 'foo\
4 bar'
5 ""
6 "foo"
7 "foo\
8 bar"
9 "foo #{interpolation} bar"
10 ''''''
11 '''foo'''
12 '''foo
13 bar'''
14
15 """"""
16 """foo"""
17 """foo
18 bar"""
19 """foo #{interpolation} bar"""
20
21 ----------------------------------------------------
22
23 [
24 ["string", "''"],
25 ["string", "'foo'"],
26 ["string", "'foo\\\r\nbar'"],
27 ["string", ["\"\""]],
28 ["string", ["\"foo\""]],
29 ["string", ["\"foo\\\r\nbar\""]],
30 ["string", [
31 "\"foo ",
32 ["interpolation", "#{interpolation}"],
33 " bar\""
34 ]],
35
36 ["multiline-string", "''''''"],
37 ["multiline-string", "'''foo'''"],
38 ["multiline-string", "'''foo\r\nbar'''"],
39 ["multiline-string", ["\"\"\"\"\"\""]],
40 ["multiline-string", ["\"\"\"foo\"\"\""]],
41 ["multiline-string", ["\"\"\"foo\r\nbar\"\"\""]],
42 ["multiline-string", [
43 "\"\"\"foo ",
44 ["interpolation", "#{interpolation}"],
45 " bar\"\"\""
46 ]]
47 ]
48
49 ----------------------------------------------------
50
51 Checks for single-line and multi-line strings and block strings.
52 Also checks for string interpolation inside double-quoted strings.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698