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

Unified Diff: third_party/polymer/v0_8/components/more-routing/more-route-template-helpers.html

Issue 1140393002: Update more-routing for md-settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/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);

Powered by Google App Engine
This is Rietveld 408576698