JavaScript Tests - remove unneeded image foo from test, bug 324650

This commit is contained in:
bclary%bclary.com 2008-03-26 20:21:25 +00:00
Родитель eab558fff8
Коммит b88ca618c8
1 изменённых файлов: 2 добавлений и 45 удалений

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

@ -40,25 +40,12 @@ var gTestfile = 'regress-324650.js';
//-----------------------------------------------------------------------------
var BUGNUMBER = 324650;
var summary = 'Switch Statement with many cases';
var actual = '';
var expect = '';
var actual = 'No Hang';
var expect = 'No Hang';
printBugNumber(BUGNUMBER);
printStatus (summary);
if (typeof document != 'undefined')
{
document.images[0] = new Image();
}
else
{
document = {images: [{src: ''}]};
}
var evil = 2;
if (document.cookie) {
evil = "ze";
}
var notevil = "z1";
var notevil2 = "z2";
var notevil3 = "z3";
@ -5471,34 +5458,4 @@ default:
break;
}
var url = "http://deathstar/01.jpg?normal=" + dut;
document.images[0].src = url;
/* if with evil val */
if (document.cookie) {
switch ( notevil2 ) {
case "z2": dut2 = 2;
break;
default:
dut2 = 3;
break;
}
}
var url2 = "http://deathstar/01.jpg?if=" + dut2;
document.images[0].src = url2;
/* normal usage */
switch ( evil ) {
case "ze": dut3 = 2;
break;
default:
dut3 = 3;
break;
}
var url3 = "http://deathstar/01.jpg?isevil=" + dut3;
document.images[0].src = url3;
reportCompare(expect, actual, summary);