diff --git a/test/unit/styling-cross-scope-var.html b/test/unit/styling-cross-scope-var.html index 6c06e3c761..f4b8b5062a 100644 --- a/test/unit/styling-cross-scope-var.html +++ b/test/unit/styling-cross-scope-var.html @@ -603,7 +603,7 @@ suite('scoped-styling-var', function() { function assertComputed(element, value, pseudo, name) { - var name = name || 'border-top-width'; + name = name || 'border-top-width'; var computed = element.getComputedStyleValue && !pseudo ? element.getComputedStyleValue(name) : getComputedStyle(element, pseudo)[name]; diff --git a/test/unit/styling-remote.html b/test/unit/styling-remote.html index 80eb3ed13a..d3ec1c1ac4 100644 --- a/test/unit/styling-remote.html +++ b/test/unit/styling-remote.html @@ -203,7 +203,7 @@ return reg.is; }); function regIndex(styleScope) { - for (var i=0; (r=regList[i]); i++) { + for (var i=0, r; (r=regList[i]); i++) { if (styleScope.match(new RegExp(r + '\\-?\\d*$'))) { return i; } diff --git a/test/unit/styling-scoped.html b/test/unit/styling-scoped.html index f82a0a5898..5aaa7328fd 100644 --- a/test/unit/styling-scoped.html +++ b/test/unit/styling-scoped.html @@ -265,7 +265,7 @@ return reg.is; }); function regIndex(styleScope) { - for (var i=0; (r=regList[i]); i++) { + for (var i=0, r; (r=regList[i]); i++) { if (styleScope.match(new RegExp(r + '\\-?\\d*$'))) { return i; }