Commit 27bc8391 authored by Romain Courteaud's avatar Romain Courteaud

Check that iframe can catch service errors.

parent 00c36f64
......@@ -26,6 +26,9 @@
.declareMethod('wasServiceStarted', function () {
return service_started;
})
.declareMethod('canReportServiceError', function () {
return (this.aq_reportServiceError !== undefined);
})
.declareMethod('isSubGadgetDictInitialize', function () {
return ((this.hasOwnProperty("__sub_gadget_dict")) &&
(JSON.stringify(this.__sub_gadget_dict) === "{}"));
......
......@@ -3262,6 +3262,14 @@
equal(result, true);
})
// Check that service error can be reported
.push(function () {
return new_gadget.canReportServiceError();
})
.push(function (result) {
equal(result, true);
})
// Custom method accept parameter
// and return value
.push(function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment