diff options
| author | Misko Hevery | 2010-07-02 15:39:47 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-07-02 15:39:57 -0700 | 
| commit | 1f0562150921ea2f05149b64ef0440937491def9 (patch) | |
| tree | 20c1c2c69038a7d02d720b811453df6438d274a5 /test/widgetsSpec.js | |
| parent | 105e9443c4170870dd34f69073a6eafaabeaf567 (diff) | |
| download | angular.js-1f0562150921ea2f05149b64ef0440937491def9.tar.bz2 | |
change all attributes from ng- to ng: prefix
Diffstat (limited to 'test/widgetsSpec.js')
| -rw-r--r-- | test/widgetsSpec.js | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js index a053090e..158b24a8 100644 --- a/test/widgetsSpec.js +++ b/test/widgetsSpec.js @@ -22,7 +22,7 @@ describe("widget", function(){      describe("text", function(){        it('should input-text auto init and handle keyup/change events', function(){ -        compile('<input type="Text" name="name" value="Misko" ng-change="count = count + 1" ng-init="count=0"/>'); +        compile('<input type="Text" name="name" value="Misko" ng-change="count = count + 1" ng:init="count=0"/>');          expect(scope.$get('name')).toEqual("Misko");          expect(scope.$get('count')).toEqual(0); @@ -382,7 +382,7 @@ describe("widget", function(){    describe('ng:switch', function(){      it('should switch on value change', function(){ -      compile('<ng:switch on="select"><div ng-switch-when="1">first:{{name}}</div><div ng-switch-when="2">second:{{name}}</div></ng:switch>'); +      compile('<ng:switch on="select"><div ng:switch-when="1">first:{{name}}</div><div ng:switch-when="2">second:{{name}}</div></ng:switch>');        expect(element.html()).toEqual('');        scope.select = 1;        scope.$eval(); @@ -399,7 +399,7 @@ describe("widget", function(){      });      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>'); +      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'); @@ -412,7 +412,7 @@ describe("widget", function(){      });      it('should call init on switch', function(){ -      var scope = angular.compile('<ng:switch on="url" change="name=\'works\'"><div ng-switch-when="a">{{name}}</div></ng:switch>'); +      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.$invalidWidgets = {clearOrphans: function(){  | 
