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

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

Issue 10917275: Update unittest to new package layout. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 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 c70784d2f18bf2f5be9459ec881d1ee0c33dffd2..42f08d524a568d63e2f3172ef338bf49a1ee1aa5 100644
--- a/pkg/unittest/test/mock_test.dart
+++ b/pkg/unittest/test/mock_test.dart
@@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
#library('unittestTest');
-#import('../../../pkg/unittest/unittest.dart');
+#import('../../../pkg/unittest/lib/unittest.dart');
class MockList extends Mock implements List {
}
@@ -166,11 +166,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', () {
@@ -600,7 +600,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