From 1a585ae90f9ea2a1a30ee73880c222674e21c188 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 17 Apr 2011 22:22:30 -0400 Subject: Style --- test/js/tests.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/js/tests.js') diff --git a/test/js/tests.js b/test/js/tests.js index b468b38d..3c04e075 100644 --- a/test/js/tests.js +++ b/test/js/tests.js @@ -1,4 +1,5 @@ // Tests of coverage.py HTML report chunk navigation. +/* global: coverage, test, module, equals, jQuery, $ */ // Test helpers @@ -10,9 +11,10 @@ function selection_is(sel) { } function build_fixture(spec) { + var i, data; $("#fixture-template").tmpl().appendTo("#qunit-fixture"); - for (var i = 0; i < spec.length; i++) { - var data = {number: i+1, klass: spec.substr(i, 1)}; + for (i = 0; i < spec.length; i++) { + data = {number: i+1, klass: spec.substr(i, 1)}; $("#lineno-template").tmpl(data).appendTo("#qunit-fixture .linenos"); $("#text-template").tmpl(data).appendTo("#qunit-fixture .text"); } -- cgit v1.2.1