myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r723715 - /myfaces/core/branches/2_0_0/api/src/test/javascript/org/apache/myfaces/ajax/AjaxTests.js
Date Fri, 05 Dec 2008 11:37:05 GMT
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);
 }
 
 



Mime
View raw message