blob: 48a6c18a89e7a4fcf67d7ed9cdfb9d714b254d0a [file] [log] [blame]
{ "type": "class",
"qname": "org.apache.royale.test.async.Async",
"baseClassname": ""
,
"description": "Helper functions for tests marked with <code>[Test(async)]</code> metadata.",
"members": [
{ "type": "method",
"qname": "delayCall",
"namespace": "public",
"bindable": [],
"details": ["static"],
"deprecated": {},
"description": "Calls a function after a delay, measured in milliseconds.",
"return": "void",
"params": [{ "name": "testCase", "type": "Object"},
{ "name": "delayedFunction", "type": "Function"},
{ "name": "delayMS", "type": "int"}]}
,
{ "type": "method",
"qname": "requireEvent",
"namespace": "public",
"bindable": [],
"details": ["static"],
"deprecated": {},
"description": "If an event is not dispatched within the specified delay (measured in milliseconds), the test will fail.",
"return": "void",
"params": [{ "name": "testCase", "type": "Object"},
{ "name": "dispatcher", "type": "org.apache.royale.events.EventDispatcher"},
{ "name": "eventName", "type": "String"},
{ "name": "timeout", "type": "int"}]}
,
{ "type": "method",
"qname": "handleEvent",
"namespace": "public",
"bindable": [],
"details": ["static"],
"deprecated": {},
"description": "Similar to <code>requireEvent()</code>, requires an event to be dispatched for the test to pass, but the arguments are also passed to a custom event handler that may perform additional checks.",
"return": "void",
"params": [{ "name": "testCase", "type": "Object"},
{ "name": "dispatcher", "type": "org.apache.royale.events.EventDispatcher"},
{ "name": "eventName", "type": "String"},
{ "name": "eventHandler", "type": "Function"},
{ "name": "timeout", "type": "int"}]}
,
{ "type": "method",
"qname": "failOnEvent",
"namespace": "public",
"bindable": [],
"details": ["static"],
"deprecated": {},
"description": "If an event is dispatched within the specified delay, the test case will fail.",
"return": "void",
"params": [{ "name": "testCase", "type": "Object"},
{ "name": "dispatcher", "type": "org.apache.royale.events.EventDispatcher"},
{ "name": "eventName", "type": "String"},
{ "name": "timeout", "type": "int"}]}
]
}