Don't print out control characters that break the driver.

This commit is contained in:
norris%netscape.com 1999-10-22 17:31:59 +00:00
Родитель 079455f8ab
Коммит 9a8c3dfaeb
1 изменённых файлов: 10 добавлений и 6 удалений

Просмотреть файл

@ -60,13 +60,16 @@ function getTestCases() {
var u = new Unicode(i); var u = new Unicode(i);
TEST_STRING += String.fromCharCode(i); TEST_STRING += String.fromCharCode(i);
EXPECT_STRING += String.fromCharCode( u.upper ); EXPECT_STRING += String.fromCharCode( u.upper );
} }
// don't print out the value of the strings since they contain control
// characters that break the driver
var isEqual = EXPECT_STRING == (new String( TEST_STRING )).toUpperCase();
array[item++] = new TestCase( SECTION, array[item++] = new TestCase( SECTION,
"new String( "+ TEST_STRING +" ).toUpperCase()", "isEqual",
EXPECT_STRING, true,
(new String( TEST_STRING )).toUpperCase() ); isEqual);
return array; return array;
} }
function test() { function test() {
@ -509,4 +512,5 @@ function DecimalToHexString( n ) {
} }
return h; return h;
} }