diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/AngularSpec.js | 3 | ||||
| -rw-r--r-- | test/testabilityPatch.js | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/test/AngularSpec.js b/test/AngularSpec.js index 444b9448..b58705cc 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -454,9 +454,8 @@ describe('angular', function(){ return this.childNodes[1]; }; - angularInit({autobind: 'child'}, dom); - delete dom.getElementById; //make IE and sortedHtml happy + angularInit({autobind: 'child'}, dom); expect(sortedHtml(dom)).toEqual('<div foo="{{1+2}}">{{2+3}}' + '<div bar="7" id="child" ng:bind-attr="{"bar":"{{3+4}}"}">'+ diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index 0cc85a8c..5bcee3fe 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -215,7 +215,7 @@ function sortedHtml(element, showNgClass) { attr.name !='style' && attr.name.substr(0, 6) != 'jQuery') { // in IE we need to check for all of these. - if (!/ng-\d+/.exec(attr.name)) + if (!/ng-\d+/.exec(attr.name) && attr.name != 'getElementById') attrs.push(' ' + attr.name + '="' + attr.value + '"'); } } |
