aboutsummaryrefslogtreecommitdiffstats
path: root/test/markupSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-03-31 13:57:25 -0700
committerMisko Hevery2010-03-31 13:57:25 -0700
commit35a91085004e31f786df1e0011bc26ed0142ab4d (patch)
tree030289973e8ae5a88e86fc77d878dde40b72ddc5 /test/markupSpec.js
parentb5b8f63e1ebc75d09c6faf8dbad6497880deed47 (diff)
downloadangular.js-35a91085004e31f786df1e0011bc26ed0142ab4d.tar.bz2
all tests green, some dissabled
Diffstat (limited to 'test/markupSpec.js')
-rw-r--r--test/markupSpec.js8
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(){