Jacek Caban (@jacek) commented about dlls/mshtml/tests/documentmode.js:
if(expect_computedStyle)
ok(prop in computedStyle, prop + " not found in computedStyle object.");
else
ok(!(prop in computedStyle), prop + " found in computedStyle object.");
- var r, style = document.body.style, currentStyle = document.body.currentStyle, computedStyle = window.getComputedStyle ? window.getComputedStyle(document.body) : undefined;
- function test_exposed(prop, expect_style, expect_currentStyle, expect_computedStyle, own_prop) {
if(own_prop === undefined)
own_prop = (v < 9);
function test(prop, obj, expect, name) {
if(!expect)
ok(!(prop in obj), prop + " found in " + name + " object.");
else {
ok(prop in obj, prop + " not found in " + name + " object.");
if(own_prop) {
ok(Object.prototype.hasOwnProperty.call(obj, prop), prop + " not prop of " + name + " object.");
`obj.hasOwnProperty`