Jacek Caban (@jacek) commented about dlls/mshtml/tests/documentmode.js:
ok(form[0] === "test", "form[0] = " + form[0]);
});
+function test_own_props(obj, name, props, todos, flaky) {
- var v = document.documentMode, prop, expected = {}, enumerated = Object.getOwnPropertyNames(obj).sort();
- if(flaky) {
for(i = 0; i < flaky.length; i++)
expected[flaky[i]] = 1;
enumerated = enumerated.filter(function(p) { return !expected.hasOwnProperty(p); });
You could simplify it by using something like `flaky.indexOf(p) == -1` as a condition instead.