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

Unified Diff: tests/lib/mirrors/method_mirror_source_line_ending_crlf.dart

Issue 132773006: Fix handling of CRLF line endings in Script::GetSnippet. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: appease analyzer Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: tests/lib/mirrors/method_mirror_source_line_ending_crlf.dart
diff --git a/tests/language/check_member_static_test.dart b/tests/lib/mirrors/method_mirror_source_line_ending_crlf.dart
old mode 100644
new mode 100755
similarity index 52%
copy from tests/language/check_member_static_test.dart
copy to tests/lib/mirrors/method_mirror_source_line_ending_crlf.dart
index e66c37da0bfd939d4a2c57a2aa3e80e314249be8..bcf3e64c1f2d6907bb0f89b82eeced936ad9a7ff
--- a/tests/language/check_member_static_test.dart
+++ b/tests/lib/mirrors/method_mirror_source_line_ending_crlf.dart
@@ -1,21 +1,16 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-class A {
- static var a;
- var b;
-}
-
-class B extends A {
-
-}
-
-class C extends B {
- var a; /// 01: static type warning
- static var b; /// 02: compile-time error
-}
-
-void main() {
- new C();
-}
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// This file is marked executable so source control will preserve the type of
+// line ending.
+
+library line_endings.crlf;
+
+oneLineCRLF(x) => x;
+multiLineCRLF(y) {
+ return y + 1;
+}
+c
+(){
+}
« no previous file with comments | « tests/lib/mirrors/method_mirror_source_line_ending_cr.dart ('k') | tests/lib/mirrors/method_mirror_source_line_ending_lf.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698