Sha256: 2ffefbbbcf16b6c336e56afd58ec0404833b4dc71c6e6f694dcc9b96060707de
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("uploadmgr.demo.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