test(jqLite): adapt tests to new expando name

This commit is contained in:
rodyhaddad
2014-06-05 14:14:48 -07:00
parent 1ec6d551bd
commit ee8fae8c0f
2 changed files with 2 additions and 2 deletions

View File

@@ -798,7 +798,7 @@ describe('angular', function() {
expect(function () {
angular.bootstrap(element);
}).toThrowMatching(
/\[ng:btstrpd\] App Already Bootstrapped with this Element '<div class="?ng\-scope"?( ng\-[0-9]+="?[0-9]+"?)?>'/i
/\[ng:btstrpd\] App Already Bootstrapped with this Element '<div class="?ng\-scope"?( ng[0-9]+="?[0-9]+"?)?>'/i
);
dealoc(element);

View File

@@ -167,7 +167,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' ||