diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2011-11-18 19:47:39 -0600 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-12-06 22:08:07 +0000 |
commit | caa9d52666e5beb7321dc6c80820eeacca356077 (patch) | |
tree | 01b91c26442e559632afbf652968c0dbd9c0291b /install/ui/test/details_tests.js | |
parent | a8ea42bda841c8773d68886614faf9efd38e33bd (diff) | |
download | freeipa-caa9d52666e5beb7321dc6c80820eeacca356077.tar.gz freeipa-caa9d52666e5beb7321dc6c80820eeacca356077.tar.xz freeipa-caa9d52666e5beb7321dc6c80820eeacca356077.zip |
Refactored facet.load().
The load() in IPA.facet has been modified to accept the complete
data returned by the server instead of just the result. This is
needed by HBAC Test to access other attributes returned in the
test result.
Ticket #388
Diffstat (limited to 'install/ui/test/details_tests.js')
-rw-r--r-- | install/ui/test/details_tests.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/install/ui/test/details_tests.js b/install/ui/test/details_tests.js index fee170ba0..353fb3ea1 100644 --- a/install/ui/test/details_tests.js +++ b/install/ui/test/details_tests.js @@ -112,7 +112,9 @@ test("Testing IPA.details_section.create().", function() { test("Testing details lifecycle: create, load.", function(){ - var result = {}; + var data = {}; + data.result = {}; + data.result.result = {}; IPA.command({ entity: 'user', @@ -242,7 +244,7 @@ test("Testing details lifecycle: create, load.", function(){ facet.create(facet_container); - facet.load(result); + facet.load(data); var contact = $('.details-section[name=contact]', facet_container); @@ -314,10 +316,12 @@ test("Testing IPA.details_section_create again()",function() { var details = $("<div/>"); container.append(details); - var result = {}; + var data = {}; + data.result = {}; + data.result.result = {}; section.create(container); - facet.load(result); + facet.load(data); var table = $('table', container); |