Revision: 3523 http://vexi.svn.sourceforge.net/vexi/?rev=3523&view=rev Author: clrg Date: 2009-06-23 14:19:31 +0000 (Tue, 23 Jun 2009)
Log Message: ----------- Fix vrunner bar Modified Paths: -------------- trunk/widgets/org.vexi.vunit/src/org/vexi/vunit/runner/main.t Modified: trunk/widgets/org.vexi.vunit/src/org/vexi/vunit/runner/main.t =================================================================== --- trunk/widgets/org.vexi.vunit/src/org/vexi/vunit/runner/main.t 2009-06-23 14:14:07 UTC (rev 3522) +++ trunk/widgets/org.vexi.vunit/src/org/vexi/vunit/runner/main.t 2009-06-23 14:19:31 UTC (rev 3523) @@ -10,7 +10,7 @@ static.testTemplate = vexi.params["vunit.test"]; - if(testTemplate==null){ + if (testTemplate==null) { throw "CONFIGURATION ERROR: vunit.test is not set!\n" + "This is how the root testsuite/testcase is specified."; } @@ -21,10 +21,10 @@ <lay:pad padding="3" orient="horizontal" vshrink="true"> <wi:bevel id="meter" layout="place" form="thindown" margin="5"> <ui:box orient="horizontal" height="20"> - <ui:box fill="green" width="0" id="meterright"> + <ui:box id="meterright" fill="green" width="0"> <ui:box id="success" align="right" textcolor="white" /> </ui:box> - <ui:box fill="red" width="0" id="meterwrong"> + <ui:box id="meterwrong" fill="red" width="0"> <ui:box id="fail" align="left" /> </ui:box> </ui:box> @@ -32,16 +32,15 @@ thisbox.total; thisbox.successful; var update = function() { - //$metertext.text = successful +"/"total; - //if(total== $success.text = successful+' '; $fail.text = ' '+(total-successful); - $meterright.width = thisbox.width * (thisbox.successful/thisbox.total); - $meterwrong.width = thisbox.width - $meterright.width; + $meterright.width = v_content.width * (thisbox.successful/thisbox.total); + $meterwrong.width = v_content.width - $meterright.width; } thisbox.width ++= function(v) { cascade = v; update(); }; thisbox.successful ++= function(v) { cascade = v; update(); }; thisbox.total ++= function(v) { cascade = v; update(); }; + </wi:bevel> <wi:button id="run" text="run" shrink="true"> thisbox.action ++=function(v) { @@ -113,7 +112,7 @@ if(!currentNode.failed)$meter.successful++; } currentNode = currentNode.parent; - //All tests finished, reenable run button + // All tests finished, reenable run button if (currentNode.parent == null) $run.enabled = true; }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn