summaryrefslogtreecommitdiffstats
path: root/install/ui/test
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-04-23 15:17:54 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:29 +0200
commita069841ff0843c61edf5f501dd21b96dcac518c3 (patch)
tree107fab11444020e152d1e21f9ec54dc8ceb508a7 /install/ui/test
parent3599357bcc74afe47e50ef1672021cc7a83a952a (diff)
downloadfreeipa-a069841ff0843c61edf5f501dd21b96dcac518c3.tar.gz
freeipa-a069841ff0843c61edf5f501dd21b96dcac518c3.tar.xz
freeipa-a069841ff0843c61edf5f501dd21b96dcac518c3.zip
Replace ./facets with reg.facet
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/test')
-rw-r--r--install/ui/test/aci_tests.js5
-rw-r--r--install/ui/test/details_tests.js10
-rw-r--r--install/ui/test/entity_tests.js8
3 files changed, 12 insertions, 11 deletions
diff --git a/install/ui/test/aci_tests.js b/install/ui/test/aci_tests.js
index a98c45a1d..a819d3f14 100644
--- a/install/ui/test/aci_tests.js
+++ b/install/ui/test/aci_tests.js
@@ -19,6 +19,7 @@
*/
define([
+ 'freeipa/_base/metadata_provider',
'freeipa/aci',
'freeipa/details',
'freeipa/facet',
@@ -28,7 +29,7 @@ define([
'freeipa/reg',
'freeipa/widget'
],
- function(aci, mod_details, mod_facet, fields, IPA, $, reg, widgets) {
+ function(md, aci, mod_details, mod_facet, fields, IPA, $, reg, widgets) {
return function() {
var target_container;
@@ -135,7 +136,7 @@ module('aci', {
test("IPA.attributes_widget.", function() {
- var aciattrs = IPA.metadata.objects['user'].aciattrs;
+ var aciattrs = md.source.objects.user.aciattrs;
var container = $('<span/>', {
name: 'attrs'
diff --git a/install/ui/test/details_tests.js b/install/ui/test/details_tests.js
index 71eccfb45..cc087a6b4 100644
--- a/install/ui/test/details_tests.js
+++ b/install/ui/test/details_tests.js
@@ -19,16 +19,16 @@
*/
define([
+ 'freeipa/_base/metadata_provider',
'freeipa/ipa',
'freeipa/jquery',
'freeipa/details',
'freeipa/facet',
- 'freeipa/facets',
'freeipa/reg',
'freeipa/entity',
'freeipa/field',
'freeipa/widget'],
- function(IPA, $, mod_details, mod_facet, facets, reg) {
+ function(md, IPA, $, mod_details, mod_facet, reg) {
return function() {
var details_container;
@@ -38,7 +38,7 @@ module('details', {
setup: function() {
IPA.ajax_options.async = false;
- facets.register({
+ reg.facet.register({
type: 'details',
factory: IPA.details_facet,
pre_ops: [
@@ -62,13 +62,13 @@ module('details', {
return IPA.entity({
name: 'user',
- metadata: IPA.metadata.objects.user
+ metadata: md.source.objects.user
});
});
},
teardown: function() {
details_container.remove();
- facets.remove('details');
+ reg.facet.remove('details');
}
});
diff --git a/install/ui/test/entity_tests.js b/install/ui/test/entity_tests.js
index 5a085f7a0..8dbeab2f6 100644
--- a/install/ui/test/entity_tests.js
+++ b/install/ui/test/entity_tests.js
@@ -23,11 +23,11 @@ define([
'freeipa/ipa',
'freeipa/jquery',
'freeipa/facet',
- 'freeipa/facets',
'freeipa/search',
+ 'freeipa/reg',
'freeipa/entity',
'freeipa/details'],
- function(IPA, $, mod_facet, facets, mod_search) {
+ function(IPA, $, mod_facet, mod_search, reg) {
return function() {
var container;
@@ -39,7 +39,7 @@ module('entity',{
mod_search.register();
- facets.register({
+ reg.facet.register({
type: 'search',
factory: IPA.search_facet,
pre_ops: [
@@ -76,7 +76,7 @@ module('entity',{
},
teardown: function() {
container.remove();
- facets.remove('search');
+ reg.facet.remove('search');
}
});