Revision: 2288
          http://vexi.svn.sourceforge.net/vexi/?rev=2288&view=rev
Author:   mkpg2
Date:     2007-09-20 13:54:01 -0700 (Thu, 20 Sep 2007)

Log Message:
-----------
Test case, not fixed. Java Exception thrown from Parser.

Modified Paths:
--------------
    trunk/core/org.ibex.js/src_junit/test/js/parse/TestParse.java

Added Paths:
-----------
    trunk/core/org.ibex.js/src_junit/test/js/parse/unterminated_statement.js

Modified: trunk/core/org.ibex.js/src_junit/test/js/parse/TestParse.java
===================================================================
--- trunk/core/org.ibex.js/src_junit/test/js/parse/TestParse.java       
2007-09-20 18:51:41 UTC (rev 2287)
+++ trunk/core/org.ibex.js/src_junit/test/js/parse/TestParse.java       
2007-09-20 20:54:01 UTC (rev 2288)
@@ -18,6 +18,10 @@
 
 public class TestParse extends TestCase {
 
+       public static void main(String[] args) throws Exception {
+               new TestParse().testUnterminatedStatement();
+               
+       }
        /** These are really Line number tests.
         * 
         * TODO - Preprocessing to have accurate line numbers embedded
@@ -66,6 +70,14 @@
                }
        }
        
+       public void testUnterminatedStatement() throws Exception {
+               try{
+                       JS f = parseFile("unterminated_statement.js");
+               }catch(JSExn e){
+                       assertTrue(e.getMessage().endsWith("3"));
+               }
+       }
+       
        InputStream getInputStreamForFile(String fileName) throws 
FileNotFoundException{
                File f = new File(resourceDir, fileName);
                if(f.exists())

Added: trunk/core/org.ibex.js/src_junit/test/js/parse/unterminated_statement.js
===================================================================
--- trunk/core/org.ibex.js/src_junit/test/js/parse/unterminated_statement.js    
                        (rev 0)
+++ trunk/core/org.ibex.js/src_junit/test/js/parse/unterminated_statement.js    
2007-09-20 20:54:01 UTC (rev 2288)
@@ -0,0 +1,4 @@
+
+
+       var a = x // doesn't exist
+       
\ No newline at end of file


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to