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

Unified Diff: third_party/pkg/route_hierarchical/test/url_template_test.dart

Issue 176943008: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: third_party/pkg/route_hierarchical/test/url_template_test.dart
diff --git a/third_party/pkg/route_hierarchical/test/url_template_test.dart b/third_party/pkg/route_hierarchical/test/url_template_test.dart
index 37d1cd4bb29f1b01a279d6f7d0dc6ba744b2768b..d98d9889716eea33bcabe019895c124f29101290 100644
--- a/third_party/pkg/route_hierarchical/test/url_template_test.dart
+++ b/third_party/pkg/route_hierarchical/test/url_template_test.dart
@@ -59,6 +59,12 @@ main() {
new UrlMatch(r'/foo', '/foo/bar', {}));
});
+ test('should match without leading slashes', () {
+ var tmpl = new UrlTemplate(r'foo');
+ expect(tmpl.match(r'foo'),
+ new UrlMatch(r'foo', '', {}));
+ });
+
test('should reverse', () {
var tmpl = new UrlTemplate('/:a/:b/:c');
expect(tmpl.reverse(), '/null/null/null');

Powered by Google App Engine
This is Rietveld 408576698