mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
test(jqLite): adapt tests to new expando name
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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' ||
|
||||
|
||||
Reference in New Issue
Block a user