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

Side by Side Diff: tools/testing/dart/test_suite.dart

Issue 266523002: Fix long co19 path names in new directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: stray comma Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 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 /** 5 /**
6 * Classes and methods for enumerating and preparing tests. 6 * Classes and methods for enumerating and preparing tests.
7 * 7 *
8 * This library includes: 8 * This library includes:
9 * 9 *
10 * - Creating tests by listing all the Dart files in certain directories, 10 * - Creating tests by listing all the Dart files in certain directories,
(...skipping 2087 matching lines...) Expand 10 before | Expand all | Expand 10 after
2098 var extraVmOptions = []; 2098 var extraVmOptions = [];
2099 if (configuration['vm_options'] != null) { 2099 if (configuration['vm_options'] != null) {
2100 extraVmOptions = configuration['vm_options'].split(" "); 2100 extraVmOptions = configuration['vm_options'].split(" ");
2101 extraVmOptions.removeWhere((s) => s.trim() == ""); 2101 extraVmOptions.removeWhere((s) => s.trim() == "");
2102 } 2102 }
2103 return extraVmOptions; 2103 return extraVmOptions;
2104 } 2104 }
2105 2105
2106 static String getShortName(String path) { 2106 static String getShortName(String path) {
2107 final PATH_REPLACEMENTS = const { 2107 final PATH_REPLACEMENTS = const {
2108 "tests_co19_src_WebPlatformTest1_shadow-dom_shadow-trees_": 2108 "tests_co19_src_WebPlatformTest_shadow-dom_shadow-trees_":
2109 "co19_shadow-trees_", 2109 "co19_shadow-trees_",
2110 "tests_co19_src_WebPlatformTest1_shadow-dom_elements-and-dom-objects_": 2110 "tests_co19_src_WebPlatformTest_shadow-dom_elements-and-dom-objects_":
2111 "co19_shadowdom_", 2111 "co19_shadowdom_",
2112 "tests_co19_src_WebPlatformTest1_html-templates_parsing-html-" 2112 "tests_co19_src_WebPlatformTest_html-templates_parsing-html-"
2113 "templates_additions-to-": "co19_htmltemplates_add_", 2113 "templates_additions-to-": "co19_htmltemplates_add_",
2114 "tests_co19_src_WebPlatformTest1_html-templates_parsing-html-" 2114 "tests_co19_src_WebPlatformTest_html-templates_parsing-html-"
2115 "templates_appending-to-a-template_": "co19_htmltemplates_append_", 2115 "templates_appending-to-a-template_": "co19_htmltemplates_append_",
2116 "tests_co19_src_WebPlatformTest1_html-templates_parsing-html-" 2116 "tests_co19_src_WebPlatformTest_html-templates_parsing-html-"
2117 "templates_clearing-the-stack-back-to-a-given-context_": 2117 "templates_clearing-the-stack-back-to-a-given-context_":
2118 "co19_htmltemplates_clearstack_", 2118 "co19_htmltemplates_clearstack_",
2119 "tests_co19_src_WebPlatformTest1_html-templates_parsing-html-" 2119 "tests_co19_src_WebPlatformTest_html-templates_parsing-html-"
2120 "templates_creating-an-element-for-the-token_": 2120 "templates_creating-an-element-for-the-token_":
2121 "co19_htmltemplates_create_", 2121 "co19_htmltemplates_create_",
2122 "tests_co19_src_WebPlatformTest1_html-templates_additions-to-" 2122 "tests_co19_src_WebPlatformTest_html-templates_additions-to-"
2123 "the-steps-to-clone-a-node_": "co19_htmltemplates_clone_", 2123 "the-steps-to-clone-a-node_": "co19_htmltemplates_clone_",
2124 "tests_co19_src_LayoutTests_fast_dom_Document_CaretRangeFromPoint_" 2124 "tests_co19_src_LayoutTests_fast_dom_Document_CaretRangeFromPoint_"
2125 "caretRangeFromPoint-": "co19_caretrangefrompoint_", 2125 "caretRangeFromPoint-": "co19_caretrangefrompoint_",
2126 "pkg_polymer_example_canonicalization_test_canonicalization": "polymer_c16 n" 2126 "pkg_polymer_example_canonicalization_test_canonicalization":
2127 "polymer_c16n"
2127 }; 2128 };
2128 2129
2129 // Some tests are already in [build_dir]/generated_tests. 2130 // Some tests are already in [build_dir]/generated_tests.
2130 String GEN_TESTS = 'generated_tests/'; 2131 String GEN_TESTS = 'generated_tests/';
2131 if (path.contains(GEN_TESTS)) { 2132 if (path.contains(GEN_TESTS)) {
2132 int index = path.indexOf(GEN_TESTS) + GEN_TESTS.length; 2133 int index = path.indexOf(GEN_TESTS) + GEN_TESTS.length;
2133 path = 'multitest/${path.substring(index)}'; 2134 path = 'multitest/${path.substring(index)}';
2134 } 2135 }
2135 path = path.replaceAll('/', '_'); 2136 path = path.replaceAll('/', '_');
2136 final int WINDOWS_SHORTEN_PATH_LIMIT = 60; 2137 final int WINDOWS_SHORTEN_PATH_LIMIT = 60;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
2209 * $pass tests are expected to pass 2210 * $pass tests are expected to pass
2210 * $failOk tests are expected to fail that we won't fix 2211 * $failOk tests are expected to fail that we won't fix
2211 * $fail tests are expected to fail that we should fix 2212 * $fail tests are expected to fail that we should fix
2212 * $crash tests are expected to crash that we should fix 2213 * $crash tests are expected to crash that we should fix
2213 * $timeout tests are allowed to timeout 2214 * $timeout tests are allowed to timeout
2214 * $compileErrorSkip tests are skipped on browsers due to compile-time error 2215 * $compileErrorSkip tests are skipped on browsers due to compile-time error
2215 """; 2216 """;
2216 print(report); 2217 print(report);
2217 } 2218 }
2218 } 2219 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698