diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-10-26 01:20:35 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-10-27 13:48:17 +0000 |
commit | 725e2e46248ee9ab3dae9a523fcd6fda0bd0cff3 (patch) | |
tree | c089597fbd4cd9671b9362a6f0fcb9c5f8515df0 /install/ui/test | |
parent | 6af5755de595cc85b1f878710f834f43a23bf41c (diff) | |
download | freeipa-725e2e46248ee9ab3dae9a523fcd6fda0bd0cff3.tar.gz freeipa-725e2e46248ee9ab3dae9a523fcd6fda0bd0cff3.tar.xz freeipa-725e2e46248ee9ab3dae9a523fcd6fda0bd0cff3.zip |
Merged widget's metadata and param_info.
The metadata and param_info attributes in widget have been merged
because they are redundant.
Ticket #1436
Diffstat (limited to 'install/ui/test')
-rw-r--r-- | install/ui/test/ipa_tests.js | 20 | ||||
-rw-r--r-- | install/ui/test/widget_tests.js | 6 |
2 files changed, 13 insertions, 13 deletions
diff --git a/install/ui/test/ipa_tests.js b/install/ui/test/ipa_tests.js index 0a4d657f8..8b3efc708 100644 --- a/install/ui/test/ipa_tests.js +++ b/install/ui/test/ipa_tests.js @@ -38,37 +38,37 @@ test("Testing ipa_init().", function() { ); }); -test("Testing IPA.get_param_info().", function() { +test("Testing IPA.get_entity_param().", function() { - var param_info = IPA.get_entity_param("user", "uid"); + var metadata = IPA.get_entity_param("user", "uid"); ok( - param_info, - "IPA.get_param_info(\"user\", \"uid\") not null" + metadata, + "IPA.get_entity_param(\"user\", \"uid\") not null" ); equals( - param_info["label"], "User login", - "IPA.get_param_info(\"user\", \"uid\")[\"label\"]" + metadata["label"], "User login", + "IPA.get_entity_param(\"user\", \"uid\")[\"label\"]" ); equals( IPA.get_entity_param("user", "wrong_attribute"), null, - "IPA.get_param_info(\"user\", \"wrong_attribute\")" + "IPA.get_entity_param(\"user\", \"wrong_attribute\")" ); equals( IPA.get_entity_param("user", null), null, - "IPA.get_param_info(\"user\", null)" + "IPA.get_entity_param(\"user\", null)" ); equals( IPA.get_entity_param("wrong_entity", "uid"), null, - "IPA.get_param_info(\"wrong_entity\", \"uid\")" + "IPA.get_entity_param(\"wrong_entity\", \"uid\")" ); equals( IPA.get_entity_param(null, "uid"), null, - "IPA.get_param_info(null, \"uid\")" + "IPA.get_entity_param(null, \"uid\")" ); }); diff --git a/install/ui/test/widget_tests.js b/install/ui/test/widget_tests.js index caf28edcc..50a5f7d6f 100644 --- a/install/ui/test/widget_tests.js +++ b/install/ui/test/widget_tests.js @@ -106,9 +106,9 @@ function text_tests(widget,input){ same(widget.is_dirty(),false, "Undo Clears is_dirty"); - var old_pattern = widget.param_info.pattern; + var old_pattern = widget.metadata.pattern; - widget.param_info.pattern ='abc'; + widget.metadata.pattern ='abc'; input.val('not right'); input.keyup(); same(widget.valid,false, 'Field is not valid'); @@ -122,7 +122,7 @@ function text_tests(widget,input){ same(widget.valid,true, 'Field is valid'); same(error_field.css('display'),'none','error field not visible'); - widget.param_info.pattern = old_pattern; + widget.metadata.pattern = old_pattern; } |