summaryrefslogtreecommitdiffstats
path: root/tests/auto/installer/scriptengine/data/dynamicpage.qs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/installer/scriptengine/data/dynamicpage.qs')
-rw-r--r--tests/auto/installer/scriptengine/data/dynamicpage.qs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/installer/scriptengine/data/dynamicpage.qs b/tests/auto/installer/scriptengine/data/dynamicpage.qs
index 4ac1990c1..576d5816e 100644
--- a/tests/auto/installer/scriptengine/data/dynamicpage.qs
+++ b/tests/auto/installer/scriptengine/data/dynamicpage.qs
@@ -32,8 +32,18 @@
**
**************************************************************************/
+function assert(condition)
+{
+ if (!condition)
+ throw new Error("Assertion failed!");
+}
+
function Controller()
{
+ var widget = gui.pageWidgetByObjectName("DynamicWidget");
+ assert(typeof widget === 'object');
+ var button = widget.Button;
+ assert(typeof button === 'object');
}
Controller.prototype.ReadAndSetValues = function()