OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
_backup
/
tinymce
/
tinymce
/
src
/
core
/
test
/
ts
/
atomic
/
text
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/20/2020 06:12:33 AM
rwxr-xr-x
📄
BidiTest.ts
741 bytes
02/20/2020 06:12:31 AM
rw-r--r--
📄
ExtendingCharTest.ts
705 bytes
02/20/2020 06:12:31 AM
rw-r--r--
📄
ZwspTest.ts
779 bytes
02/20/2020 06:12:32 AM
rw-r--r--
Editing: BidiTest.ts
Close
import { Assertions, Pipeline, Step } from '@ephox/agar'; import * as Bidi from 'tinymce/core/text/Bidi'; import { UnitTest } from '@ephox/bedrock'; UnitTest.asynctest('atomic.tinymce.core.text.BidiTest', function () { const success = arguments[arguments.length - 2]; const failure = arguments[arguments.length - 1]; const sTestHasStrongRtl = Step.sync(function () { Assertions.assertEq('Hebrew is strong rtl', true, Bidi.hasStrongRtl('\u05D4\u05E7\u05D3\u05E9')); Assertions.assertEq('Abc is not strong rtl', false, Bidi.hasStrongRtl('abc')); Assertions.assertEq('Dots are neutral', false, Bidi.hasStrongRtl('.')); }); Pipeline.async({}, [ sTestHasStrongRtl ], function () { success(); }, failure); });