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/prints_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/completion_test.dart ('k') | test/frontend/matcher/throws_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/frontend/matcher/prints_test.dart
diff --git a/test/frontend/matcher/prints_test.dart b/test/frontend/matcher/prints_test.dart
index 26b1710be575886bd9d90c5fd73045566ce3ca66..6accc5f53f7665c48660506a2c0690d2abfa6a1a 100644
--- a/test/frontend/matcher/prints_test.dart
+++ b/test/frontend/matcher/prints_test.dart
@@ -26,7 +26,7 @@ void main() {
});
test("describes a failure nicely", () {
- return runTest(() {
+ return runTestBody(() {
expect(() => print("Hello, world!"), prints("Goodbye, world!\n"));
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -44,7 +44,7 @@ void main() {
});
test("describes a failure with a non-descriptive Matcher nicely", () {
- return runTest(() {
+ return runTestBody(() {
expect(() => print("Hello, world!"), prints(contains("Goodbye")));
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -56,7 +56,7 @@ void main() {
});
test("describes a failure with no text nicely", () {
- return runTest(() {
+ return runTestBody(() {
expect(() {}, prints(contains("Goodbye")));
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -67,7 +67,7 @@ void main() {
});
test("with a non-function", () {
- return runTest(() {
+ return runTestBody(() {
expect(10, prints(contains("Goodbye")));
}).then((liveTest) {
expectTestFailed(liveTest,
@@ -96,7 +96,7 @@ void main() {
});
test("describes a failure nicely", () {
- return runTest(() {
+ return runTestBody(() {
expect(() => new Future(() => print("Hello, world!")),
prints("Goodbye, world!\n"));
}).then((liveTest) {
@@ -115,7 +115,7 @@ void main() {
});
test("describes a failure with a non-descriptive Matcher nicely", () {
- return runTest(() {
+ return runTestBody(() {
expect(() => new Future(() => print("Hello, world!")),
prints(contains("Goodbye")));
}).then((liveTest) {
@@ -128,7 +128,7 @@ void main() {
});
test("describes a failure with no text nicely", () {
- return runTest(() {
+ return runTestBody(() {
expect(() => new Future.value(), prints(contains("Goodbye")));
}).then((liveTest) {
expectTestFailed(liveTest, startsWith(
« no previous file with comments | « test/frontend/matcher/completion_test.dart ('k') | test/frontend/matcher/throws_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698