Author: max
Date: 2008-03-24 13:17:43 -0700 (Mon, 24 Mar 2008)
New Revision: 8375
Modified:
openlaszlo/trunk/test/lztest/lztest-placement.lzx
Log:
+ Update testcase to test state placement. Passes in r8279
Modified: openlaszlo/trunk/test/lztest/lztest-placement.lzx
===================================================================
--- openlaszlo/trunk/test/lztest/lztest-placement.lzx 2008-03-24 20:07:36 UTC
(rev 8374)
+++ openlaszlo/trunk/test/lztest/lztest-placement.lzx 2008-03-24 20:17:43 UTC
(rev 8375)
@@ -48,6 +48,12 @@
</nc1>
</TestCaseWrapper>
+
+ <TestCaseWrapper name="statePlacement" id="statePlacementWrapper">
+ <nc1 name="nci1">
+ <state name="n1state" placement="n1"/>
+ </nc1>
+ </TestCaseWrapper>
<script><![CDATA[
@@ -59,7 +65,12 @@
LzTestManager.assertEquals(basicPlacementWrapper.nci2.n2,
basicPlacementWrapper.nci2.n1.searchImmediateSubnodes("name", "n2"));
}
+suiteNodePlacement.statePlacement = function () {
+ LzTestManager.assertEquals(statePlacementWrapper.nci1.n1state,
statePlacementWrapper.nci1.n1.searchImmediateSubnodes("name", "n1state"));
+}
+
suiteNodePlacement.addTest(suiteNodePlacement.basicPlacement);
+suiteNodePlacement.addTest(suiteNodePlacement.statePlacement);
suiteNodePlacement.addTest( function() {
LzTestManager.assertTrue("false", "TODO: port the rest of
test/lzunit/lzunit-node-placement.lzx (bshine 4.24.06)");
}
@@ -72,7 +83,7 @@
</canvas>
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins