| Index: pkg/unittest/lib/src/core_matchers.dart
 | 
| ===================================================================
 | 
| --- pkg/unittest/lib/src/core_matchers.dart	(revision 0)
 | 
| +++ pkg/unittest/lib/src/core_matchers.dart	(working copy)
 | 
| @@ -2,7 +2,7 @@
 | 
|  // 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.
 | 
|  
 | 
| -part of unittest;
 | 
| +part of matcher;
 | 
|  
 | 
|  /**
 | 
|   * Returns a matcher that matches empty strings, maps or collections.
 | 
| @@ -284,7 +284,7 @@
 | 
|      if (item is Future) {
 | 
|        // Queue up an asynchronous expectation that validates when the future
 | 
|        // completes.
 | 
| -      item.onComplete(expectAsync1((future) {
 | 
| +      item.onComplete(wrapAsync((future) {
 | 
|          if (future.hasValue) {
 | 
|            expect(false, isTrue, reason:
 | 
|                "Expected future to fail, but succeeded with '${future.value}'.");
 | 
| @@ -453,16 +453,16 @@
 | 
|    bool matches(item, MatchState matchState) => item is IllegalJSRegExpException;
 | 
|  }
 | 
|  
 | 
| -/** A matcher for IndexOutOfRangeExceptions. */
 | 
| -const isIndexOutOfRangeException = const _IndexOutOfRangeException();
 | 
| +/** A matcher for RangeErrors. */
 | 
| +const isRangeError = const _RangeError();
 | 
|  
 | 
| -/** A matcher for functions that throw IndexOutOfRangeException. */
 | 
| -const Matcher throwsIndexOutOfRangeException =
 | 
| -    const Throws(isIndexOutOfRangeException);
 | 
| +/** A matcher for functions that throw RangeError. */
 | 
| +const Matcher throwsRangeError =
 | 
| +    const Throws(isRangeError);
 | 
|  
 | 
| -class _IndexOutOfRangeException extends TypeMatcher {
 | 
| -  const _IndexOutOfRangeException() : super("IndexOutOfRangeException");
 | 
| -  bool matches(item, MatchState matchState) => item is IndexOutOfRangeException;
 | 
| +class _RangeError extends TypeMatcher {
 | 
| +  const _RangeError() : super("RangeError");
 | 
| +  bool matches(item, MatchState matchState) => item is RangeError;
 | 
|  }
 | 
|  
 | 
|  /** A matcher for NoSuchMethodErrors. */
 | 
| 
 |