summaryrefslogtreecommitdiffstats
path: root/tests/system/declarative/sys_textedit/sys_textedit.qtt
blob: 1ecef7a89dfe7aa3922c13bab78569fbf731c839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the FOO module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser General Public
** License version 2.1 as published by the Free Software Foundation and
** appearing in the file LICENSE.LGPL included in the packaging of this
** file. Please review the following information to ensure the GNU Lesser
** General Public License version 2.1 requirements will be met:
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU General
** Public License version 3.0 as published by the Free Software Foundation
** and appearing in the file LICENSE.GPL included in the packaging of this
** file. Please review the following information to ensure the GNU General
** Public License version 3.0 requirements will be met:
** http://www.gnu.org/copyleft/gpl.html.
**
** Other Usage
** Alternatively, this file may be used in accordance with the terms and
** conditions contained in a signed written agreement between you and Nokia.
**
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/


testcase = {

  select_text: function()
  {
      prompt(twiki('---++ Text Selection

| *Step* | *Verification* |
| Execute systemtests/Qt/examples/declarative/textedit/textedit.qml | |
| Enter Hello World into the green textedit field | Hello World is shown |
| Press the Select Word button, ensuring the previously entered text in no longer in pre-commit mode | World is selected |
| Press the Select All button | Hello World is selected |
| Press the Select None button | No text is selected |
| Press the Mouse Select button | The button turns green and indicates Mouse On |
| Click and drag over some text | Only that text is selected. On sans-keyboard Symbian, the soft keyboard may show with selected text highlighted |
| If the soft keyboard is shown, close it |  |
| Press the Mouse Select button | The button turns gray and indicates Mouse Off |
| Click and drag over some text | No text is selected. On sans-keyboard Symbian, the soft keyboard may show |
'));
  },

  cut_copy_and_paste: function()
  {
      prompt(twiki('---++ Cut, copy and paste

| *Step* | *Verification* |
| Execute systemtests/Qt/examples/declarative/textedit/textedit.qml | |
| Enter Hello World into the green textedit field | Hello World is shown |
| Press the Select All button | Hello World is selected |
| Press the Copy Button | |
| Press the Paste Button | Hello World is copied to the light-blue textedit |
| Press the Select Word button | World is highlighted |
| Press the Cut button | World is removed from the green textedit |
| Press the Paste button | World is added to the light-blue textedit |
'));
  },

  styling: function()
  {
      prompt(twiki('---++ Text Styling

| *Step* | *Verification* |
| Execute systemtests/Qt/examples/declarative/textedit/textedit.qml | |
| Enter Hello World into the green textedit field | Hello World is shown |
| Press the Bold button | Hello World is now in bold |
| Press the Italics button  | Hello World is now in italics |
| Press the Strikeout button | Hello World now has a line passing through it |
| Press the Underline button | Hello World is now underlined | '));
  },

  cursor_behavior: function()
  {
      prompt(twiki('---++ Cursor Behavior

| *Step* | *Verification* |
| Execute systemtests/Qt/examples/declarative/textedit/textedit.qml | The Cursor button shows enabled (green) |
| Enter enough text into the field such that it passes beyond the far right | The text wraps to line 2 |
| Press the Cursor button as to disable it | The cursor disappears |
| Press the Cursor button as to enable it | The cursor appears | '));
  },

  capitalization: function()
  {
      prompt(twiki('---++ Capitalization

| *Step* | *Verification* |
| Execute systemtests/Qt/examples/declarative/textedit/textedit.qml | |
| Enter Hello to this World into the green textedit field | Hello to this World is shown |
| Press the All Upper button | The text is converted to all upper case |
| Press the All Lower button | The text is converted to all lower case |
| Press the Small Caps button | The text is converted to all small sized upper case characters |
| Press the Capitalize button | The text is shown with each first character of every word capitalized | '));
  }

}