зеркало из https://github.com/mozilla/pjs.git
Don't print out control characters that break the driver.
This commit is contained in:
Родитель
079455f8ab
Коммит
9a8c3dfaeb
|
@ -60,13 +60,16 @@ function getTestCases() {
|
|||
var u = new Unicode(i);
|
||||
TEST_STRING += String.fromCharCode(i);
|
||||
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,
|
||||
"new String( "+ TEST_STRING +" ).toUpperCase()",
|
||||
EXPECT_STRING,
|
||||
(new String( TEST_STRING )).toUpperCase() );
|
||||
|
||||
"isEqual",
|
||||
true,
|
||||
isEqual);
|
||||
return array;
|
||||
}
|
||||
function test() {
|
||||
|
@ -509,4 +512,5 @@ function DecimalToHexString( n ) {
|
|||
}
|
||||
|
||||
return h;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче