Jacek Caban (@jacek) commented about dlls/mshtml/tests/documentmode.js:
["DOCUMENT_NODE",true], ["DOCUMENT_POSITION_CONTAINED_BY",true], ["DOCUMENT_POSITION_CONTAINS",true],["DOCUMENT_POSITION_DISCONNECTED",true], ["DOCUMENT_POSITION_FOLLOWING",true],["DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC",true], ["DOCUMENT_POSITION_PRECEDING",true],["DOCUMENT_TYPE_NODE",true], ["ELEMENT_NODE",true], ["ENTITY_NODE",true], ["ENTITY_REFERENCE_NODE",true],["NOTATION_NODE",true], ["PROCESSING_INSTRUCTION_NODE",true], ["TEXT_NODE",true],"addEventListener", "appendChild", "attributes", "childNodes", "cloneNode", "compareDocumentPosition","dispatchEvent", "firstChild", ["hasAttributes",true], "hasChildNodes", "insertBefore", "isDefaultNamespace","isEqualNode", "isSameNode", "isSupported", "lastChild", "localName", "lookupNamespaceURI", "lookupPrefix","namespaceURI", "nextSibling", "nodeName", "nodeType", "nodeValue", ["normalize",true], "ownerDocument","parentNode", "prefix", "previousSibling", "removeChild", "removeEventListener", "replaceChild", "textContent"] ],[ "StorageEvent", [ "initStorageEvent", "key", "newValue", "oldValue", "storageArea", "url" ] ],[ "UIEvent", [ "detail", "initUIEvent", "view" ] ]- ];
- for(i = 0; i < props.length; i++) {
I think that it would be useful to move content of this loop in a helper, something like `test_own_props` will likely be useful for other objects too.