зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1330536 part 6. Add tests for code generation for CanOOM members. r=smaug
This commit is contained in:
Родитель
1cf89e40b6
Коммит
0fea28b3da
|
@ -936,6 +936,13 @@ public:
|
|||
void SetThrowingGetterAttr(bool arg);
|
||||
bool ThrowingSetterAttr() const;
|
||||
void SetThrowingSetterAttr(bool arg, ErrorResult& aRv);
|
||||
void CanOOMMethod(OOMReporter& aRv);
|
||||
bool GetCanOOMAttr(OOMReporter& aRv) const;
|
||||
void SetCanOOMAttr(bool arg, OOMReporter& aRv);
|
||||
bool GetCanOOMGetterAttr(OOMReporter& aRv) const;
|
||||
void SetCanOOMGetterAttr(bool arg);
|
||||
bool CanOOMSetterAttr() const;
|
||||
void SetCanOOMSetterAttr(bool arg, OOMReporter& aRv);
|
||||
void NeedsSubjectPrincipalMethod(nsIPrincipal&);
|
||||
bool NeedsSubjectPrincipalAttr(nsIPrincipal&);
|
||||
void SetNeedsSubjectPrincipalAttr(bool, nsIPrincipal&);
|
||||
|
|
|
@ -946,6 +946,10 @@ interface TestInterface {
|
|||
[Throws] attribute boolean throwingAttr;
|
||||
[GetterThrows] attribute boolean throwingGetterAttr;
|
||||
[SetterThrows] attribute boolean throwingSetterAttr;
|
||||
[CanOOM] void canOOMMethod();
|
||||
[CanOOM] attribute boolean canOOMAttr;
|
||||
[GetterCanOOM] attribute boolean canOOMGetterAttr;
|
||||
[SetterCanOOM] attribute boolean canOOMSetterAttr;
|
||||
[NeedsSubjectPrincipal] void needsSubjectPrincipalMethod();
|
||||
[NeedsSubjectPrincipal] attribute boolean needsSubjectPrincipalAttr;
|
||||
[NeedsCallerType] void needsCallerTypeMethod();
|
||||
|
|
|
@ -776,6 +776,10 @@ interface TestExampleInterface {
|
|||
[Throws] attribute boolean throwingAttr;
|
||||
[GetterThrows] attribute boolean throwingGetterAttr;
|
||||
[SetterThrows] attribute boolean throwingSetterAttr;
|
||||
[CanOOM] void canOOMMethod();
|
||||
[CanOOM] attribute boolean canOOMAttr;
|
||||
[GetterCanOOM] attribute boolean canOOMGetterAttr;
|
||||
[SetterCanOOM] attribute boolean canOOMSetterAttr;
|
||||
[NeedsSubjectPrincipal] void needsSubjectPrincipalMethod();
|
||||
[NeedsSubjectPrincipal] attribute boolean needsSubjectPrincipalAttr;
|
||||
[NeedsCallerType] void needsCallerTypeMethod();
|
||||
|
|
|
@ -797,6 +797,10 @@ interface TestJSImplInterface {
|
|||
[Throws] attribute boolean throwingAttr;
|
||||
[GetterThrows] attribute boolean throwingGetterAttr;
|
||||
[SetterThrows] attribute boolean throwingSetterAttr;
|
||||
[CanOOM] void canOOMMethod();
|
||||
[CanOOM] attribute boolean canOOMAttr;
|
||||
[GetterCanOOM] attribute boolean canOOMGetterAttr;
|
||||
[SetterCanOOM] attribute boolean canOOMSetterAttr;
|
||||
// NeedsSubjectPrincipal not supported on JS-implemented things for
|
||||
// now, because we always pass in the caller principal anyway.
|
||||
// [NeedsSubjectPrincipal] void needsSubjectPrincipalMethod();
|
||||
|
|
Загрузка…
Ссылка в новой задаче