Fixed unit tests after widget refactoring

https://fedorahosted.org/freeipa/ticket/2040
This commit is contained in:
Petr Vobornik
2011-12-01 15:58:49 +01:00
committed by Endi S. Dewata
parent 2759ea2961
commit c5ca34f41d
13 changed files with 479 additions and 296 deletions

View File

@@ -51,18 +51,15 @@ test("Testing serial_associator().", function() {
equals(
command.entity, params.other_entity,
'Checking IPA.command() parameter: entity'
);
'Checking IPA.command() parameter: entity');
equals(
command.method, params.method,
'Checking IPA.command() parameter: method'
);
'Checking IPA.command() parameter: method');
equals(
command.args[0], 'user'+(i+1),
'Checking IPA.command() parameter: primary key'
);
'Checking IPA.command() parameter: primary key');
}
that.on_success({});
@@ -107,18 +104,15 @@ test("Testing bulk_associator().", function() {
equals(
that.method, params.method,
'Checking IPA.command() parameter: method'
);
'Checking IPA.command() parameter: method');
equals(
that.args[0], params.pkey,
'Checking IPA.command() parameter: primary key'
);
'Checking IPA.command() parameter: primary key');
equals(
that.options[params.other_entity], 'user1,user2,user3',
'Checking IPA.command() parameter: options[\""+params.other_entity+"\"]'
);
'Checking IPA.command() parameter: options[\""+params.other_entity+"\"]');
that.on_success({});
};