5 May
2025
5 May
'25
4:45 p.m.
Jacek Caban (@jacek) commented about dlls/mshtml/tests/documentmode.js:
window.toString.call(null); ok(false, "expected exception calling window.toString with null context"); }catch(ex) {} + + ok(!Object.hasOwnProperty.call(f, "arguments"), "arguments is a prop of createElement"); + ok(!Object.hasOwnProperty.call(f, "caller"), "caller is a prop of createElement"); + ok(!Object.hasOwnProperty.call(f, "length"), "length is a prop of createElement");
We already test "arguments" and "length" a few lines above using "in" expression. For the negative tests like this, "in" expressions are stronger tests. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7970#note_102575