diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/String/prototype/trim/u180e.js')
-rw-r--r-- | js/src/tests/test262/built-ins/String/prototype/trim/u180e.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/String/prototype/trim/u180e.js b/js/src/tests/test262/built-ins/String/prototype/trim/u180e.js new file mode 100644 index 0000000000..8b26b5cbbd --- /dev/null +++ b/js/src/tests/test262/built-ins/String/prototype/trim/u180e.js @@ -0,0 +1,20 @@ +// Copyright (C) 2016 Mathias Bynens. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-white-space +description: > + U+180E is no longer a Unicode `Space_Separator` symbol as of Unicode v6.3.0. +info: | + String.prototype.trim ( ) + + 3. [...] The definition of white space is the union of |WhiteSpace| and + |LineTerminator|. +features: [u180e] +---*/ + +assert.sameValue("_\u180E".trim(), "_\u180E"); +assert.sameValue("\u180E".trim(), "\u180E"); +assert.sameValue("\u180E_".trim(), "\u180E_"); + +reportCompare(0, 0); |