diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2017-08-17 20:37:46 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-03-12 14:59:13 +0100 |
commit | 70a4d7e010785cf1857510aed711282b25f0c659 (patch) | |
tree | 9676e643f7a9e474462abc426f9589ff767f80c2 /js/src/tests/ecma_6 | |
parent | b392e6d2ea60191615771900690b37b52b47bcd3 (diff) | |
download | UXP-70a4d7e010785cf1857510aed711282b25f0c659.tar UXP-70a4d7e010785cf1857510aed711282b25f0c659.tar.gz UXP-70a4d7e010785cf1857510aed711282b25f0c659.tar.lz UXP-70a4d7e010785cf1857510aed711282b25f0c659.tar.xz UXP-70a4d7e010785cf1857510aed711282b25f0c659.zip |
JS - RegExp - match updated spec for `/\b/iu` and `/\B/iu`
Diffstat (limited to 'js/src/tests/ecma_6')
-rw-r--r-- | js/src/tests/ecma_6/RegExp/unicode-ignoreCase-word-boundary.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/js/src/tests/ecma_6/RegExp/unicode-ignoreCase-word-boundary.js b/js/src/tests/ecma_6/RegExp/unicode-ignoreCase-word-boundary.js new file mode 100644 index 000000000..c1a04bd3d --- /dev/null +++ b/js/src/tests/ecma_6/RegExp/unicode-ignoreCase-word-boundary.js @@ -0,0 +1,25 @@ +var BUGNUMBER = 1338373; +var summary = "Word boundary should match U+017F and U+212A in unicode+ignoreCase."; + +assertEq(/\b/iu.test('\u017F'), true); +assertEq(/\b/i.test('\u017F'), false); +assertEq(/\b/u.test('\u017F'), false); +assertEq(/\b/.test('\u017F'), false); + +assertEq(/\b/iu.test('\u212A'), true); +assertEq(/\b/i.test('\u212A'), false); +assertEq(/\b/u.test('\u212A'), false); +assertEq(/\b/.test('\u212A'), false); + +assertEq(/\B/iu.test('\u017F'), false); +assertEq(/\B/i.test('\u017F'), true); +assertEq(/\B/u.test('\u017F'), true); +assertEq(/\B/.test('\u017F'), true); + +assertEq(/\B/iu.test('\u212A'), false); +assertEq(/\B/i.test('\u212A'), true); +assertEq(/\B/u.test('\u212A'), true); +assertEq(/\B/.test('\u212A'), true); + +if (typeof reportCompare === "function") + reportCompare(true, true); |