Add a simple codegen test for constructors. No review, no bug, DONTBUILD

This commit is contained in:
Boris Zbarsky 2012-06-01 21:26:20 -04:00
Родитель e62fcc8acf
Коммит aeb3270914
2 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@ -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