Index: third_party/polymer/v0_8/components/more-routing/more-route-template-helpers.html |
diff --git a/third_party/polymer/v0_8/components/more-routing/driver/mock.html b/third_party/polymer/v0_8/components/more-routing/more-route-template-helpers.html |
similarity index 63% |
copy from third_party/polymer/v0_8/components/more-routing/driver/mock.html |
copy to third_party/polymer/v0_8/components/more-routing/more-route-template-helpers.html |
index 714f43bfc8d8c4ce79910cf839b8d5b32030d4ad..7c8d8d15a2709603aa04cfd98cf55454c35b01bd 100644 |
--- a/third_party/polymer/v0_8/components/more-routing/driver/mock.html |
+++ b/third_party/polymer/v0_8/components/more-routing/more-route-template-helpers.html |
@@ -6,21 +6,27 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI |
Code distributed by Google as part of the polymer project is also |
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt |
--> |
-<link rel="import" href="../driver.html"> |
+<link rel="import" href="routing.html"> |
<script> |
(function(scope) { |
var MoreRouting = scope.MoreRouting = scope.MoreRouting || {}; |
-MoreRouting.MockDriver = MockDriver; |
-/** A mock driver for use in your tests. */ |
-function MockDriver() { |
- MoreRouting.Driver.apply(this, arguments); |
-} |
-MockDriver.prototype = Object.create(MoreRouting.Driver.prototype); |
+/** |
+ * Helper functions to spruce up your templates. |
+ * |
+ * @behavior |
+ */ |
+MoreRouting.TemplateHelpers = { |
+ |
+ urlFor: function(pathOrName, params) { |
+ return MoreRouting.urlFor(pathOrName, params); |
+ }, |
+ |
+ isCurrentUrl: function(pathOrName, params) { |
+ return MoreRouting.isCurrentUrl(pathOrName, params); |
+ }, |
-MockDriver.prototype.navigateToUrl = function navigateToUrl(url) { |
- this.setCurrentPath(url); |
}; |
})(window); |