dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add tests for WikiMap and WikiReference"
[lhc/web/wiklou.git]
/
tests
/
qunit
/
suites
/
resources
/
jquery
/
jquery.autoEllipsis.test.js
diff --git
a/tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js
b/tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js
index
1005316
..
a1b2e5c
100644
(file)
--- 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;
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;
i++;
}
return i;
@@
-41,7
+41,7
@@
// Add two characters using scary black magic
spanText = $span.text();
d = findDivergenceIndex( origText, spanText );
// Add two characters using scary black magic
spanText = $span.text();
d = findDivergenceIndex( origText, spanText );
- spanTextNew = spanText.s
ubstr( 0, d ) + origText[d] + origText[d
] + '...';
+ spanTextNew = spanText.s
lice( 0, d ) + origText[ d ] + origText[ d
] + '...';
assert.gt( spanTextNew.length, spanText.length, 'Verify that the new span-length is indeed greater' );
assert.gt( spanTextNew.length, spanText.length, 'Verify that the new span-length is indeed greater' );