JavaScript Test Library - Regression test for bug 304376. Remove incorrect check for constructor name
git-svn-id: svn://10.0.0.236/trunk@198312 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
6a87224490
commit
3e7ef27095
@ -43,16 +43,23 @@ var expect = '';
|
||||
printBugNumber (bug);
|
||||
printStatus (summary);
|
||||
|
||||
expect = 'String';
|
||||
expect = 'TypeError';
|
||||
|
||||
var saveString = String;
|
||||
|
||||
String = Array;
|
||||
|
||||
actual = (new String()).constructor.name;
|
||||
|
||||
// see if we can crash...
|
||||
"".join();
|
||||
try
|
||||
{
|
||||
// see if we can crash...
|
||||
"".join();
|
||||
actual = 'No Error';
|
||||
}
|
||||
catch(ex)
|
||||
{
|
||||
actual = ex.name;
|
||||
printStatus(ex + '');
|
||||
}
|
||||
|
||||
String = saveString;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user