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

Unified Diff: test/shelf_io_test.dart

Issue 966063003: Overhaul the semantics of Request.handlerPath and Request.url. (Closed) Base URL: git@github.com:dart-lang/shelf@master
Patch Set: Code review changes Created 5 years, 10 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/request_test.dart ('k') | test/test_util.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/shelf_io_test.dart
diff --git a/test/shelf_io_test.dart b/test/shelf_io_test.dart
index 1a0ad785281864cce965efbf0704a7edac4cfe99..586a9615858b7b59c79d9876830404f759d8d85f 100644
--- a/test/shelf_io_test.dart
+++ b/test/shelf_io_test.dart
@@ -85,11 +85,11 @@ void main() {
var expectedUrl = 'http://localhost:$_serverPort$path';
expect(request.requestedUri, Uri.parse(expectedUrl));
- expect(request.url.path, '/foo/bar');
+ expect(request.url.path, 'foo/bar');
expect(request.url.pathSegments, ['foo', 'bar']);
expect(request.protocolVersion, '1.1');
expect(request.url.query, 'qs=value');
- expect(request.scriptName, '');
+ expect(request.handlerPath, '/');
return syncHandler(request);
});
« no previous file with comments | « test/request_test.dart ('k') | test/test_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698