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

Unified Diff: test/frontend/matcher/throws_type_test.dart

Issue 1088453004: Move browser tests that require installation into their own files. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 8 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 | « test/frontend/matcher/throws_test.dart ('k') | test/runner/browser/compact_reporter_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/frontend/matcher/throws_type_test.dart
diff --git a/test/frontend/matcher/throws_type_test.dart b/test/frontend/matcher/throws_type_test.dart
index c298e1707d4dca2811dad804f514488a1fca7708..a6b81e2ed3c2efb3f9a8b339ab5f11cffeac2ef1 100644
--- a/test/frontend/matcher/throws_type_test.dart
+++ b/test/frontend/matcher/throws_type_test.dart
@@ -13,7 +13,7 @@ void main() {
});
test("fails when a non-ArgumentError is thrown", () {
- return runTest(() {
+ return runTestBody(() {
expect(() => throw new Exception(), throwsArgumentError);
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -29,7 +29,7 @@ void main() {
});
test("fails when a non-ConcurrentModificationError is thrown", () {
- return runTest(() {
+ return runTestBody(() {
expect(() => throw new Exception(), throwsConcurrentModificationError);
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -45,7 +45,7 @@ void main() {
});
test("fails when a non-CyclicInitializationError is thrown", () {
- return runTest(() {
+ return runTestBody(() {
expect(() => throw new Exception(), throwsCyclicInitializationError);
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -60,7 +60,7 @@ void main() {
});
test("fails when a non-Exception is thrown", () {
- return runTest(() {
+ return runTestBody(() {
expect(() => throw 'oh no', throwsException);
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -75,7 +75,7 @@ void main() {
});
test("fails when a non-FormatException is thrown", () {
- return runTest(() {
+ return runTestBody(() {
expect(() => throw new Exception(), throwsFormatException);
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -92,7 +92,7 @@ void main() {
});
test("fails when a non-NoSuchMethodError is thrown", () {
- return runTest(() {
+ return runTestBody(() {
expect(() => throw new Exception(), throwsNoSuchMethodError);
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -107,7 +107,7 @@ void main() {
});
test("fails when a non-NullThrownError is thrown", () {
- return runTest(() {
+ return runTestBody(() {
expect(() => throw new Exception(), throwsNullThrownError);
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -122,7 +122,7 @@ void main() {
});
test("fails when a non-RangeError is thrown", () {
- return runTest(() {
+ return runTestBody(() {
expect(() => throw new Exception(), throwsRangeError);
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -137,7 +137,7 @@ void main() {
});
test("fails when a non-StateError is thrown", () {
- return runTest(() {
+ return runTestBody(() {
expect(() => throw new Exception(), throwsStateError);
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -152,7 +152,7 @@ void main() {
});
test("fails when a non-UnimplementedError is thrown", () {
- return runTest(() {
+ return runTestBody(() {
expect(() => throw new Exception(), throwsUnimplementedError);
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -167,7 +167,7 @@ void main() {
});
test("fails when a non-UnsupportedError is thrown", () {
- return runTest(() {
+ return runTestBody(() {
expect(() => throw new Exception(), throwsUnsupportedError);
}).then((liveTest) {
expectTestFailed(liveTest,
« no previous file with comments | « test/frontend/matcher/throws_test.dart ('k') | test/runner/browser/compact_reporter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698