Author: max
Date: 2008-02-22 13:03:41 -0800 (Fri, 22 Feb 2008)
New Revision: 8092
Modified:
openlaszlo/trunk/test/performance/typeof-instance-of.lzx
Log:
+ Add test for failed instanceof
Modified: openlaszlo/trunk/test/performance/typeof-instance-of.lzx
===================================================================
--- openlaszlo/trunk/test/performance/typeof-instance-of.lzx 2008-02-22
19:55:35 UTC (rev 8091)
+++ openlaszlo/trunk/test/performance/typeof-instance-of.lzx 2008-02-22
21:03:41 UTC (rev 8092)
@@ -33,6 +33,11 @@
}
bar = '';
+ function instanceOfFail() {
+ for (var i = 0; i < iterations; i++) {
+ bar instanceof LzText;
+ }
+ }
function typeOfInstanceOfFail() {
for (var i = 0; i < iterations; i++) {
typeof bar == 'object' && bar instanceof LzText;
@@ -60,6 +65,7 @@
'typeof with instanceof': typeOfInstanceOf,
'property lookup': propertyLookup,
'typeof with instanceof with short circuit':
typeOfInstanceOfFail,
+ 'instanceof that fails': instanceOfFail,
'typeof function': typeOfFunction,
'instanceof function': instanceOfFunction,
'empty': empty})).run();
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins