diff options
Diffstat (limited to 'WebCore/bindings/scripts/test/ObjC')
-rw-r--r-- | WebCore/bindings/scripts/test/ObjC/DOMTestObj.h | 2 | ||||
-rw-r--r-- | WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm | 26 |
2 files changed, 25 insertions, 3 deletions
diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h b/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h index dd9d2ee..247f4a3 100644 --- a/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h +++ b/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h @@ -62,6 +62,8 @@ - (int)intMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg; - (DOMTestObj *)objMethod; - (DOMTestObj *)objMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg; +- (DOMTestObj *)methodThatRequiresAllArgs:(NSString *)strArg objArg:(DOMTestObj *)objArg; +- (DOMTestObj *)methodThatRequiresAllArgsAndThrows:(NSString *)strArg objArg:(DOMTestObj *)objArg; - (void)serializedValue:(NSString *)serializedArg; - (void)methodWithException; - (void)customMethod; diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm b/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm index b964e36..a24f6fe 100644 --- a/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm +++ b/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm @@ -149,12 +149,17 @@ - (int)attrWithSetterException { - return IMPL->attrWithSetterException(); + WebCore::ExceptionCode ec = 0; + int result = IMPL->attrWithSetterException(ec); + WebCore::raiseOnDOMError(ec); + return result; } - (void)setAttrWithSetterException:(int)newAttrWithSetterException { - IMPL->setAttrWithSetterException(newAttrWithSetterException); + WebCore::ExceptionCode ec = 0; + IMPL->setAttrWithSetterException(newAttrWithSetterException, ec); + WebCore::raiseOnDOMError(ec); } - (int)attrWithGetterException @@ -164,7 +169,9 @@ - (void)setAttrWithGetterException:(int)newAttrWithGetterException { - IMPL->setAttrWithGetterException(newAttrWithGetterException); + WebCore::ExceptionCode ec = 0; + IMPL->setAttrWithGetterException(newAttrWithGetterException, ec); + WebCore::raiseOnDOMError(ec); } - (int)customAttr @@ -212,6 +219,19 @@ return kit(WTF::getPtr(IMPL->objMethodWithArgs(intArg, strArg, core(objArg)))); } +- (DOMTestObj *)methodThatRequiresAllArgs:(NSString *)strArg objArg:(DOMTestObj *)objArg +{ + return kit(WTF::getPtr(IMPL->methodThatRequiresAllArgs(strArg, core(objArg)))); +} + +- (DOMTestObj *)methodThatRequiresAllArgsAndThrows:(NSString *)strArg objArg:(DOMTestObj *)objArg +{ + WebCore::ExceptionCode ec = 0; + DOMTestObj *result = kit(WTF::getPtr(IMPL->methodThatRequiresAllArgsAndThrows(strArg, core(objArg), ec))); + WebCore::raiseOnDOMError(ec); + return result; +} + - (void)serializedValue:(NSString *)serializedArg { IMPL->serializedValue(WebCore::SerializedScriptValue::create(WebCore::String(serializedArg))); |