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

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

Issue 212923006: Rationalize arg handling for pub build and serve. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 years, 9 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: sdk/lib/_internal/pub/test/serve/utils.dart
diff --git a/sdk/lib/_internal/pub/test/serve/utils.dart b/sdk/lib/_internal/pub/test/serve/utils.dart
index 1f968dfe8a0877c56a7c63527fa8e0858bcf66fe..95e4da7a95c4db42a480448e65f7fd6151c3461f 100644
--- a/sdk/lib/_internal/pub/test/serve/utils.dart
+++ b/sdk/lib/_internal/pub/test/serve/utils.dart
@@ -358,6 +358,13 @@ Future expectWebSocketError(String method, Map params, errorCode,
}, "send $method with $params to web socket and expect error $errorCode");
}
+/// Validates that [root] was not bound to a port when pub serve started.
+Future expectNotServed(String root) {
+ return schedule(() {
+ expect(_ports.containsKey(root), isFalse);
+ });
+}
+
/// The next id to use for a JSON-RPC 2.0 request.
var _rpcId = 0;

Powered by Google App Engine
This is Rietveld 408576698