summaryrefslogtreecommitdiffstats
path: root/install/static/test/details_tests.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-01-13 10:00:38 +0700
committerEndi Sukma Dewata <edewata@redhat.com>2011-01-13 02:14:51 -0500
commitd92f5bf8bb476bd2c90262db9b44ac659b61ecf5 (patch)
tree63f5a461bd197aeef54a6b4a35c66fa003e6fd27 /install/static/test/details_tests.js
parentb79bf4ab1757eb08f7209f158f1f3a386ace8c96 (diff)
downloadfreeipa.git-d92f5bf8bb476bd2c90262db9b44ac659b61ecf5.tar.gz
freeipa.git-d92f5bf8bb476bd2c90262db9b44ac659b61ecf5.tar.xz
freeipa.git-d92f5bf8bb476bd2c90262db9b44ac659b61ecf5.zip
Host details adjustments.
The labels for the following fields in Host details page have been changed: - fqdn: Fully Qualified Host Name - serverhostname: Host Name The ipa_details_field_create_input() and _ipa_create_text_input() has been converted into methods in ipa_details_field class. The code has been modified to display read-only fields as labels instead of disabled text fields. The attributelevelrights in host test data files have been updated.
Diffstat (limited to 'install/static/test/details_tests.js')
-rw-r--r--install/static/test/details_tests.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/install/static/test/details_tests.js b/install/static/test/details_tests.js
index baed80ce..1cb2036f 100644
--- a/install/static/test/details_tests.js
+++ b/install/static/test/details_tests.js
@@ -225,7 +225,7 @@ test("Testing details lifecycle: create, setup, load.", function(){
});
-test("Testing _ipa_create_text_input().", function(){
+test("Testing create_input().", function() {
var field = ipa_details_field({
'name': "name"
@@ -234,7 +234,7 @@ test("Testing _ipa_create_text_input().", function(){
var name = "name";
var value="value";
var rights = 'rscwo'
- var input = _ipa_create_text_input.call(field, value, null,rights);
+ var input = field.create_input(value, null, rights);
ok(input,"input not null");
var text = input.find('input');
@@ -245,7 +245,7 @@ test("Testing _ipa_create_text_input().", function(){
same(text[0].type,"text" );
});
-test("Testing _ipa_create_text_input() read only .", function(){
+test("Testing create_input() read only .", function() {
var field = ipa_details_field({
'name': "name"
@@ -254,7 +254,7 @@ test("Testing _ipa_create_text_input() read only .", function(){
var name = "name";
var value="value";
var rights = 'rsc'
- var input = _ipa_create_text_input.call(field, value, null,rights);
+ var input = field.create_input(value, null, rights);
ok(input,"input not null");
var text = input.find('input');