OLD | NEW |
1 | |
2 (function(scope) { | 1 (function(scope) { |
3 var MoreRouting = scope.MoreRouting = scope.MoreRouting || {}; | 2 var MoreRouting = scope.MoreRouting = scope.MoreRouting || {}; |
4 MoreRouting.MockDriver = MockDriver; | 3 MoreRouting.MockDriver = MockDriver; |
5 | 4 |
6 /** A mock driver for use in your tests. */ | 5 /** A mock driver for use in your tests. */ |
7 function MockDriver() { | 6 function MockDriver() { |
8 MoreRouting.Driver.apply(this, arguments); | 7 MoreRouting.Driver.apply(this, arguments); |
9 } | 8 } |
10 MockDriver.prototype = Object.create(MoreRouting.Driver.prototype); | 9 MockDriver.prototype = Object.create(MoreRouting.Driver.prototype); |
11 | 10 |
12 MockDriver.prototype.navigateToUrl = function navigateToUrl(url) { | 11 MockDriver.prototype.navigateToUrl = function navigateToUrl(url) { |
13 this.setCurrentPath(url); | 12 this.setCurrentPath(url); |
14 }; | 13 }; |
15 | 14 |
16 })(window); | 15 })(window); |
OLD | NEW |