diff options
| -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(){ |
