[Laszlo-dev] required attribute on canvas?

John Sundman jsundman at laszlosystems.com
Tue Apr 25 16:55:42 EDT 2006


Here is the example program from the <TestSuite> reference page.  When 
you run it you get a compilation warning:

testsuite.lzx:1:23: required attributes missing

Any idea where that's coming from?

Thanks,
jrs


<canvas debug="true">
   <debug y="275"/>
   <include href="lzunit"/>

   <class name="Tautologies" extends="TestCase">
     <method name="testSuccess">
       assertTrue(true);
       assertFalse(false);
       assertEquals(null, undefined);
       assertWithin(0, .001, .01);
       assertSame(null, null);
       assertNotSame(null, undefined);
       assertNull(null);
       assertNotNull(undefined);
       assertUndefined(undefined);
       assertNotUndefined(null);
     </method>
   </class>

   <class name="IntentionalBugs" extends="TestCase">
     <method name="testFailure">
       fail("This is an intentional failure");
     </method>

     <method name="testError">
       error("This is an intentional error");
     </method>
   </class>

   <TestSuite>
     <Tautologies/>
     <IntentionalBugs/>
   </TestSuite>
</canvas> 
  



More information about the Laszlo-dev mailing list