| Package | Description |
|---|---|
| com.gargoylesoftware.htmlunit.javascript.host |
Implementations of the various JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
| com.gargoylesoftware.htmlunit.javascript.host.html |
Implementations of the HTML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
| com.gargoylesoftware.htmlunit.javascript.host.media |
Implementations of the JavaScript host media objects - users of HtmlUnit shouldn't
need anything in this package.
|
| Modifier and Type | Method and Description |
|---|---|
static Promise |
Promise.all(net.sourceforge.htmlunit.corejs.javascript.Context context,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function function)
Returns a
Promise that resolves when all of the promises in the iterable argument have resolved,
or rejects with the reason of the first passed promise that rejects. |
Promise |
Promise.catch_js(Object onRejected)
Returns a Promise and deals with rejected cases only.
|
Promise |
FontFaceSet.load(String font,
String text) |
static Promise |
Promise.race(net.sourceforge.htmlunit.corejs.javascript.Context context,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function function)
Returns a
Promise that that resolves or rejects as soon as one of the promises
in the iterable resolves or rejects, with the value or reason from that promise. |
static Promise |
Promise.reject(net.sourceforge.htmlunit.corejs.javascript.Context context,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function function)
Returns a
Promise object that is rejected with the given value. |
static Promise |
Promise.resolve(net.sourceforge.htmlunit.corejs.javascript.Context context,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function function)
Returns a
Promise object that is resolved with the given value. |
Promise |
Promise.then(Object onFulfilled,
Object onRejected)
It takes two arguments, both are callback functions for the success and failure cases of the Promise.
|
| Modifier and Type | Method and Description |
|---|---|
Promise |
HTMLMediaElement.play()
Begins playback of the media.
|
| Modifier and Type | Method and Description |
|---|---|
Promise |
AudioContext.decodeAudioData(net.sourceforge.htmlunit.corejs.javascript.typedarrays.NativeArrayBuffer buffer,
net.sourceforge.htmlunit.corejs.javascript.Function success,
net.sourceforge.htmlunit.corejs.javascript.Function error)
The decodeAudioData() method of the BaseAudioContext Interface is used to asynchronously
decode audio file data contained in an ArrayBuffer.
|
Copyright © 2002–2019 Gargoyle Software Inc.. All rights reserved.