~renatofilho/address-book-app/address-book-app-wily

« back to all changes in this revision

Viewing changes to tests/qml/tst_ContactEditor.qml

  • Committer: CI Train Bot
  • Author(s): Renato Araujo Oliveira Filho
  • Date: 2015-12-11 16:50:23 UTC
  • mfrom: (492.2.10 choose-default-address-book)
  • Revision ID: ci-train-bot@canonical.com-20151211165023-r96z3r4qh9ghopee
Implemented the ability to choose the default address-book from settings page. Fixes: #1511471
Approved by: Gustavo Pichorim Boiko

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
 
70
70
        function init() {
71
71
            waitForRendering(contactEditor);
72
 
            var saveButton = findChild(root, 'save_button');
73
 
            compare(saveButton.enabled, false);
 
72
            tryCompare(contactEditor, 'saveActionEnabled', false);
74
73
        }
75
74
 
76
75
        function cleanup() {
113
112
        function test_fillRequiredFieldsMustEnableSaveButton(data) {
114
113
            var textField = findChild(root, data.objectName);
115
114
            textField.text = 'test'
116
 
            var saveButton = findChild(root, 'save_button');
117
 
            tryCompare(saveButton, 'enabled', true);
 
115
            tryCompare(contactEditor, 'saveActionEnabled', true);
118
116
        }
119
117
 
120
118
        function test_fillOptionalFieldsMustNotEnableSaveButton_data() {
125
123
        function test_fillOptionalFieldsMustNotEnableSaveButton(data) {
126
124
            var textField = findChild(root, data.objectName);
127
125
            textField.text = 'test'
128
 
            var saveButton = findChild(root, 'save_button');
129
 
            tryCompare(saveButton, 'enabled', false);
 
126
            tryCompare(contactEditor, 'saveActionEnabled', false);
130
127
        }
131
128
 
132
129
        function test_enterKeyMoveFocusedItem() {