From 7da9a38fcdc9357d1ea959b16358d530342ce71d Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Fri, 12 Feb 2016 19:16:17 -0800 Subject: [PATCH] fix lint errors --- test/unit/styling-cross-scope-var.html | 2 +- test/unit/styling-remote.html | 2 +- test/unit/styling-scoped.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; }