mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-07 22:37:28 +08:00
fix e2e runner tests
This commit is contained in:
@@ -132,10 +132,16 @@ describe("angular.scenario.dsl", function() {
|
||||
};
|
||||
$window.angular.scope = function() {
|
||||
return {
|
||||
$location: {
|
||||
hashSearch: {x: 2},
|
||||
hashPath: '/bar',
|
||||
search: {foo: 10}
|
||||
$service: function(serviceId) {
|
||||
if (serviceId == '$location') {
|
||||
return {
|
||||
hashSearch: {x: 2},
|
||||
hashPath: '/bar',
|
||||
search: {foo: 10}
|
||||
}
|
||||
} else {
|
||||
throw new Error('unknown service id ' + serviceId);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user