details: /erp/devel/pi/rev/3dda8c0238a4
changeset: 10374:3dda8c0238a4
user: Martin Taal <martin.taal <at> openbravo.com>
date: Fri Feb 04 07:20:31 2011 +0100
summary: Reformatted
details: /erp/devel/pi/rev/d8a4dc1764e2
changeset: 10375:d8a4dc1764e2
user: Martin Taal <martin.taal <at> openbravo.com>
date: Fri Feb 04 07:20:43 2011 +0100
summary: Added entries to the test registry
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-help-about-widget.js
| 8 +-
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-test-registry.js
| 42 ++++-----
2 files changed, 25 insertions(+), 25 deletions(-)
diffs (116 lines):
diff -r 644c6fdd4719 -r d8a4dc1764e2
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-help-about-widget.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-help-about-widget.js
Fri Feb 04 06:59:13 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-help-about-widget.js
Fri Feb 04 07:20:43 2011 +0100
@@ -11,7 +11,7 @@
* under the License.
* The Original Code is Openbravo ERP.
* The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010 Openbravo SLU
+ * All portions are Copyright (C) 2010-2011 Openbravo SLU
* All Rights Reserved.
* Contributor(s): ______________________________________.
************************************************************************
@@ -40,6 +40,7 @@
var tabPane = null, aboutLink = null, helpLink = null, helpView = null;
aboutLink = {
+ name: 'aboutLink',
editorType : 'link',
value : null,
showTitle : false,
@@ -55,6 +56,7 @@
};
helpLink = {
+ name: 'helpLink',
editorType : 'link',
value : null,
showTitle : false,
@@ -82,7 +84,9 @@
} else {
this.members[0].setFields( [ helpLink, aboutLink ]);
}
- }
+ }
+
OB.TestRegistry.register('org.openbravo.client.application.HelpAboutForm.HelpLink',
this.members[0].getField('helpLink'));
+
OB.TestRegistry.register('org.openbravo.client.application.HelpAboutForm.AboutLink',
this.members[0].getField('aboutLink'));
},
members : [ isc.DynamicForm.create( {
diff -r 644c6fdd4719 -r d8a4dc1764e2
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-test-registry.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-test-registry.js
Fri Feb 04 06:59:13 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-test-registry.js
Fri Feb 04 07:20:43 2011 +0100
@@ -11,53 +11,49 @@
* under the License.
* The Original Code is Openbravo ERP.
* The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010 Openbravo SLU
+ * All portions are Copyright (C) 2010-2011 Openbravo SLU
* All Rights Reserved.
* Contributor(s): ______________________________________.
************************************************************************
*/
-
// = Test Registry =
//
// Global registry to facilitate testing. Components can register themselves
in the
// TestRegistry using a unique name, selenium tests can then easily retrieve
components from the test registry
// using the unique name.
//
-(function(OB, isc) {
+(function(OB, isc){
if (!OB || !isc) {
throw {
- name : 'ReferenceError',
- message : 'openbravo and isc objects are required'
+ name: 'ReferenceError',
+ message: 'openbravo and isc objects are required'
};
}
-
+
var fullUrl = parent.document.URL;
var queryString = fullUrl.substring(fullUrl.indexOf('?') + 1,
fullUrl.length);
var isTestEnvironment = queryString.indexOf('test=true') !== -1;
if (isTestEnvironment) {
- isc.Log.logDebug('Test Environment, registering test components enabled',
- 'OB');
+ isc.Log.logDebug('Test Environment, registering test components enabled',
'OB');
} else {
- isc.Log.logDebug(
- 'No Test Environment, registering test components disabled', 'OB');
+ isc.Log.logDebug('No Test Environment, registering test components
disabled', 'OB');
}
-
- function TestRegistry() {
+
+ function TestRegistry(){
}
-
+
TestRegistry.prototype = {
-
- registry : {},
-
- register : function(key, object) {
+
+ registry: {},
+
+ register: function(key, object){
if (true || isTestEnvironment) {
isc.Log.logDebug('Registering ' + key + ' in test registry ', 'OB');
- // add collision detection
- this.registry[key] = object;
- }
-}
+ this.registry[key] = object;
+ }
+ }
};
-
+
OB.TestRegistry = new TestRegistry();
-})(OB, isc);
\ No newline at end of file
+})(OB, isc);
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits