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

Unified Diff: sdk/lib/_internal/pub_generated/test/serve/utils.dart

Issue 704053002: Fix dart2js tests in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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: sdk/lib/_internal/pub_generated/test/serve/utils.dart
diff --git a/sdk/lib/_internal/pub_generated/test/serve/utils.dart b/sdk/lib/_internal/pub_generated/test/serve/utils.dart
index d7844180ea527c4613f8ed39ae76804cf67dada0..a0ac7cc57044c306a05bc99d91b4a4666e7ea28f 100644
--- a/sdk/lib/_internal/pub_generated/test/serve/utils.dart
+++ b/sdk/lib/_internal/pub_generated/test/serve/utils.dart
@@ -255,6 +255,7 @@ Future<http.Response> scheduleRequest(String urlPath, {String root}) {
/// [headers] may be either a [Matcher] or a map to match an exact headers map.
void requestShouldSucceed(String urlPath, expectation, {String root, headers}) {
scheduleRequest(urlPath, root: root).then((response) {
+ expect(response.statusCode, equals(200));
if (expectation != null) expect(response.body, expectation);
if (headers != null) expect(response.headers, headers);
});

Powered by Google App Engine
This is Rietveld 408576698