| Index: packages/package_config/test/parse_test.dart
|
| diff --git a/packages/package_config/test/parse_test.dart b/packages/package_config/test/parse_test.dart
|
| index 7a2fce7e2e2bdee9ba1082eee2df7578ae5a8898..fb3a6fab457287c3bdb5d04a99278ce817dbe76c 100644
|
| --- a/packages/package_config/test/parse_test.dart
|
| +++ b/packages/package_config/test/parse_test.dart
|
| @@ -102,16 +102,18 @@ main() {
|
| for (int i = 0; i <= 255; i++) {
|
| if (map[i] == true) continue;
|
| var char = new String.fromCharCode(i);
|
| - expect(() => doParse("x${char}x:x", null), throws);
|
| + expect(() => doParse("x${char}x:x", null),
|
| + anyOf(throwsNoSuchMethodError, throwsFormatException));
|
| }
|
| });
|
|
|
| test("no escapes", () {
|
| - expect(() => doParse("x%41x:x", base), throws);
|
| + expect(() => doParse("x%41x:x", base), throwsFormatException);
|
| });
|
|
|
| test("same name twice", () {
|
| - expect(() => doParse(singleRelativeSample * 2, base), throws);
|
| + expect(
|
| + () => doParse(singleRelativeSample * 2, base), throwsFormatException);
|
| });
|
|
|
| for (String invalidSample in invalid) {
|
|
|