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

Unified Diff: packages/package_config/test/parse_test.dart

Issue 3015713002: Roll to pickup pool changes
Patch Set: Created 3 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
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) {
« no previous file with comments | « packages/package_config/test/discovery_test.dart ('k') | packages/package_config/test/parse_write_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698