| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
gTestfile = 'regress-327697.js'; |
| 8 |
|
| 9 |
var summary = "Make XPConnect refuse to wrap e4x"; |
| 10 |
var BUGNUMBER = 327697; |
| 11 |
var actual = 'No Hang'; |
| 12 |
var expect = 'No Hang'; |
| 13 |
|
| 14 |
printBugNumber(BUGNUMBER); |
| 15 |
START(summary); |
| 16 |
printStatus('This test runs in the browser only'); |
| 17 |
|
| 18 |
function init() |
| 19 |
{ |
| 20 |
try |
| 21 |
{ |
| 22 |
var sel = document.getElementsByTagName("select")[0]; |
| 23 |
sel.add(document.createElement('foo'), <bar/>); |
| 24 |
} |
| 25 |
catch(ex) |
| 26 |
{ |
| 27 |
printStatus(ex + ''); |
| 28 |
} |
| 29 |
TEST(1, expect, actual); |
| 30 |
END(); |
| 31 |
gDelayTestDriverEnd = false; |
| 32 |
jsTestDriverEnd(); |
| 33 |
} |
| 34 |
|
| 35 |
if (typeof window != 'undefined') |
| 36 |
{ |
| 37 |
|
| 38 |
gDelayTestDriverEnd = true; |
| 39 |
|
| 40 |
document.write('<select></select>'); |
| 41 |
window.addEventListener("load", init, false); |
| 42 |
} |
| 43 |
else |
| 44 |
{ |
| 45 |
TEST(1, expect, actual); |
| 46 |
END(); |
| 47 |
} |
| 48 |
|