Revision: 4135 http://vexi.svn.sourceforge.net/vexi/?rev=4135&view=rev Author: clrg Date: 2011-05-13 00:47:15 +0000 (Fri, 13 May 2011)
Log Message: ----------- Fixes for datefield Modified Paths: -------------- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datefield.t trunk/org.vexi-vexi.widgets/src_test/test/widget/datefield.t Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datefield.t =================================================================== --- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datefield.t 2011-05-13 00:37:42 UTC (rev 4134) +++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datefield.t 2011-05-13 00:47:15 UTC (rev 4135) @@ -382,6 +382,8 @@ var t = trapee.text; return t ? t : null; case "vexi.util.date": + if (trapee.year==null) + return null; return trapee.copy(); case "date": case "number": throw "unimplemented"; Modified: trunk/org.vexi-vexi.widgets/src_test/test/widget/datefield.t =================================================================== --- trunk/org.vexi-vexi.widgets/src_test/test/widget/datefield.t 2011-05-13 00:37:42 UTC (rev 4134) +++ trunk/org.vexi-vexi.widgets/src_test/test/widget/datefield.t 2011-05-13 00:47:15 UTC (rev 4135) @@ -56,10 +56,13 @@ var b = new .datefield(); var putval; b.valuetype = "vexi.util.date"; - b.value ++= function(v) { putval = v; } + b.value ++= function(v) { cascade = v; putval = v; } b.KeyPressed = "enter"; assertTrue(typeof(putval)!="string"); assertNotNull(putval); + assertNotNull(putval.year); + assertNotNull(putval.month); + assertNotNull(putval.day); }; static.test = suite; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn