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.
This commit is contained in:
Endi S. Dewata 2011-09-07 13:41:11 -05:00
parent d02e72d3e8
commit 05034f13e6

View File

@ -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');
});