summaryrefslogtreecommitdiffstats
path: root/install/ui/test
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-04-16 12:59:38 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:26 +0200
commite100ba7e2b14b74ed548ee0dd6ba1093b17dd795 (patch)
tree6b675d9643a74b717ecb70e0c642405818311472 /install/ui/test
parent1221fca6628450c6cd3031b377c7426fa4b1b0ad (diff)
downloadfreeipa-e100ba7e2b14b74ed548ee0dd6ba1093b17dd795.tar.gz
freeipa-e100ba7e2b14b74ed548ee0dd6ba1093b17dd795.tar.xz
freeipa-e100ba7e2b14b74ed548ee0dd6ba1093b17dd795.zip
Replace build logic in widget and field builder by new builder
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/test')
-rw-r--r--install/ui/test/aci_tests.js12
-rw-r--r--install/ui/test/details_tests.js22
2 files changed, 12 insertions, 22 deletions
diff --git a/install/ui/test/aci_tests.js b/install/ui/test/aci_tests.js
index 3ced0bd47..cc248c928 100644
--- a/install/ui/test/aci_tests.js
+++ b/install/ui/test/aci_tests.js
@@ -54,7 +54,7 @@ module('aci', {
entity: entity,
fields: [
{
- type: 'select',
+ $type: 'select',
name: 'target',
widget: 'target.target',
enabled: false
@@ -65,7 +65,7 @@ module('aci', {
enabled: false
},
{
- type: 'entity_select',
+ $type: 'entity_select',
name: 'memberof',
widget: 'target.memberof',
enabled: false
@@ -76,13 +76,13 @@ module('aci', {
enabled: false
},
{
- type: 'entity_select',
+ $type: 'entity_select',
name: 'targetgroup',
widget: 'target.targetgroup',
enabled: false
},
{
- type: 'select',
+ $type: 'select',
name: 'type',
widget: 'target.type',
enabled: false
@@ -95,14 +95,14 @@ module('aci', {
{
name: 'attrs_multi',
param: 'attrs',
- type: 'multivalued',
+ $type: 'multivalued',
widget: 'target.attrs_multi',
enabled: false
}
],
widgets: [
{
- type: 'permission_target',
+ $type: 'permission_target',
container_factory: IPA.details_table_section,
group_entity: group_entity,
name: 'target',
diff --git a/install/ui/test/details_tests.js b/install/ui/test/details_tests.js
index 521bfa35a..0ad9fb720 100644
--- a/install/ui/test/details_tests.js
+++ b/install/ui/test/details_tests.js
@@ -152,16 +152,6 @@ test("Testing details lifecycle: create, load.", function(){
var update_success_called = false;
var update_failure_called = false;
-
- function save_password(){
- save_called = true;
- return [];
- }
-
- function load_manager(){
- load_called = true;
- }
-
function test_field(spec) {
var that = IPA.field(spec);
@@ -208,27 +198,27 @@ test("Testing details lifecycle: create, load.", function(){
label: 'contact',
fields: [
{
- type: 'test',
+ $type: 'test',
name:'test'
},
{
- type: 'multivalued',
+ $type: 'multivalued',
name:'mail'
},
{
- type: 'multivalued',
+ $type: 'multivalued',
name:'telephonenumber'
},
{
- type: 'multivalued',
+ $type: 'multivalued',
name:'pager'
},
{
- type: 'multivalued',
+ $type: 'multivalued',
name:'mobile'
},
{
- type: 'multivalued',
+ $type: 'multivalued',
name:'facsimiletelephonenumber'
}
]