summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-09-07 13:41:11 -0500
committerEndi S. Dewata <edewata@redhat.com>2011-09-07 19:23:46 +0000
commit2adb863cf3437d59c8794021d96f2ee7f250f982 (patch)
tree540b630872ae8a2dd15c0caeba2bad2e1dfc535d
parent1b397de2d205921648afa925da098a59fc7e8e94 (diff)
downloadfreeipa-2adb863cf3437d59c8794021d96f2ee7f250f982.zip
freeipa-2adb863cf3437d59c8794021d96f2ee7f250f982.tar.gz
freeipa-2adb863cf3437d59c8794021d96f2ee7f250f982.tar.xz
Fixed unit test for entity select widget.
The unit test for IPA.entity_select_widget has been fixed to check the options after loading the record.
-rw-r--r--install/ui/test/widget_tests.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/ui/test/widget_tests.js b/install/ui/test/widget_tests.js
index 1d7cd04..9f0f6f0 100644
--- a/install/ui/test/widget_tests.js
+++ b/install/ui/test/widget_tests.js
@@ -288,9 +288,9 @@ test("IPA.entity_select_widget" ,function(){
other_field: 'uid' };
base_widget_test('test_value');
- ok( $('option',widget.list ).length > 1,"options come from AJAX");
mock_record = {'uid':'kfrog'};
widget.load(mock_record);
+ ok( $('option',widget.list ).length > 1,"options come from AJAX");
same(widget.values[0],'kfrog','select set from values');
});