Sha256: 646e1f5c4a5ac8470cdb2ef6b64f7789119853e0d8504864b3e3a0af52ff9127
Contents?: true
Size: 1.21 KB
Versions: 7
Compression:
Stored size: 1.21 KB
Contents
/* ************************************************************************ Copyright: License: Authors: ************************************************************************ */ /** * This class demonstrates how to define simulated interaction tests for your * application. See the manual for details: * {@link http://manual.qooxdoo.org/1.5/pages/development/simulator.html} * * @lint ignoreUndefined(simulator) */ qx.Class.define("com.zenesis.qx.upload.simulation.DemoSimulation", { extend : simulator.unit.TestCase, members : { /* --------------------------------------------------------------------------- TESTS --------------------------------------------------------------------------- */ /** Check if a widget is present (part of the DOM) */ testButtonPresent : function() { this.assertNotNull(this.getSimulation().getWidgetOrNull("qxh=qx.ui.form.Button"), "Button widget not present!"); }, /** Click a button and check if an alert box pops up */ testButtonClick : function() { this.getQxSelenium().qxClick("qxh=qx.ui.form.Button"); this.assertEquals("true", String(this.getQxSelenium().isAlertPresent())); } } });
Version data entries
7 entries across 7 versions & 1 rubygems