mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Add a simple codegen test for constructors. No review, no bug, DONTBUILD
This commit is contained in:
parent
8f0eb7c918
commit
233217b89f
@ -55,6 +55,16 @@ public:
|
||||
virtual nsISupports* GetParentObject();
|
||||
|
||||
// And now our actual WebIDL API
|
||||
// Constructors
|
||||
static
|
||||
already_AddRefed<TestInterface> Constructor(nsISupports*, ErrorResult&);
|
||||
static
|
||||
already_AddRefed<TestInterface> Constructor(nsISupports*, const nsAString&,
|
||||
ErrorResult&);
|
||||
static
|
||||
already_AddRefed<TestInterface> Constructor(nsISupports*, uint32_t,
|
||||
Nullable<bool>&, ErrorResult&);
|
||||
|
||||
// Integer types
|
||||
int8_t GetReadonlyByte(ErrorResult&);
|
||||
int8_t GetWritableByte(ErrorResult&);
|
||||
|
@ -16,6 +16,9 @@ enum TestEnum {
|
||||
|
||||
callback TestCallback = void();
|
||||
|
||||
[Constructor,
|
||||
Constructor(DOMString str),
|
||||
Constructor(unsigned long num, boolean? bool)]
|
||||
interface TestInterface {
|
||||
// Integer types
|
||||
// XXXbz add tests for infallible versions of all the integer stuff
|
||||
|
Loading…
Reference in New Issue
Block a user