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

Unified Diff: test/frontend/matcher/throws_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/prints_test.dart ('k') | test/frontend/matcher/throws_type_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/frontend/matcher/throws_test.dart
diff --git a/test/frontend/matcher/throws_test.dart b/test/frontend/matcher/throws_test.dart
index 2c7247221e85cfa68a4443e5658252b800c87abf..0cf353a1e58a3798cd71b3140bb9ad3f18d7b59a 100644
--- a/test/frontend/matcher/throws_test.dart
+++ b/test/frontend/matcher/throws_test.dart
@@ -16,7 +16,7 @@ void main() {
});
test("with a function that doesn't throw", () {
- return runTest(() {
+ return runTestBody(() {
expect(() {}, throws);
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -27,7 +27,7 @@ void main() {
});
test("with a non-function", () {
- return runTest(() {
+ return runTestBody(() {
expect(10, throws);
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -49,7 +49,7 @@ void main() {
});
test("with a function that doesn't throw", () {
- return runTest(() {
+ return runTestBody(() {
expect(() {}, throwsA('oh no'));
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -60,7 +60,7 @@ void main() {
});
test("with a non-function", () {
- return runTest(() {
+ return runTestBody(() {
expect(10, throwsA('oh no'));
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -71,7 +71,7 @@ void main() {
});
test("with a function that throws the wrong error", () {
- return runTest(() {
+ return runTestBody(() {
expect(() => throw 'aw dang', throwsA('oh no'));
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -90,7 +90,7 @@ void main() {
});
test("with a Future that doesn't throw", () {
- return runTest(() {
+ return runTestBody(() {
expect(new Future.value(), throws);
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -118,7 +118,7 @@ void main() {
});
test("with a Future that doesn't throw", () {
- return runTest(() {
+ return runTestBody(() {
expect(new Future.value(), throwsA('oh no'));
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -127,7 +127,7 @@ void main() {
});
test("with a Future that throws the wrong error", () {
- return runTest(() {
+ return runTestBody(() {
expect(new Future.error('aw dang'), throwsA('oh no'));
}).then((liveTest) {
expectTestFailed(liveTest, startsWith(
« no previous file with comments | « test/frontend/matcher/prints_test.dart ('k') | test/frontend/matcher/throws_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698