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

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

Issue 11301046: Restructure pkg/unittest and pkg/webdriver to follow the pub conventions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/instance_test.dart ('k') | pkg/unittest/test/mock_regexp_negative_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/test/matchers_test.dart
===================================================================
--- pkg/unittest/test/matchers_test.dart (revision 14413)
+++ pkg/unittest/test/matchers_test.dart (working copy)
@@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#library('matcherTest');
-#import('../../../pkg/unittest/unittest.dart');
-#source('test_utils.dart');
+library unittestTests;
+import '../../../pkg/unittest/lib/unittest.dart';
+part 'test_utils.dart';
doesNotThrow() {}
doesThrow() { throw 'X'; }
@@ -126,13 +126,12 @@
});
test('throwsRangeError', () {
- shouldPass(() { throw new RangeError.value(0); },
+ shouldPass(() { throw new RangeError(0); },
throwsRangeError);
shouldFail(() { throw new Exception(); },
throwsRangeError,
"Expected: throws an exception which matches RangeError "
- "but: exception <Exception> does not match "
- "RangeError.");
+ "but: exception <Exception> does not match RangeError.");
});
test('throwsNoSuchMethodError', () {
« no previous file with comments | « pkg/unittest/test/instance_test.dart ('k') | pkg/unittest/test/mock_regexp_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698