summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/String/prototype/trim/u180e.js
blob: 8b26b5cbbdde1033ab6dd3d686a2b3a49202b303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);