Jacek Caban (@jacek) commented about dlls/mshtml/tests/documentmode.js:
found = true; } ok(found, "testname was not enumerated in document");
- try {
document.testname();
- }catch(e) {
ok(e.number === 0xa01b6 - 0x80000000, "document.testname() threw = " + e.number);
- }
It would be better to make sure that the exception is thrown. This test will succeed if no exception is thrown at all (it's similar in other cases).