Debian Codegraph @

js/src/tests/non262/RegExp/regexp-space-character-class.js

raw
1 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 var gTestfile = 'regexp-space-character-class.js';
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 514808;
9 var summary = 'Correct space character class in regexes';
10
11
12 //-----------------------------------------------------------------------------
13 test();
14 //-----------------------------------------------------------------------------
15
16 function test()
17 {
18 printBugNumber(BUGNUMBER);
19 printStatus (summary);
20
21 // NOTE: White space and line terminators are now tested in
22 // non262/RegExp/character-class-escape-s.js.
23
24 var non_space_chars = [ "\u200b", "\u200c", "\u200d" ];
25
26 reportCompare(non_space_chars.some(function(ch){ return /\s/.test(ch); }), false, summary);
27 }