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

Side by Side Diff: client/tests/dartc/test_config.dart

Issue 9495006: Fix static warnings in test_suite.dart from local variables shadowing parameters or functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | tools/testing/dart/test_suite.dart » ('j') | 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 #library("client_dartc_test_config"); 5 #library("client_dartc_test_config");
6 6
7 #import("../../../tools/testing/dart/test_suite.dart"); 7 #import("../../../tools/testing/dart/test_suite.dart");
8 8
9 class ClientDartcTestSuite extends DartcCompilationTestSuite { 9 class ClientDartcTestSuite extends DartcCompilationTestSuite {
10 ClientDartcTestSuite(Map configuration) 10 ClientDartcTestSuite(Map configuration)
(...skipping 11 matching lines...) Expand all
22 'testing', 22 'testing',
23 'tests', 23 'tests',
24 'touch', 24 'touch',
25 'util', 25 'util',
26 'view', 26 'view',
27 'weld'], 27 'weld'],
28 ["client/tests/dartc/dartc.status"]); 28 ["client/tests/dartc/dartc.status"]);
29 29
30 bool isTestFile(String filename) { 30 bool isTestFile(String filename) {
31 if (!filename.endsWith(".dart")) return false; 31 if (!filename.endsWith(".dart")) return false;
32 var options = optionsFromFile(filename); 32 // Using readOptionsFromFile here causes the file to be read twice,
33 return optionsFromFile(filename)["containsLeadingHash"]; 33 // because readOptionsFromFile is called again in the superclass.
34 // Avoid this in new code.
35 return readOptionsFromFile(filename)["containsLeadingHash"];
34 } 36 }
35 37
36 bool listRecursively() => true; 38 bool listRecursively() => true;
37 } 39 }
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698