You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2008/12/05 12:37:05 UTC

svn commit: r723715 - /myfaces/core/branches/2_0_0/api/src/test/javascript/org/apache/myfaces/ajax/AjaxTests.js

Author: werpu
Date: Fri Dec  5 03:37:02 2008
New Revision: 723715

URL: http://svn.apache.org/viewvc?rev=723715&view=rev
Log:
https://issues.apache.org/jira/browse/MYFACES-2112
https://issues.apache.org/jira/browse/MYFACES-2114
https://issues.apache.org/jira/browse/MYFACES-2115

Modified:
    myfaces/core/branches/2_0_0/api/src/test/javascript/org/apache/myfaces/ajax/AjaxTests.js

Modified: myfaces/core/branches/2_0_0/api/src/test/javascript/org/apache/myfaces/ajax/AjaxTests.js
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/test/javascript/org/apache/myfaces/ajax/AjaxTests.js?rev=723715&r1=723714&r2=723715&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/test/javascript/org/apache/myfaces/ajax/AjaxTests.js (original)
+++ myfaces/core/branches/2_0_0/api/src/test/javascript/org/apache/myfaces/ajax/AjaxTests.js Fri Dec  5 03:37:02 2008
@@ -24,11 +24,22 @@
 }
 
 
+/**
+ * test the basic namespacing being active!
+ */
 function AjaxTest_testNameSpacing() {
-    this.assertTrue(true);
-    this.assertTrue( "namespacing javax exists" , 'undefined' != typeof javax );
-    this.assertTrue( "namespacing javax.faces.Ajax exists" , 'undefined' != typeof javax.faces );
-    this.assertTrue( "namespacing javax.faces.Ajax exists" , 'undefined' != typeof javax.faces.Ajax );
+    this.assertTrue( "namespacing javax exists" , 'undefined' != typeof javax && null != typeof(javax) );
+    this.assertTrue( "namespacing javax.faces.Ajax exists" , 'undefined' != typeof javax.faces && null != typeof(javax.faces) );
+    this.assertTrue( "namespacing javax.faces.Ajax exists" , 'undefined' != typeof javax.faces.Ajax && null != typeof(javax.faces.Ajax) );
+}
+
+/**
+ * test for all public functions to be present!
+ */
+function AjaxTest_testPublicFunctionAvailability() {
+    this.assertTrue("javax.faces.Ajax.ajaxRequest present", 'undefined' != typeof(javax.faces.Ajax.ajaxRequest) && null != javax.faces.Ajax.ajaxRequest);
+    this.assertTrue("javax.faces.Ajax.ajaxResponse present", 'undefined' != typeof(javax.faces.Ajax.ajaxResponse) && null != javax.faces.Ajax.ajaxResponse);
+    this.assertTrue("javax.faces.Ajax.getProjectStage present", 'undefined' != typeof(javax.faces.Ajax.getProjectStage) && null != javax.faces.Ajax.getProjectStage);
 }