Permalink
Browse files

[BUG #6054] Implement own mobile select box

Provided Unit Tests for mobile menu.
  • Loading branch information...
1 parent b640b50 commit 09d3fbfe990d832698e2ea133f1c26f42186caa8 Christopher Zuendorf committed with thron7 Mar 26, 2012
@@ -0,0 +1,40 @@
+/* ************************************************************************
+
+ qooxdoo - the new era of web development
+
+ http://qooxdoo.org
+
+ Copyright:
+ 2011 1&1 Internet AG, Germany, http://www.1und1.de
+
+ License:
+ LGPL: http://www.gnu.org/licenses/lgpl.html
+ EPL: http://www.eclipse.org/org/documents/epl-v10.php
+ See the LICENSE file in the project's top-level directory for details.
+
+ Authors:
+ * Christopher Zuendorf (czuendorf)
+
+************************************************************************ */
+
+qx.Class.define("qx.test.mobile.dialog.Menu",
+{
+ extend : qx.test.mobile.MobileTestCase,
+
+ members :
+ {
+ testInit : function()
+ {
+ // SMOKE TEST for menu.
+ var model = new qx.data.Array(["item1","item2","item3"]);
+ var model2 = new qx.data.Array(["item4","item5","item6"]);
+
+ var menu = new qx.ui.mobile.dialog.Menu(model);
+ menu.setSelectedIndex(2);
+
+ menu.setItems(model2);
+ menu.setSelectedIndex(1);
+ }
+ }
+
+});
@@ -24,6 +24,8 @@
* list, which provides the user the possibility to select one value.
* The selected value is identified through selected index.
*
+ *
+ *
* *Example*
* <pre class='javascript'>
*
@@ -60,7 +62,6 @@ qx.Class.define("qx.ui.mobile.dialog.Menu",
this.add(this.__selectionList);
-
this._getBlocker().addListener("tap", this.__onBlockerTap, this);
},
@@ -116,7 +117,6 @@ qx.Class.define("qx.ui.mobile.dialog.Menu",
},
-
/**
* Class which is assigned to unselected items.
* Useful for re-styling your menu via LESS.

0 comments on commit 09d3fbf

Please sign in to comment.