fix e2e runner tests

This commit is contained in:
Igor Minar 2011-04-08 10:16:56 -07:00
parent 1d7adac7a5
commit 8e6ecd98ae

View file

@ -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);
}
}
};
};