goog.testing.messaging.MockMessageEvent
Provided By | |
---|---|
Extends |
Creates a new fake MessageEvent.
new MockMessageEvent( data, opt_origin, opt_lastEventId, opt_source, opt_ports )
Parameters |
|
---|
Instance Methods
this.composedPath() → Array<EventTarget>
Array<EventTarget>
Defined by |
| |
---|---|---|
Parameters | None. | |
Returns |
| |
See Also | https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath |
this.initEvent( eventTypeArg, canBubbleArg, cancelableArg ) → void
void
this.initMouseEvent( typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, relatedTargetArg ) → void
void
Defined by |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
this.preventDefault() → void
void
Defined by | |
---|---|
Overrides |
|
Parameters | None. |
this.stopImmediatePropagation() → void
void
No information.
this.stopPropagation() → void
void
Defined by | |
---|---|
Overrides |
|
Parameters | None. |
Instance Properties
this.Abstract → string
string
No information.
this.Banner → string
string
No information.
this.HORIZONTAL_AXIS → number
number
No information.
this.MoreInfo → string
string
No information.
this.VERTICAL_AXIS → number
number
No information.
this.altKey → boolean
boolean
No information.
this.altLeft → boolean
boolean
No information.
this.axis → number
number
No information.
this.bubbles → boolean
boolean
No information.
this.button → number
number
No information.
this.cancelBubble → boolean
boolean
warning Deprecated | cancelBubble is obsolete and is no-op in modern browsers. Use stopPropagation() instead. |
---|
Defined by |
|
---|
this.cancelable → boolean
boolean
No information.
this.charCode → number
number
No information.
this.clientX → number
number
No information.
this.clientY → number
number
No information.
this.clipboardData → (ClipboardData|null|undefined)
(ClipboardData|null|undefined)
A ClipboardData on IE, but a DataTransfer on WebKit.
Defined by |
|
---|---|
See Also |
this.composed → boolean
boolean
No information.
this.contentOverflow → boolean
boolean
No information.
this.ctrlKey → boolean
boolean
No information.
this.ctrlLeft → boolean
boolean
No information.
this.currentTarget → (EventTarget|null)
(EventTarget|null)
No information.
this.data → *
*
The data of the message.
this.dataFld → string
string
No information.
this.deepPath → (function(): (Array<EventTarget>|null)|undefined)
(function(): (Array<EventTarget>|null)|undefined)
Present for events spawned in browsers that support shadow dom.
Defined by |
|
---|---|
See Also |
this.defaultPrevented → boolean
boolean
No information.
this.domain → ?
?
No information.
this.eventPhase → number
number
No information.
this.explicitOriginalTarget → (EventTarget|null)
(EventTarget|null)
No information.
this.fromElement → (Element|null)
(Element|null)
No information.
this.initKeyEvent → ?
?
No information.
this.initMessageEvent → ?
?
No information.
this.initUIEvent → ?
?
No information.
this.isChar → boolean
boolean
No information.
this.isTrusted → boolean
boolean
No information.
this.keyCode → number
number
No information.
this.lastEventId → (string|null)
(string|null)
The last event ID, for server-sent events.
this.layerX → number
number
No information.
this.layerY → number
number
No information.
this.metaKey → boolean
boolean
No information.
this.namespaceURI → string
string
No information.
this.nextPage → string
string
No information.
this.offsetX → number
number
No information.
this.offsetY → number
number
No information.
this.origin → (string|null)
(string|null)
The origin of the message, for server-sent and cross-document events.
this.originalTarget → (EventTarget|null)
(EventTarget|null)
No information.
this.pageX → number
number
No information.
this.pageY → number
number
No information.
this.path → (Array<Element>|null|undefined)
(Array<Element>|null|undefined)
Present for events spawned in browsers that support shadow dom.
this.ports → (Array<MessagePort>|null)
(Array<MessagePort>|null)
The Array of ports sent with the message, for cross-document and channel events.
this.preventBubble → ?
?
No information.
this.preventCapture → ?
?
No information.
this.propagationStopped_ → boolean
boolean
Whether to cancel the event in internal capture/bubble processing for IE.
this.propertyName → string
string
No information.
this.qualifier → string
string
No information.
this.reason → ?
?
No information.
this.recordset → (Object<?, *>|null)
(Object<?, *>|null)
No information.
this.relatedTarget → (EventTarget|null|undefined)
(EventTarget|null|undefined)
No information.
this.repeat → boolean
boolean
No information.
No information.
this.returnValue_ → boolean
boolean
Return value for in internal capture/bubble processing for IE.
this.saveType → string
string
No information.
this.scheme → ?
?
No information.
this.screenX → number
number
No information.
this.screenY → number
number
No information.
this.shiftKey → boolean
boolean
No information.
this.shiftLeft → boolean
boolean
No information.
this.source → (Window|null)
(Window|null)
this.srcElement → (Element|null)
(Element|null)
No information.
this.srcFilter → ?
?
No information.
this.srcUrn → string
string
No information.
this.target → (EventTarget|null)
(EventTarget|null)
No information.
this.timeStamp → number
number
No information.
this.toElement → (Element|null)
(Element|null)
No information.
this.type → string
string
No information.
this.userName → ?
?
No information.
this.view → (Window|null)
(Window|null)
No information.
this.wheelDelta → number
number
No information.
this.wheelDeltaX → number
number
No information.
this.wheelDeltaY → number
number
No information.
this.which → number
number
No information.
this.x → number
number
No information.
this.y → number
number
No information.
Static Functions
MockMessageEvent.wrap( data, opt_origin, opt_lastEventId, opt_source, opt_ports ) → goog.events.BrowserEvent
goog.events.BrowserEvent
Wraps a new fake MessageEvent in a BrowserEvent, like how a real MessageEvent would be wrapped.
Parameters |
| ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|