diff options
| author | Igor Minar | 2011-02-15 01:12:45 -0500 |
|---|---|---|
| committer | Igor Minar | 2011-02-15 11:01:53 -0500 |
| commit | 1777110958f76ee4be5760e36c96702223385918 (patch) | |
| tree | 5aa03b246507e66877e5eac69e58e004e244d7a5 /test/widgetsSpec.js | |
| parent | d2089a16335276eecb8d81eb17332c2dff2cf1a2 (diff) | |
| download | angular.js-1777110958f76ee4be5760e36c96702223385918.tar.bz2 | |
split up services into individual files
- split up services into files under src/service
- split up specs into files under test/service
- rewrite all specs so that they don't depend on one global forEach
- get rid of obsolete code and tests in ng:switch
- rename mock $log spec from "$log" to "$log mock"
Diffstat (limited to 'test/widgetsSpec.js')
| -rw-r--r-- | test/widgetsSpec.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js index 12fe7b64..9aa3b95d 100644 --- a/test/widgetsSpec.js +++ b/test/widgetsSpec.js @@ -601,23 +601,8 @@ describe("widget", function(){ expect(element.text()).toEqual('one'); }); - it("should match urls", function(){ - var scope = angular.compile('<ng:switch on="url" using="route:params"><div ng:switch-when="/Book/:name">{{params.name}}</div></ng:switch>'); - scope.url = '/Book/Moby'; - scope.$init(); - expect(scope.$element.text()).toEqual('Moby'); - dealoc(scope); - }); - - it("should match sandwich ids", function(){ - var scope = {}; - var match = angular.widget('NG:SWITCH').route.call(scope, '/a/123/b', '/a/:id'); - expect(match).toBeFalsy(); - }); - it('should call change on switch', function(){ var scope = angular.compile('<ng:switch on="url" change="name=\'works\'"><div ng:switch-when="a">{{name}}</div></ng:switch>'); - var cleared = false; scope.url = 'a'; scope.$init(); expect(scope.name).toEqual(undefined); |
