You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by mt...@apache.org on 2006/07/15 20:34:20 UTC

svn commit: r422289 - in /incubator/xap/trunk/testsrc/xap/xmodify: _TestxModify.html _TestxModifyHTML.html

Author: mturyn
Date: Sat Jul 15 13:34:20 2006
New Revision: 422289

URL: http://svn.apache.org/viewvc?rev=422289&view=rev
Log:
Objects in the tests rescoped to our conventions, e.g. Utils-->xap.util.Utils.; these tests run all right under Firefox,
but not under IE. Under normal circumstances one should not check in code that has an unexplained problem, but
	1.) These tests will fail without these changes as well---I had neglected to do
		do the unit tests under I.E. before checking in the many rescoped application classes
	2.) I suspect that the problem has nothing to do with the scoping, given that
		that should fail under Firefox as well as IE, and all the examples seem to
		run well under both browsers.

        

Modified:
    incubator/xap/trunk/testsrc/xap/xmodify/_TestxModify.html
    incubator/xap/trunk/testsrc/xap/xmodify/_TestxModifyHTML.html

Modified: incubator/xap/trunk/testsrc/xap/xmodify/_TestxModify.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/testsrc/xap/xmodify/_TestxModify.html?rev=422289&r1=422288&r2=422289&view=diff
==============================================================================
--- incubator/xap/trunk/testsrc/xap/xmodify/_TestxModify.html (original)
+++ incubator/xap/trunk/testsrc/xap/xmodify/_TestxModify.html Sat Jul 15 13:34:20 2006
@@ -4,7 +4,7 @@
 <html>
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-    <title>Testing Xmodify and associated classes</title>
+    <title>Testing xap.xml.xmodify.Xmodify and associated classes</title>
 
 	<style type="text/css">
       <!--
@@ -27,45 +27,47 @@
 var uiDoc = null;
 
 function setUp() {
-    Xmodify.DEBUG=true;
+    xap.xml.xmodify.Xmodify.DEBUG=true;
 	try {
-    	var requestService = new RequestService( null );
+    	var requestService = new xap.requestservice.RequestService( null );
     	
-    	// index.xal contains Xmodify instructions that need to get executed
+    	// index.xal contains xap.xml.xmodify.Xmodify instructions that need to get executed
     	var content = requestService.retrieve( "/jsunit/testsrc/xap/xmodify/xmodify.xal" ); 
- 		var parser = new SaxParser();
-		var handler = new SaxContentHandler();
+ 		var parser = new xap.xml.sax.SaxParser();
+		var handler = new xap.xml.sax.SaxContentHandler();
 		parser.setDocumentHandler( handler );
 		parser.parse( content.responseText );
-		
-		// At this point, 'doc' represents our Document containing Xmodify 
+
+		// At this point, 'doc' represents our xap.xml.dom.Document containing xap.xml.xmodify.Xmodify 
 		// instructions
  		var commandsDoc = handler._document;
- 	
+
  		// Get the container containing the UI doc (also our DOM) representing
- 		// the application UI.  All Xmodify ops will be executed against this
+ 		// the application UI.  All xap.xml.xmodify.Xmodify ops will be executed against this
  		// DOM.
- 		var documentContainer = new DocumentContainer();
+ 		var documentContainer = new xap.xml.DocumentContainer();		
+
  		uiDoc = documentContainer.getUiDocument();
- 		
+	
  		/////////////////////////////////////////////////
- 		// Here is what I need from Xmodify:
+ 		// Here is what I need from xap.xml.xmodify.Xmodify:
  		/////////////////////////////////////////////////
- 		var xmodify = new Xmodify( commandsDoc.firstChild.firstChild);
+ 		var xmodify = new xap.xml.xmodify.Xmodify( commandsDoc.firstChild.firstChild);
+
 		xmodify.execute( documentContainer ); 		
-				
+			
 	} catch (ee) {
 		// Need a catch here, even though we mean to do 
 		// nothing interesting:
 			throw ee ;
 	} finally {
 		// The reason for the try{} above
-	    Xmodify.DEBUG=false; 
+	    xap.xml.xmodify.Xmodify.DEBUG=false; 
 	}
 }
 
 function testRootElement(){
-	var rootElement = uiDoc.getRootElement();		
+	var rootElement = uiDoc.getRootElement();	
 	assertTrue( "Check Root Element", 
 					rootElement.getLocalName() == "xal" );						
 }

Modified: incubator/xap/trunk/testsrc/xap/xmodify/_TestxModifyHTML.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/testsrc/xap/xmodify/_TestxModifyHTML.html?rev=422289&r1=422288&r2=422289&view=diff
==============================================================================
--- incubator/xap/trunk/testsrc/xap/xmodify/_TestxModifyHTML.html (original)
+++ incubator/xap/trunk/testsrc/xap/xmodify/_TestxModifyHTML.html Sat Jul 15 13:34:20 2006
@@ -4,7 +4,7 @@
 <html>
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-    <title>Testing Xmodify and associated classes</title>
+    <title>Testing xap.xml.xmodify.Xmodify and associated classes</title>
 
 	<style type="text/css">
       <!--
@@ -26,28 +26,28 @@
 
 var setupOnce = true;
 function setUp() {
-    Xmodify.DEBUG=true;
+    xap.xml.xmodify.Xmodify.DEBUG=true;
     
     if (setupOnce == false) return;
     
 	try {
-    	var requestService = new RequestService( null );
+    	var requestService = new xap.requestservice.RequestService( null );
     	
-    	// index.xal contains Xmodify instructions that need to get executed
+    	// index.xal contains xap.xml.xmodify.Xmodify instructions that need to get executed
     	var content = requestService.retrieve( "/jsunit/testsrc/xap/xmodify/xmodifyHTML.xal" ); 
- 		var parser = new SaxParser();
-		var handler = new SaxContentHandler();
+ 		var parser = new xap.xml.sax.SaxParser();
+		var handler = new xap.xml.sax.SaxContentHandler();
 		parser.setDocumentHandler( handler );
 		parser.parse( content.responseText );
 		
-		// At this point, 'doc' represents our Document containing Xmodify 
+		// At this point, 'doc' represents our xap.xml.dom.Document containing xap.xml.xmodify.Xmodify 
 		// instructions
  		var commandsDoc = handler._document;
  			
  		/////////////////////////////////////////////////
- 		// Here is what I need from Xmodify:
+ 		// Here is what I need from xap.xml.xmodify.Xmodify:
  		/////////////////////////////////////////////////
- 		var xmodify = new Xmodify( commandsDoc.firstChild.firstChild);
+ 		var xmodify = new xap.xml.xmodify.Xmodify( commandsDoc.firstChild.firstChild);
 		xmodify.execute( document ); 		
 
 	} catch (ee) {
@@ -56,7 +56,7 @@
 			throw ee ;
 	} finally {
 		// The reason for the try{} above
-		Xmodify.DEBUG=false; 		    
+		xap.xml.xmodify.Xmodify.DEBUG=false; 		    
 		setupOnce = false;
 	}
 }