From: <ne...@us...> - 2012-07-30 18:29:40
|
Revision: 13475 http://swig.svn.sourceforge.net/swig/?rev=13475&view=rev Author: neha1 Date: 2012-07-30 18:29:34 +0000 (Mon, 30 Jul 2012) Log Message: ----------- Clean up in some of the examples. From: Oliver Buchtala <oli...@go...> Modified Paths: -------------- branches/gsoc2012-javascript/Examples/javascript/constant/Makefile branches/gsoc2012-javascript/Examples/javascript/constant/runme.js branches/gsoc2012-javascript/Examples/javascript/exception/runme.js Modified: branches/gsoc2012-javascript/Examples/javascript/constant/Makefile =================================================================== --- branches/gsoc2012-javascript/Examples/javascript/constant/Makefile 2012-07-30 18:28:49 UTC (rev 13474) +++ branches/gsoc2012-javascript/Examples/javascript/constant/Makefile 2012-07-30 18:29:34 UTC (rev 13475) @@ -1,6 +1,6 @@ TOP = ../.. SWIG = $(TOP)/../preinst-swig -SRCS = example.cpp +SRCS = JSCXXSRCS = $(TOP)/../Tools/javascript/javascript.cxx JAVASCRIPT_EXE = $(TOP)/../Tools/javascript/javascript JAVASCRIPT_MODULE = example Modified: branches/gsoc2012-javascript/Examples/javascript/constant/runme.js =================================================================== --- branches/gsoc2012-javascript/Examples/javascript/constant/runme.js 2012-07-30 18:28:49 UTC (rev 13474) +++ branches/gsoc2012-javascript/Examples/javascript/constant/runme.js 2012-07-30 18:29:34 UTC (rev 13475) @@ -1,15 +1,14 @@ // file: runme.js -print("ICONST = " + example.ICONST + " (should be 42)\n"); -print("FCONST = " + example.FCONST + " (should be 2.1828)\n"); -print("CCONST = " + example.CCONST + " (should be 'x')\n"); -print("CCONST2 = " + example.CCONST2, " (this should be on a new line)\n"); -print("SCONST = " + example.SCONST + " (should be 'Hello World')\n"); +print("ICONST = " + example.ICONST + " (should be 42)\n"); +print("FCONST = " + example.FCONST + " (should be 2.1828)\n"); +print("CCONST = " + example.CCONST + " (should be 'x')\n"); +print("CCONST2 = " + example.CCONST2 + " (this should be on a new line)\n"); +print("SCONST = " + example.SCONST + " (should be 'Hello World')\n"); print("SCONST2 = " + example.SCONST2 + " (should be '\"Hello World\"')\n"); -print("EXPR = " + example.EXPR + " (should be 48.5484)\n"); -print("iconst = " + example.iconst + " (should be 37)\n"); -print("fconst = " + example.fconst + " (should be 3.14)\n"); +print("EXPR = " + example.EXPR + " (should be 48.5484)\n"); +print("iconst = " + example.iconst + " (should be 37)\n"); +print("fconst = " + example.fconst + " (should be 3.14)\n"); -print("EXTERN = " + example.EXTERN + " (Arg! This shouldn't print anything)\n"); - -print("FOO = " + example.FOO + " (Arg! This shouldn't print anything)\n"); +print("EXTERN = " + example.EXTERN + " (should be undefined)\n"); +print("FOO = " + example.FOO + " (should be undefined)\n"); Modified: branches/gsoc2012-javascript/Examples/javascript/exception/runme.js =================================================================== --- branches/gsoc2012-javascript/Examples/javascript/exception/runme.js 2012-07-30 18:28:49 UTC (rev 13474) +++ branches/gsoc2012-javascript/Examples/javascript/exception/runme.js 2012-07-30 18:29:34 UTC (rev 13475) @@ -41,7 +41,7 @@ } } -for (var i=0; i<4; i++) { +for (var i=1; i<4; i++) { try{ t.multi(i); throw -1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |