mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Add integration tests for interacting with promises from native code.
This commit is contained in:
parent
ab168204ed
commit
f89355b85d
5 changed files with 98 additions and 5 deletions
|
@ -508,14 +508,20 @@ interface TestBinding {
|
|||
[Func="TestBinding::condition_satisfied"]
|
||||
const unsigned short funcControlledConstEnabled = 0;
|
||||
|
||||
Promise<DOMString> returnPromise();
|
||||
[Throws]
|
||||
Promise<any> returnResolvedPromise(any value);
|
||||
[Throws]
|
||||
Promise<any> returnRejectedPromise(any value);
|
||||
readonly attribute Promise<boolean> promiseAttribute;
|
||||
void acceptPromise(Promise<DOMString> string);
|
||||
void acceptNullablePromise(Promise<DOMString>? string);
|
||||
Promise<any> promiseNativeHandler(SimpleCallback? resolve, SimpleCallback? reject);
|
||||
|
||||
void panic();
|
||||
};
|
||||
|
||||
callback SimpleCallback = void(any value);
|
||||
|
||||
partial interface TestBinding {
|
||||
[Pref="dom.testable_crash.enabled"]
|
||||
void crashHard();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue