[Laszlo-checkins] r3722 - sandbox/frisco/trunk/docs/src/dguide
frisco@openlaszlo.org
frisco at openlaszlo.org
Wed Feb 7 19:36:17 PST 2007
Author: frisco
Date: 2007-02-07 19:36:09 -0800 (Wed, 07 Feb 2007)
New Revision: 3722
Modified:
sandbox/frisco/trunk/docs/src/dguide/testdriven.html
Log:
Change 20070207-laszlosystems-Q by laszlosystems at Frisco-Mini.local on 2007-02-07 19:32:40 PST
in /Users/laszlosystems/src/svn/openlaszlo/sandbox
Summary:
New Features:
Bugs Fixed:
Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Tests:
Modified: sandbox/frisco/trunk/docs/src/dguide/testdriven.html
===================================================================
--- sandbox/frisco/trunk/docs/src/dguide/testdriven.html 2007-02-08 03:33:14 UTC (rev 3721)
+++ sandbox/frisco/trunk/docs/src/dguide/testdriven.html 2007-02-08 03:36:09 UTC (rev 3722)
@@ -193,9 +193,9 @@
</canvas>
</example>
-<p>A while statement attached to (goButton.go==true) would loop infinitely, or until a buttonclick set the "go" attribute to false, but how to test for infinity? Maybe it's something the developer has to take on faith, but JavaScript does have its limit: <code>Number.MAX_VALUE</code> is the largest number JavaScript can represent. The while statement is <code>while (goButton.counter < Number.MAX_VALUE)<code>.</p>
+<p>A while statement attached to (goButton.go==true) would loop infinitely, or until a buttonclick set the "go" attribute to false, but how to test for infinity? Maybe it's something the developer has to take on faith, but JavaScript does have its limit: <code>Number.MAX_VALUE</code> is the largest number JavaScript can represent. The while statement is <code>while (goButton.counter < Number.MAX_VALUE)</code>.</p>
-<p>I am not sure if it is good style to declare "counter" as a button attribute, but I think that must be better than initializing the counter variable on the canvas (with the script <code><script>var goButton.counter=1;</script><code>). Before adding the code for the while loop and the code for the button attribute, there's a test to write: Does the goButton have a attribute "displayed" that equals 1?</p>
+<p>I am not sure if it is good style to declare "counter" as a button attribute, but I think that must be better than initializing the counter variable on the canvas (with the script <code><script>var goButton.counter=1;</script></code>). Before adding the code for the while loop and the code for the button attribute, there's a test to write: Does the goButton have a attribute "displayed" that equals 1?</p>
<example class="code" title="testGoButtonCounter">
<canvas debug="true">
More information about the Laszlo-checkins
mailing list