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

Side by Side Diff: tests/compiler/dart2js_extra/literal_string_juxtaposition_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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 main() { 9 main() {
8 { 10 {
9 // Generates identical compile time constants. 11 // Generates identical compile time constants.
10 var s1 = "abcdefgh"; 12 var s1 = "abcdefgh";
11 var s2 = "abcd" "efgh"; 13 var s2 = "abcd" "efgh";
12 var s3 = "ab" "cd" "ef" "gh"; 14 var s3 = "ab" "cd" "ef" "gh";
13 var s4 = "a" "b" "c" "d" "e" "f" "g" "h"; 15 var s4 = "a" "b" "c" "d" "e" "f" "g" "h";
14 var s5 = "a" 'b' r"c" r'd' """e""" '''f''' r"""g""" r'''h'''; 16 var s5 = "a" 'b' r"c" r'd' """e""" '''f''' r"""g""" r'''h''';
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 Expect.equals(r"-foo-42-true-", 106 Expect.equals(r"-foo-42-true-",
105 r"-" "$x" r"""-""" """$y""" r'-' '$z' r'''-''', "j"); 107 r"-" "$x" r"""-""" """$y""" r'-' '$z' r'''-''', "j");
106 Expect.equals(r"-$x-42-true-", 108 Expect.equals(r"-$x-42-true-",
107 r"-" r"$x" r"""-""" """$y""" r'-' '$z' r'''-''', "k"); 109 r"-" r"$x" r"""-""" """$y""" r'-' '$z' r'''-''', "k");
108 Expect.equals(r"-foo-$y-true-", 110 Expect.equals(r"-foo-$y-true-",
109 r"-" "$x" r"""-""" r"""$y""" r'-' '$z' r'''-''', "l"); 111 r"-" "$x" r"""-""" r"""$y""" r'-' '$z' r'''-''', "l");
110 Expect.equals(r"-foo-42-$z-", 112 Expect.equals(r"-foo-42-$z-",
111 r"-" "$x" r"""-""" """$y""" r'-' r'$z' r'''-''', "m"); 113 r"-" "$x" r"""-""" """$y""" r'-' r'$z' r'''-''', "m");
112 } 114 }
113 } 115 }
OLDNEW
« no previous file with comments | « pkg/js_ast/test/printer_callback_test.dart ('k') | tests/compiler/dart2js_extra/string_interpolation_dynamic_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698