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