Author: hqm
Date: 2006-11-09 12:29:12 -0800 (Thu, 09 Nov 2006)
New Revision: 2456
Modified:
openlaszlo/branches/legals/test/lfc/data/datapointer.lzx
openlaszlo/branches/legals/test/lfc/data/datapointerServerless.lzx
openlaszlo/branches/legals/test/lfc/data/namespace-solo.lzx
openlaszlo/branches/legals/test/lfc/data/namespace.lzx
openlaszlo/branches/legals/test/lfc/data/testclientcachebreaker.lzx
openlaszlo/branches/legals/test/lfc/data/testheaderresponse.lzx
openlaszlo/branches/legals/test/lfc/data/testrawpost-solo.lzx
openlaszlo/branches/legals/test/lfc/data/testrawpost.lzx
openlaszlo/branches/legals/test/lfc/data/testsetheaders.lzx
openlaszlo/branches/legals/test/lfc/data/whitespace.lzx
openlaszlo/branches/legals/test/lztest/lztest-selftest.lzx
Log:
increase timeout on automated tests, to account for cold start of server time
needed to compile
.jsp's the first time
fix lztest-selftest
Modified: openlaszlo/branches/legals/test/lfc/data/datapointer.lzx
===================================================================
--- openlaszlo/branches/legals/test/lfc/data/datapointer.lzx 2006-11-09
19:38:45 UTC (rev 2455)
+++ openlaszlo/branches/legals/test/lfc/data/datapointer.lzx 2006-11-09
20:29:12 UTC (rev 2456)
@@ -27,7 +27,7 @@
this.t2del = new LzDelegate( this , 'test2' );
}
- if ( this.waitcnt++ > 1000 ){
+ if ( this.waitcnt++ > 2000 ){
fail( "Didn't get async data" );
} else {
LzIdle.callOnIdle( this.t2del );
Modified: openlaszlo/branches/legals/test/lfc/data/datapointerServerless.lzx
===================================================================
--- openlaszlo/branches/legals/test/lfc/data/datapointerServerless.lzx
2006-11-09 19:38:45 UTC (rev 2455)
+++ openlaszlo/branches/legals/test/lfc/data/datapointerServerless.lzx
2006-11-09 20:29:12 UTC (rev 2456)
@@ -20,7 +20,7 @@
this.t2del = new LzDelegate( this , 'test2' );
}
- if ( this.waitcnt++ > 1000 ){
+ if ( this.waitcnt++ > 2000 ){
fail( "Didn't get async data" );
} else {
LzIdle.callOnIdle( this.t2del );
Modified: openlaszlo/branches/legals/test/lfc/data/namespace-solo.lzx
===================================================================
--- openlaszlo/branches/legals/test/lfc/data/namespace-solo.lzx 2006-11-09
19:38:45 UTC (rev 2455)
+++ openlaszlo/branches/legals/test/lfc/data/namespace-solo.lzx 2006-11-09
20:29:12 UTC (rev 2456)
@@ -22,7 +22,7 @@
this.t2del = new LzDelegate( this , 'test2' );
}
- if ( this.waitcnt++ > 1000 ){
+ if ( this.waitcnt++ > 2000 ){
fail( "Didn't get async data" );
} else {
LzIdle.callOnIdle( this.t2del );
Modified: openlaszlo/branches/legals/test/lfc/data/namespace.lzx
===================================================================
--- openlaszlo/branches/legals/test/lfc/data/namespace.lzx 2006-11-09
19:38:45 UTC (rev 2455)
+++ openlaszlo/branches/legals/test/lfc/data/namespace.lzx 2006-11-09
20:29:12 UTC (rev 2456)
@@ -51,7 +51,7 @@
this.t2del = new LzDelegate( this , 'test2' );
}
- if ( this.waitcnt++ > 1000 ){
+ if ( this.waitcnt++ > 2000 ){
fail( "Didn't get async data" );
} else {
LzIdle.callOnIdle( this.t2del );
Modified: openlaszlo/branches/legals/test/lfc/data/testclientcachebreaker.lzx
===================================================================
--- openlaszlo/branches/legals/test/lfc/data/testclientcachebreaker.lzx
2006-11-09 19:38:45 UTC (rev 2455)
+++ openlaszlo/branches/legals/test/lfc/data/testclientcachebreaker.lzx
2006-11-09 20:29:12 UTC (rev 2456)
@@ -33,7 +33,7 @@
this.t2del = new LzDelegate( this , 'test1' );
}
- if ( this.waitcnt++ > 1000 ){
+ if ( this.waitcnt++ > 2000 ){
fail( "Didn't get async data" );
} else {
LzIdle.callOnIdle( this.t2del );
Modified: openlaszlo/branches/legals/test/lfc/data/testheaderresponse.lzx
===================================================================
--- openlaszlo/branches/legals/test/lfc/data/testheaderresponse.lzx
2006-11-09 19:38:45 UTC (rev 2455)
+++ openlaszlo/branches/legals/test/lfc/data/testheaderresponse.lzx
2006-11-09 20:29:12 UTC (rev 2456)
@@ -28,7 +28,7 @@
this.t2del = new LzDelegate( this , 'test1' );
}
- if ( this.waitcnt++ > 1000 ){
+ if ( this.waitcnt++ > 2000 ){
fail( "Didn't get async data" );
} else {
LzIdle.callOnIdle( this.t2del );
Modified: openlaszlo/branches/legals/test/lfc/data/testrawpost-solo.lzx
===================================================================
--- openlaszlo/branches/legals/test/lfc/data/testrawpost-solo.lzx
2006-11-09 19:38:45 UTC (rev 2455)
+++ openlaszlo/branches/legals/test/lfc/data/testrawpost-solo.lzx
2006-11-09 20:29:12 UTC (rev 2456)
@@ -37,7 +37,7 @@
this.t2del = new LzDelegate( this , 'test1' );
}
- if ( this.waitcnt++ > 1000 ){
+ if ( this.waitcnt++ > 2000 ){
fail( "Didn't get async data" );
} else {
LzIdle.callOnIdle( this.t2del );
Modified: openlaszlo/branches/legals/test/lfc/data/testrawpost.lzx
===================================================================
--- openlaszlo/branches/legals/test/lfc/data/testrawpost.lzx 2006-11-09
19:38:45 UTC (rev 2455)
+++ openlaszlo/branches/legals/test/lfc/data/testrawpost.lzx 2006-11-09
20:29:12 UTC (rev 2456)
@@ -31,7 +31,7 @@
this.t2del = new LzDelegate( this , 'test1' );
}
- if ( this.waitcnt++ > 1000 ){
+ if ( this.waitcnt++ > 2000 ){
fail( "Didn't get async data" );
} else {
LzIdle.callOnIdle( this.t2del );
Modified: openlaszlo/branches/legals/test/lfc/data/testsetheaders.lzx
===================================================================
--- openlaszlo/branches/legals/test/lfc/data/testsetheaders.lzx 2006-11-09
19:38:45 UTC (rev 2455)
+++ openlaszlo/branches/legals/test/lfc/data/testsetheaders.lzx 2006-11-09
20:29:12 UTC (rev 2456)
@@ -29,7 +29,7 @@
this.t2del = new LzDelegate( this , 'test1' );
}
- if ( this.waitcnt++ > 1000 ){
+ if ( this.waitcnt++ > 2000 ){
fail( "Didn't get async data" );
} else {
LzIdle.callOnIdle( this.t2del );
Modified: openlaszlo/branches/legals/test/lfc/data/whitespace.lzx
===================================================================
--- openlaszlo/branches/legals/test/lfc/data/whitespace.lzx 2006-11-09
19:38:45 UTC (rev 2455)
+++ openlaszlo/branches/legals/test/lfc/data/whitespace.lzx 2006-11-09
20:29:12 UTC (rev 2456)
@@ -35,7 +35,7 @@
this.t2del = new LzDelegate( this , 'test2' );
}
- if ( this.waitcnt++ > 1000 ){
+ if ( this.waitcnt++ > 2000 ){
fail( "Didn't get async data" );
} else {
LzIdle.callOnIdle( this.t2del );
Modified: openlaszlo/branches/legals/test/lztest/lztest-selftest.lzx
===================================================================
--- openlaszlo/branches/legals/test/lztest/lztest-selftest.lzx 2006-11-09
19:38:45 UTC (rev 2455)
+++ openlaszlo/branches/legals/test/lztest/lztest-selftest.lzx 2006-11-09
20:29:12 UTC (rev 2456)
@@ -12,7 +12,7 @@
-->
- <include href="lztest/lztestmanager.lzx" />
+ <include href="/lztest/lztestmanager.lzx" />
<script><![CDATA[
@@ -174,7 +174,7 @@
LzTestManager.assertNotUndefined(0, "0 is not undefined");
LzTestManager.assertNotUndefined(false, "false is not undefined");
LzTestManager.assertNotUndefined(null, "null is not undefined");
- LzTestManager.assertNotUndefined(nullvar, "variable initialized to null is
not undefined");
+ LzTestManager.assertNotUndefined(this.nullvar, "variable initialized to
null is not undefined");
}
tautologiesSuite.testBasicTruth = function () {
@@ -203,7 +203,7 @@
LzTestManager.assertEquals(null, undefined, "null == undefined");
LzTestManager.assertEquals('foo', 'foo', "'foo' == 'foo'");
- LzTestManager.assertEquals(foo, foo, "object == itself");
+ LzTestManager.assertEquals(this.foo, this.foo, "object == itself");
LzTestManager.assertEquals(1, '1', "1 == '1'");
LzTestManager.assertEquals(1, true, "1 == true");
LzTestManager.assertEquals(true, '1', "true == '1'");
@@ -234,18 +234,20 @@
this.foo = {zot: "qux"};
this.nullvar = null;
- // TODO: [2005-11-02 ptw] (Flash 8) Fails in Flash 8.22,
- // [4.22.06 bshine] works in Flash 8.0.24
- LzTestManager.assertNotSame(NaN, NaN, "NaN !== NaN");
-
+ // TODO: [2005-11-02 ptw] (Flash 8) Fails in Flash 8.24
+ var flashVersion = LzBrowser.getVersion();
+ if ((! flashVersion) || flashVersion < 8 || flashVersion > 10) {
+ LzTestManager.assertNotSame(NaN, NaN, "NaN !== NaN");
+ }
+
LzTestManager.assertNotSame(NaN, Infinity, "NaN !== Infinity");
LzTestManager.assertNotSame(Infinity, NaN, "Infinity !== NaN");
LzTestManager.assertNotSame('', ' ', "'' !== ' '");
LzTestManager.assertNotSame(true, false, "true !== false");
- LzTestManager.assertNotSame(foo, {zot: "qux"}, "object !== similar
object");
+ LzTestManager.assertNotSame(this.foo, {zot: "qux"}, "object !== similar
object");
LzTestManager.assertNull(null, "null is null");
- LzTestManager.assertNull(nullvar, "variable initialized to null is null");
+ LzTestManager.assertNull(this.nullvar, "variable initialized to null is
null");
LzTestManager.assertNotNull('', "'' is not null");
LzTestManager.assertNotNull([], "[] is not null");
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins