Debian Codegraph @

rhino/testsrc/tests/ecma_3/Unicode/uc-002.js

raw symbols SCIP
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 var gTestfile = 'uc-002.js';
8
9 test();
10
11 function test()
12 {
13 enterFunc ("test");
14
15 printStatus ("Unicode non-breaking space character test.");
16 printBugNumber (23613);
17
18 reportCompare ("no error", eval("'no'\u00A0+ ' error'"),
19 "Unicode non-breaking space character test.");
20
21 var str = "\u00A0foo";
22 reportCompare (0, str.search(/^\sfoo$/),
23 "Unicode non-breaking space character regexp test.");
24
25 exitFunc ("test");
26 }