| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'dart:io'; | 6 import 'dart:io'; |
| 7 import 'dart:convert'; | 7 import 'dart:convert'; |
| 8 import 'dart:math' as math; | 8 import 'dart:math' as math; |
| 9 | 9 |
| 10 import 'configuration.dart'; | 10 import 'configuration.dart'; |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 if (!path.isAbsolute) { | 441 if (!path.isAbsolute) { |
| 442 return currentWorkingDirectory.join(path); | 442 return currentWorkingDirectory.join(path); |
| 443 } | 443 } |
| 444 return path; | 444 return path; |
| 445 } | 445 } |
| 446 | 446 |
| 447 static int shortNameCounter = 0; // Make unique short file names on Windows. | 447 static int shortNameCounter = 0; // Make unique short file names on Windows. |
| 448 | 448 |
| 449 static String getShortName(String path) { | 449 static String getShortName(String path) { |
| 450 final PATH_REPLACEMENTS = const { | 450 final PATH_REPLACEMENTS = const { |
| 451 "pkg_polymer_e2e_test_bad_import_test": "polymer_bi", | |
| 452 "pkg_polymer_e2e_test_canonicalization_test": "polymer_c16n", | |
| 453 "pkg_polymer_e2e_test_experimental_boot_test": "polymer_boot", | |
| 454 "pkg_polymer_e2e_test_good_import_test": "polymer_gi", | |
| 455 "tests_co19_src_Language_12_Expressions_14_Function_Invocation_": | 451 "tests_co19_src_Language_12_Expressions_14_Function_Invocation_": |
| 456 "co19_fn_invoke_", | 452 "co19_fn_invoke_", |
| 457 "tests_co19_src_LayoutTests_fast_css_getComputedStyle_getComputedStyle-": | 453 "tests_co19_src_LayoutTests_fast_css_getComputedStyle_getComputedStyle-": |
| 458 "co19_css_getComputedStyle_", | 454 "co19_css_getComputedStyle_", |
| 459 "tests_co19_src_LayoutTests_fast_dom_Document_CaretRangeFromPoint_" | 455 "tests_co19_src_LayoutTests_fast_dom_Document_CaretRangeFromPoint_" |
| 460 "caretRangeFromPoint-": "co19_caretrangefrompoint_", | 456 "caretRangeFromPoint-": "co19_caretrangefrompoint_", |
| 461 "tests_co19_src_LayoutTests_fast_dom_Document_CaretRangeFromPoint_" | 457 "tests_co19_src_LayoutTests_fast_dom_Document_CaretRangeFromPoint_" |
| 462 "hittest-relative-to-viewport_": "co19_caretrange_hittest_", | 458 "hittest-relative-to-viewport_": "co19_caretrange_hittest_", |
| 463 "tests_co19_src_LayoutTests_fast_dom_HTMLLinkElement_link-onerror-" | 459 "tests_co19_src_LayoutTests_fast_dom_HTMLLinkElement_link-onerror-" |
| 464 "stylesheet-with-": "co19_dom_link-", | 460 "stylesheet-with-": "co19_dom_link-", |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 } | 516 } |
| 521 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { | 517 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { |
| 522 ++shortNameCounter; | 518 ++shortNameCounter; |
| 523 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); | 519 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); |
| 524 path = "short${shortNameCounter}_$pathEnd"; | 520 path = "short${shortNameCounter}_$pathEnd"; |
| 525 } | 521 } |
| 526 } | 522 } |
| 527 return path; | 523 return path; |
| 528 } | 524 } |
| 529 } | 525 } |
| OLD | NEW |