diff --git a/.gitattributes b/.gitattributes index 112752d1ba1..f9b113558cc 100644 --- a/.gitattributes +++ b/.gitattributes @@ -17,9 +17,12 @@ tests/compiler/dart2js_extra/literal_string_juxtaposition_test.dart -text tests/language/raw_string_test.dart -text tests/language/multiline_strings_test.dart -text tests/lib/convert/json_pretty_test.dart -text +tests/lib/mirrors/method_mirror_source_line_ending_test.dart -text tests/lib/mirrors/method_mirror_source_line_ending_cr.dart -text tests/lib/mirrors/method_mirror_source_line_ending_crlf.dart -text tests/lib/mirrors/method_mirror_source_line_ending_lf.dart -text +tests/lib/mirrors/method_mirror_source_test.dart -text +tests/lib/mirrors/method_mirror_source_other.dart -text pkg/js_ast/test/printer_callback_test.dart -text # Files to leave alone and not diff. diff --git a/tests/lib/mirrors/method_mirror_source_line_ending_lf.dart b/tests/lib/mirrors/method_mirror_source_line_ending_lf.dart index 71a34c82d29..b805a757a5d 100755 --- a/tests/lib/mirrors/method_mirror_source_line_ending_lf.dart +++ b/tests/lib/mirrors/method_mirror_source_line_ending_lf.dart @@ -2,8 +2,7 @@ // 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. +// Note: This test relies on LF line endings in the source file. library line_endings.lf; diff --git a/tests/lib/mirrors/method_mirror_source_line_ending_test.dart b/tests/lib/mirrors/method_mirror_source_line_ending_test.dart index e052cc10a95..c0593979c9f 100644 --- a/tests/lib/mirrors/method_mirror_source_line_ending_test.dart +++ b/tests/lib/mirrors/method_mirror_source_line_ending_test.dart @@ -2,6 +2,8 @@ // 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. +// Note: These tests rely on specific line endings in the source files. + import "dart:mirrors"; import "package:expect/expect.dart"; diff --git a/tests/lib/mirrors/method_mirror_source_other.dart b/tests/lib/mirrors/method_mirror_source_other.dart index 29adf5bb7a6..37151b62d18 100644 --- a/tests/lib/mirrors/method_mirror_source_other.dart +++ b/tests/lib/mirrors/method_mirror_source_other.dart @@ -3,4 +3,6 @@ main() { } // This function must be on the first line. -class SomethingInOther {} \ No newline at end of file +class SomethingInOther {} + +// Note: This test relies on LF line endings in the source file. diff --git a/tests/lib/mirrors/method_mirror_source_test.dart b/tests/lib/mirrors/method_mirror_source_test.dart index 9b0945209d0..cea4dc16318 100644 --- a/tests/lib/mirrors/method_mirror_source_test.dart +++ b/tests/lib/mirrors/method_mirror_source_test.dart @@ -2,6 +2,8 @@ // 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. +// Note: This test relies on LF line endings in the source file. + import "dart:mirrors"; import "package:expect/expect.dart"; import "method_mirror_source_other.dart";