Esanders has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/132382

Change subject: unicodejs: Add tests for hebrew letters in moveBreakOffset
......................................................................

unicodejs: Add tests for hebrew letters in moveBreakOffset

Follow up to I3a99c7c54

Change-Id: I3e62691b5c654ecbe57a34f85f548961e69aab9a
---
M modules/unicodejs/test/unicodejs.wordbreak.test.js
1 file changed, 15 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor 
refs/changes/82/132382/1

diff --git a/modules/unicodejs/test/unicodejs.wordbreak.test.js 
b/modules/unicodejs/test/unicodejs.wordbreak.test.js
index 28a801a..92a07ba 100644
--- a/modules/unicodejs/test/unicodejs.wordbreak.test.js
+++ b/modules/unicodejs/test/unicodejs.wordbreak.test.js
@@ -78,10 +78,22 @@
 
 QUnit.test( 'nextBreakOffset/prevBreakOffset (ignore whitespace)', function ( 
assert ) {
        var i, offset = 0,
-               text = '   The quick  brown ..fox jumps... 3.14159 すどくスドク   ',
+               text =
+                       // 0
+                       '   The qui' +
+                       // 10
+                       'ck  brown ' +
+                       // 20
+                       '..fox jump' +
+                       // 30
+                       's... 3.141' +
+                       // 40
+                       '59 すどくスドク ' +
+                       // 50
+                       'עברית  ',
                textString = new unicodeJS.TextString( text ),
-               nextBreaks = [ 6, 12, 19, 25, 31, 42, 49, 52 ],
-               prevBreaks = [ 46, 35, 26, 22, 14, 7, 3, 0 ];
+               nextBreaks = [ 6, 12, 19, 25, 31, 42, 49, 55, 57 ],
+               prevBreaks = [ 50, 46, 35, 26, 22, 14, 7, 3, 0 ];
 
        QUnit.expect( nextBreaks.length + prevBreaks.length + 6 );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/132382
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3e62691b5c654ecbe57a34f85f548961e69aab9a
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <esand...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to