aboutsummaryrefslogtreecommitdiffstats
path: root/test/scenario/dslSpec.js
diff options
context:
space:
mode:
authorIgor Minar2011-04-08 10:16:56 -0700
committerIgor Minar2011-04-08 10:16:56 -0700
commit8e6ecd98ae5ef24a7398aee19c006b9dda5385ff (patch)
treef96d85fd76a3433b893e7d22b521188b63c9322a /test/scenario/dslSpec.js
parent1d7adac7a5546603fd42c1e581c696cb88324b8f (diff)
downloadangular.js-8e6ecd98ae5ef24a7398aee19c006b9dda5385ff.tar.bz2
fix e2e runner tests
Diffstat (limited to 'test/scenario/dslSpec.js')
-rw-r--r--test/scenario/dslSpec.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/scenario/dslSpec.js b/test/scenario/dslSpec.js
index 71dfde3c..d714dc45 100644
--- a/test/scenario/dslSpec.js
+++ b/test/scenario/dslSpec.js
@@ -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);
+ }
}
};
};