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

Unified Diff: pkg/unittest/test/mock_test.dart

Issue 11570043: Convert unittest to use "package:" imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/unittest/test/mock_stepwise_negative_test.dart ('k') | pkg/unittest/test/unittest_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/test/mock_test.dart
diff --git a/pkg/unittest/test/mock_test.dart b/pkg/unittest/test/mock_test.dart
index 7a6534d4208db3c6b3b1ec06554e4f59e7ffffa4..4989a666347bcd33cbd03df6b7b652c30fde67c6 100644
--- a/pkg/unittest/test/mock_test.dart
+++ b/pkg/unittest/test/mock_test.dart
@@ -3,8 +3,8 @@
// BSD-style license that can be found in the LICENSE file.
library mock_test;
-import '../../../pkg/unittest/lib/unittest.dart';
-import '../../../pkg/unittest/lib/mock.dart';
+import 'package:unittest/unittest.dart';
+import 'package:unittest/mock.dart';
class MockList extends Mock implements List {
}
@@ -167,11 +167,11 @@ main() {
m.getLogs(null, returning(4)).verify(happenedExactly(2));
});
- test('Mocking: RegExp CallMatcher good', () {
- var m = new Mock();
- m.when(callsTo(matches('^[A-Z]'))).
- alwaysThrow('Method names must start with lower case.');
- m.test();
+ test('Mocking: RegExp CallMatcher good', () {
+ var m = new Mock();
+ m.when(callsTo(matches('^[A-Z]'))).
+ alwaysThrow('Method names must start with lower case.');
+ m.test();
});
test('Mocking: No logging', () {
@@ -601,7 +601,7 @@ main() {
expect(log[pos + 1].args[0] - log[pos].args[0], equals(1));
return 2;
});
- expect(total, equals((0 * 1) + (2 * 3) + (4 * 5) + (6 * 7) + (8 * 9)));
+ expect(total, equals((0 * 1) + (2 * 3) + (4 * 5) + (6 * 7) + (8 * 9)));
});
test('Mocking: clearLogs', () {
« no previous file with comments | « pkg/unittest/test/mock_stepwise_negative_test.dart ('k') | pkg/unittest/test/unittest_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698