[Laszlo-checkins] r8528 - openlaszlo/trunk/test/swf9

hqm@openlaszlo.org hqm at openlaszlo.org
Wed Apr 2 14:12:52 PDT 2008


Author: hqm
Date: 2008-04-02 14:12:49 -0700 (Wed, 02 Apr 2008)
New Revision: 8528

Modified:
   openlaszlo/trunk/test/swf9/hello.lzx
Log:
Change 20080402-hqm-K by hqm at badtzmaru.local on 2008-04-02 17:12:24 EDT
    in /Users/hqm/openlaszlo/trunk/test/swf9
    for http://svn.openlaszlo.org/openlaszlo/trunk/test/swf9

Summary: update hello.lzx to include test for class and subclass with method override

New Features:

Bugs Fixed:

Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
    

Tests:
test/swf9/hello.lzx




Modified: openlaszlo/trunk/test/swf9/hello.lzx
===================================================================
--- openlaszlo/trunk/test/swf9/hello.lzx	2008-04-02 19:53:23 UTC (rev 8527)
+++ openlaszlo/trunk/test/swf9/hello.lzx	2008-04-02 21:12:49 UTC (rev 8528)
@@ -123,11 +123,63 @@
        bgcolor="#cccccc" >this is input text ,set width, resize = true aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk lll mmm nnn ooo ppp qqq</inputtext>
 
 
+  <class name="foobar" >
+    <handler name="onclick">
+      this.b2.animate("x", 20, 1000, true);
+      this.b3.animate("x", 40, 1000, true);
+    </handler>
+    <simplelayout axis="x"/>
+    <view name="b1" width="20" height="20" bgcolor='red'/>
+    <view name="b2"  width="20" height="20" bgcolor='yellow'/>
+    <view name="b3"  width="20" height="20" bgcolor='blue'/>
+    <method name="doit">
+      return "foobar";
+    </method>
+  </class>
 
 
 
+  <class name="baz" extends="foobar">
+    <method name="doit">
+      return("baz");
+    </method>
+    
+  </class>
 
 
+  <view y="300" >
+
+    <simplelayout axis="x" spacing="20"/>
+
+    <view layout="axis:y;spacing:2">
+      <text>3 &lt;foobar&gt;</text>
+      <foobar id="f1" />
+      <foobar id="f2" />
+      <foobar />
+    </view>
+  
+    <view layout="axis:y;spacing:2">
+      <text y="200" >3 &lt;baz&gt;</text>
+      <baz id="b1" />
+      <baz/>
+      <baz/>
+    </view>
+
+  </view>
+
+  <script>
+    with (global) {
+    lzconsole.write  ((f1.doit() == "foobar") ? "Base method test passed" : "Base method test failed");
+    lzconsole.write  ((b1.doit() == "baz") ? "Subclass method test passed" : "Subclass method test failed");
+   }
+  </script>
+
+
+
+
+
+
+
 </canvas>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
 * Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.              *



More information about the Laszlo-checkins mailing list