diff options
| author | Misko Hevery | 2010-04-21 14:51:39 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-04-21 14:51:39 -0700 | 
| commit | d7416c4c823b9e74d0c725cffb6f333be9432fba (patch) | |
| tree | d9d890785a6ce1a2d54dc7f8a6bfca8a4d43c4d2 /test/markupSpec.js | |
| parent | 8b29156a2ddcc738f9b0cf8dfc48a8648474884d (diff) | |
| download | angular.js-d7416c4c823b9e74d0c725cffb6f333be9432fba.tar.bz2 | |
ie6 and ie8 pass
Diffstat (limited to 'test/markupSpec.js')
| -rw-r--r-- | test/markupSpec.js | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/test/markupSpec.js b/test/markupSpec.js index 5e3b829a..b2d04fcd 100644 --- a/test/markupSpec.js +++ b/test/markupSpec.js @@ -27,11 +27,11 @@ describe("markups", function(){    });    it('should translate {{}} in terminal nodes', function(){ -    compile('<select name="x"><option selected="true" value="">Greet {{name}}!</option></select>'); -    expect(sortedHtml(element)).toEqual('<select name="x"><option ng-bind-template="Greet {{name}}!" selected="true">Greet !</option></select>'); +    compile('<select name="x"><option value="">Greet {{name}}!</option></select>'); +    expect(sortedHtml(element).replace(' selected="true"', '')).toEqual('<select name="x"><option ng-bind-template="Greet {{name}}!">Greet !</option></select>');      scope.$set('name', 'Misko');      scope.$eval(); -    expect(sortedHtml(element)).toEqual('<select name="x"><option ng-bind-template="Greet {{name}}!" selected="true">Greet Misko!</option></select>'); +    expect(sortedHtml(element).replace(' selected="true"', '')).toEqual('<select name="x"><option ng-bind-template="Greet {{name}}!">Greet Misko!</option></select>');    });    it('should translate {{}} in attributes', function(){ @@ -43,8 +43,8 @@ describe("markups", function(){    });    it('should populate value attribute on OPTION', function(){ -    compile('<select name="x"><option selected="true">a</option></select>'); -    expect(sortedHtml(element)).toEqual('<select name="x"><option selected="true" value="a">a</option></select>'); +    compile('<select name="x"><option>a</option></select>'); +    expect(sortedHtml(element).replace(' selected="true"', '')).toEqual('<select name="x"><option value="a">a</option></select>');    });    it('should process all bindings when we have leading space', function(){ | 
