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
parent 8f0eb7c918
commit 233217b89f
2 changed files with 13 additions and 0 deletions

View File

@ -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&);

View File

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