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

Side by Side Diff: tests/language/raw_string_test.dart

Issue 1212823002: Fix some tests and exclude others from CRLF rewriting. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add comments to trigger update of files. Created 5 years, 5 months 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
« no previous file with comments | « tests/language/multiline_strings_test.dart ('k') | tests/lib/convert/json_pretty_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Note: This test relies on LF line endings in the source file.
6
5 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
6 8
7 class RawStringTest { 9 class RawStringTest {
8 static testMain() { 10 static testMain() {
9 Expect.equals("abcd", r"abcd"); 11 Expect.equals("abcd", r"abcd");
10 Expect.equals("", r""); 12 Expect.equals("", r"");
11 Expect.equals("", r''); 13 Expect.equals("", r'');
12 Expect.equals("", r""""""); 14 Expect.equals("", r"""""");
13 Expect.equals("", r''''''); 15 Expect.equals("", r'''''');
14 Expect.equals("''''", r"''''"); 16 Expect.equals("''''", r"''''");
(...skipping 18 matching lines...) Expand all
33 Expect.equals("\${12}", r"${12}"); 35 Expect.equals("\${12}", r"${12}");
34 Expect.equals("\\a\\b\\c\\d\\e\\f\\g\\h\\i\\j\\k\\l\\m", 36 Expect.equals("\\a\\b\\c\\d\\e\\f\\g\\h\\i\\j\\k\\l\\m",
35 r"\a\b\c\d\e\f\g\h\i\j\k\l\m"); 37 r"\a\b\c\d\e\f\g\h\i\j\k\l\m");
36 Expect.equals("\\n\\o\\p\\q\\r\\s\\t\\u\\v\\w\\x\\y\\z", 38 Expect.equals("\\n\\o\\p\\q\\r\\s\\t\\u\\v\\w\\x\\y\\z",
37 r"\n\o\p\q\r\s\t\u\v\w\x\y\z"); 39 r"\n\o\p\q\r\s\t\u\v\w\x\y\z");
38 } 40 }
39 } 41 }
40 main() { 42 main() {
41 RawStringTest.testMain(); 43 RawStringTest.testMain();
42 } 44 }
OLDNEW
« no previous file with comments | « tests/language/multiline_strings_test.dart ('k') | tests/lib/convert/json_pretty_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698