Skip to content
Snippets Groups Projects
Commit edb7eeb8 authored by nweiz@google.com's avatar nweiz@google.com
Browse files

Make pub warning-clean.

This also works around issue 9535 in scheduled_test.

Review URL: https://codereview.chromium.org//13348002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@20702 260f80e4-7a28-3924-810f-c04153c831b5
parent 859e1f51
No related branches found
No related tags found
No related merge requests found
...@@ -174,17 +174,17 @@ void testExistencePredicate(String name, bool predicate(String path), ...@@ -174,17 +174,17 @@ void testExistencePredicate(String name, bool predicate(String path),
group(name, () { group(name, () {
test('returns $forFile for a file', () { test('returns $forFile for a file', () {
expect(withTempDir((temp) { expect(withTempDir((temp) {
var path = path.join(temp, "test.txt"); var file = path.join(temp, "test.txt");
writeTextFile(path, "contents"); writeTextFile(file, "contents");
expect(predicate(path), equals(forFile)); expect(predicate(file), equals(forFile));
}), completes); }), completes);
}); });
test('returns $forDirectory for a directory', () { test('returns $forDirectory for a directory', () {
expect(withTempDir((temp) { expect(withTempDir((temp) {
var path = path.join(temp, "dir"); var file = path.join(temp, "dir");
createDir(path); createDir(file);
expect(predicate(path), equals(forDirectory)); expect(predicate(file), equals(forDirectory));
}), completes); }), completes);
}); });
......
...@@ -46,7 +46,7 @@ import 'descriptor.dart' as d; ...@@ -46,7 +46,7 @@ import 'descriptor.dart' as d;
initConfig() { initConfig() {
// If we aren't running on the bots, use the human-friendly config. // If we aren't running on the bots, use the human-friendly config.
if (new Options().arguments.contains('--human')) { if (new Options().arguments.contains('--human')) {
configure(new CommandLineConfiguration()); unittestConfiguration = new CommandLineConfiguration();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment