зеркало из https://github.com/mozilla/gecko-dev.git
Add a simple codegen test for constructors. No review, no bug, DONTBUILD
This commit is contained in:
Родитель
e62fcc8acf
Коммит
aeb3270914
|
@ -55,6 +55,16 @@ public:
|
||||||
virtual nsISupports* GetParentObject();
|
virtual nsISupports* GetParentObject();
|
||||||
|
|
||||||
// And now our actual WebIDL API
|
// 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
|
// Integer types
|
||||||
int8_t GetReadonlyByte(ErrorResult&);
|
int8_t GetReadonlyByte(ErrorResult&);
|
||||||
int8_t GetWritableByte(ErrorResult&);
|
int8_t GetWritableByte(ErrorResult&);
|
||||||
|
|
|
@ -16,6 +16,9 @@ enum TestEnum {
|
||||||
|
|
||||||
callback TestCallback = void();
|
callback TestCallback = void();
|
||||||
|
|
||||||
|
[Constructor,
|
||||||
|
Constructor(DOMString str),
|
||||||
|
Constructor(unsigned long num, boolean? bool)]
|
||||||
interface TestInterface {
|
interface TestInterface {
|
||||||
// Integer types
|
// Integer types
|
||||||
// XXXbz add tests for infallible versions of all the integer stuff
|
// XXXbz add tests for infallible versions of all the integer stuff
|
||||||
|
|
Загрузка…
Ссылка в новой задаче