From 2395bf604df5d665a73dce4f143e35bf9493040c Mon Sep 17 00:00:00 2001 From: rodyhaddad Date: Thu, 5 Jun 2014 14:14:48 -0700 Subject: [PATCH] test(jqLite): adapt tests to new expando name --- test/AngularSpec.js | 2 +- test/helpers/testabilityPatch.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/AngularSpec.js b/test/AngularSpec.js index ea720466..2a266820 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -795,7 +795,7 @@ describe('angular', function() { expect(function () { angular.bootstrap(element); }).toThrowMatching( - /\[ng:btstrpd\] App Already Bootstrapped with this Element '
'/i + /\[ng:btstrpd\] App Already Bootstrapped with this Element '
'/i ); dealoc(element); diff --git a/test/helpers/testabilityPatch.js b/test/helpers/testabilityPatch.js index 34b6b78a..ef7fc150 100644 --- a/test/helpers/testabilityPatch.js +++ b/test/helpers/testabilityPatch.js @@ -166,7 +166,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' || // IE7 has `selected` in attributes attr.name == 'selected' ||