diff options
| author | Igor Minar | 2011-04-08 10:16:56 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-04-08 10:16:56 -0700 | 
| commit | 8e6ecd98ae5ef24a7398aee19c006b9dda5385ff (patch) | |
| tree | f96d85fd76a3433b893e7d22b521188b63c9322a /test | |
| parent | 1d7adac7a5546603fd42c1e581c696cb88324b8f (diff) | |
| download | angular.js-8e6ecd98ae5ef24a7398aee19c006b9dda5385ff.tar.bz2 | |
fix e2e runner tests
Diffstat (limited to 'test')
| -rw-r--r-- | test/scenario/dslSpec.js | 14 | 
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); +              }              }            };          };  | 
