зеркало из 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);
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче