Revision: 1688 http://svn.sourceforge.net/vexi/?rev=1688&view=rev Author: mkpg2 Date: 2007-02-21 02:28:57 -0800 (Wed, 21 Feb 2007)
Log Message: ----------- Add function type as possible type to typeof bytecode Modified Paths: -------------- core/trunk/org.ibex.js/src_junit/test/js/general/TestGeneral.java Added Paths: ----------- core/trunk/org.ibex.js/src_junit/test/js/general/typeof.js Modified: core/trunk/org.ibex.js/src_junit/test/js/general/TestGeneral.java =================================================================== --- core/trunk/org.ibex.js/src_junit/test/js/general/TestGeneral.java 2007-02-21 10:20:33 UTC (rev 1687) +++ core/trunk/org.ibex.js/src_junit/test/js/general/TestGeneral.java 2007-02-21 10:28:57 UTC (rev 1688) @@ -16,8 +16,6 @@ public static void main(String[] args) throws Exception { String resourceDir = TestGeneral.class.getResource(".").getPath(); - //RunJS.runJSFile(new String[]{resourceDir}, "multiple_assignment.js"); - RunJS.runJSFile(new String[]{resourceDir}, "multiple_assignment2.js"); - + RunJS.runJSFile(new String[]{resourceDir}, "typeof.js"); } } Added: core/trunk/org.ibex.js/src_junit/test/js/general/typeof.js =================================================================== --- core/trunk/org.ibex.js/src_junit/test/js/general/typeof.js (rev 0) +++ core/trunk/org.ibex.js/src_junit/test/js/general/typeof.js 2007-02-21 10:28:57 UTC (rev 1688) @@ -0,0 +1,29 @@ +////// +var x = []; +assert(typeof(x)=="array"); + +var y = {}; +assert(typeof(y)=="object"); + +var z = function(){}; +assert(typeof(z)=="function"); + +var a = 1; +assert(typeof(a)=="number"); + +var b = "1"; +//sys.print(typeof(b)); +assert(typeof(b)=="string"); + +var c = true; +assert(typeof(c)=="boolean"); + +try{throw "foo"; +}catch(d){ + assert(typeof(d)=="exception"); +} + + + + + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn