(window: Window & typeof globalThis, options: InjectedScriptOptions)
| 127 | private _allHitTargetInterceptorEvents: Set<string>; |
| 128 | |
| 129 | constructor(window: Window & typeof globalThis, options: InjectedScriptOptions) { |
| 130 | this.window = window; |
| 131 | this.document = window.document; |
| 132 | this.isUnderTest = options.isUnderTest; |
| 133 | // Make sure builtins are created from "window". This is important for InjectedScript instantiated |
| 134 | // inside a trace viewer snapshot, where "window" differs from "globalThis". |
| 135 | this.utils.builtins = new UtilityScript(window, options.isUnderTest).builtins; |
| 136 | this._sdkLanguage = options.sdkLanguage; |
| 137 | this._testIdAttributeNameForStrictErrorAndConsoleCodegen = options.testIdAttributeName; |
| 138 | this._evaluator = new SelectorEvaluatorImpl(); |
| 139 | this.consoleApi = new ConsoleAPI(this); |
| 140 | |
| 141 | this.onGlobalListenersRemoved = new Set(); |
| 142 | this._autoClosingTags = new Set(['AREA', 'BASE', 'BR', 'COL', 'COMMAND', 'EMBED', 'HR', 'IMG', 'INPUT', 'KEYGEN', 'LINK', 'MENUITEM', 'META', 'PARAM', 'SOURCE', 'TRACK', 'WBR']); |
| 143 | this._booleanAttributes = new Set(['checked', 'selected', 'disabled', 'readonly', 'multiple']); |
| 144 | this._eventTypes = new Map([ |
| 145 | ['auxclick', 'mouse'], |
| 146 | ['click', 'mouse'], |
| 147 | ['dblclick', 'mouse'], |
| 148 | ['mousedown', 'mouse'], |
| 149 | ['mouseeenter', 'mouse'], |
| 150 | ['mouseleave', 'mouse'], |
| 151 | ['mousemove', 'mouse'], |
| 152 | ['mouseout', 'mouse'], |
| 153 | ['mouseover', 'mouse'], |
| 154 | ['mouseup', 'mouse'], |
| 155 | ['mouseleave', 'mouse'], |
| 156 | ['mousewheel', 'mouse'], |
| 157 | |
| 158 | ['keydown', 'keyboard'], |
| 159 | ['keyup', 'keyboard'], |
| 160 | ['keypress', 'keyboard'], |
| 161 | ['textInput', 'keyboard'], |
| 162 | |
| 163 | ['touchstart', 'touch'], |
| 164 | ['touchmove', 'touch'], |
| 165 | ['touchend', 'touch'], |
| 166 | ['touchcancel', 'touch'], |
| 167 | |
| 168 | ['pointerover', 'pointer'], |
| 169 | ['pointerout', 'pointer'], |
| 170 | ['pointerenter', 'pointer'], |
| 171 | ['pointerleave', 'pointer'], |
| 172 | ['pointerdown', 'pointer'], |
| 173 | ['pointerup', 'pointer'], |
| 174 | ['pointermove', 'pointer'], |
| 175 | ['pointercancel', 'pointer'], |
| 176 | ['gotpointercapture', 'pointer'], |
| 177 | ['lostpointercapture', 'pointer'], |
| 178 | |
| 179 | ['focus', 'focus'], |
| 180 | ['blur', 'focus'], |
| 181 | |
| 182 | ['drag', 'drag'], |
| 183 | ['dragstart', 'drag'], |
| 184 | ['dragend', 'drag'], |
| 185 | ['dragover', 'drag'], |
| 186 | ['dragenter', 'drag'], |
nothing calls this directly
no test coverage detected