Revision: 4224 http://vexi.svn.sourceforge.net/vexi/?rev=4224&view=rev Author: jeffbuhrt Date: 2011-09-14 21:14:26 +0000 (Wed, 14 Sep 2011) Log Message: ----------- testcase for #58 (Cursor only changes shape when mouse is moved)
Added Paths: ----------- trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/testcase_cursor.t Added: trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/testcase_cursor.t =================================================================== --- trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/testcase_cursor.t (rev 0) +++ trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/testcase_cursor.t 2011-09-14 21:14:26 UTC (rev 4224) @@ -0,0 +1,29 @@ +<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" + xmlns:lay="vexi.layout" + xmlns="vexi.widget" + xmlns:util="vexi.util" + xmlns:frame="org.vexi.demo.rl" +> + + static.name = "Change cursor testcase"; // Cursor only changes shape when mouse is moved + static.category = "Test Cases"; + + static.cursors = ["wait", "hand", "default"]; + + <ui:box orient="vertical"> + <button id="changeCursor" text="Change Cursor" /> + + var cursorNum = 0; + + $changeCursor.action ++= function(v) { + var newCursor = static.cursors[cursorNum % static.cursors.length]; + cursorNum++; + vexi.log.info("current cursor:" + cursor + ", new cursor:" + newCursor); + cursor = newCursor; + + + + cascade = v; + } + </ui:box> +</vexi> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn