summaryrefslogtreecommitdiffstats
path: root/install/ui/test/widget_tests.js
Commit message (Collapse)AuthorAgeFilesLines
* Added Update and Reset buttons into Dirty dialog.Endi S. Dewata2011-05-271-4/+5
| | | | | | | | | | | | The Dirty dialogs have been combined into IPA.dirty_dialog. It provides the Update and Reset buttons with customizable callback. Previously the widget's dirty status is computed by comparing the old values with the new values. This method is sometimes inaccurate, so the is_dirty() method has been modified to simply return a flag which is set to true if the widget is changed. Ticket #896.
* Added multi-valued text widget.Endi S. Dewata2011-02-031-1/+33
| | | | | | | | | | | | | | | | | | A multi-valued text widget has been created to replace the old IPA.details_field. The old code was designed to handle all data types, and it uses one <dd> tag for each value, so the code is still incomplete and complex. The new code was designed to handle only multi-valued text attributes, and it uses one <dd> tag for all values, so it's easier to maintain. There are already other widgets that can be used to handle other data types. The new code supports line-level undo and line-out for removal like the old code, but there are some changes: - Undoing a newly added line will remove the entire line. - Editing the value of a removed line will cancel the removal. - It provides 'undo all' link to reset the entire attribute. The old code will be cleaned up in a subsequent patch.
* core widget unit tests baseline set of unit tests for checking that each ↵Adam Young2011-02-021-26/+139
| | | | widget conforms to the contract
* widget unit testsAdam Young2011-01-311-0/+166
unit test for basic functionality, text, and checkbox widgets