uc-002.js (654B)
1 /* -*- tab-width: 8; indent-tabs-mode: nil; js-indent-level: 4 -*- 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 BUGNUMBER = 23613; 7 8 test(); 9 10 function test() 11 { 12 printStatus ("Unicode non-breaking space character test."); 13 printBugNumber (BUGNUMBER); 14 15 reportCompare ("no error", eval("'no'\u00A0+ ' error'"), 16 "Unicode non-breaking space character test."); 17 18 var str = "\u00A0foo"; 19 reportCompare (0, str.search(/^\sfoo$/), 20 "Unicode non-breaking space character regexp test."); 21 }