diff options
| author | Misko Hevery | 2010-03-31 13:57:25 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-03-31 13:57:25 -0700 |
| commit | 35a91085004e31f786df1e0011bc26ed0142ab4d (patch) | |
| tree | 030289973e8ae5a88e86fc77d878dde40b72ddc5 /test/markupSpec.js | |
| parent | b5b8f63e1ebc75d09c6faf8dbad6497880deed47 (diff) | |
| download | angular.js-35a91085004e31f786df1e0011bc26ed0142ab4d.tar.bz2 | |
all tests green, some dissabled
Diffstat (limited to 'test/markupSpec.js')
| -rw-r--r-- | test/markupSpec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/markupSpec.js b/test/markupSpec.js index 2ddefe47..e416b8ea 100644 --- a/test/markupSpec.js +++ b/test/markupSpec.js @@ -20,18 +20,18 @@ describe("markups", function(){ it('should translate {{}} in text', function(){ compile('<div>hello {{name}}!</div>'); - expect(element.html()).toEqual('hello <span ng-bind="name"></span>!'); + expect(sortedHtml(element)).toEqual('<div>hello <span ng-bind="name"></span>!</div>'); scope.$set('name', 'Misko'); scope.$eval(); - expect(element.html()).toEqual('hello <span ng-bind="name">Misko</span>!'); + expect(sortedHtml(element)).toEqual('<div>hello <span ng-bind="name">Misko</span>!</div>'); }); it('should translate {{}} in terminal nodes', function(){ compile('<select name="x"><option value="">Greet {{name}}!</option></select>'); - expect(element.html()).toEqual('<option ng-bind-template="Greet {{name}}!" value="">Greet !</option>'); + expect(sortedHtml(element)).toEqual('<select name="x"><option ng-bind-template="Greet {{name}}!">Greet !</option></select>'); scope.$set('name', 'Misko'); scope.$eval(); - expect(element.html()).toEqual('<option ng-bind-template="Greet {{name}}!" value="">Greet Misko!</option>'); + expect(sortedHtml(element)).toEqual('<select name="x"><option ng-bind-template="Greet {{name}}!">Greet Misko!</option></select>'); }); it('should translate {{}} in attributes', function(){ |
