summaryrefslogtreecommitdiff
path: root/tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js')
-rw-r--r--tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js b/tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js
index e8c51214..a1b2e5c3 100644
--- a/tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js
+++ b/tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js
@@ -11,7 +11,7 @@
function findDivergenceIndex( a, b ) {
var i = 0;
- while ( i < a.length && i < b.length && a[i] === b[i] ) {
+ while ( i < a.length && i < b.length && a[ i ] === b[ i ] ) {
i++;
}
return i;
@@ -41,7 +41,7 @@
// Add two characters using scary black magic
spanText = $span.text();
d = findDivergenceIndex( origText, spanText );
- spanTextNew = spanText.slice( 0, d ) + origText[d] + origText[d] + '...';
+ spanTextNew = spanText.slice( 0, d ) + origText[ d ] + origText[ d ] + '...';
assert.gt( spanTextNew.length, spanText.length, 'Verify that the new span-length is indeed greater' );