Merge lp:~aacid/unity8/cleanupTypeString into lp:unity8

Proposed by Albert Astals Cid on 2015-01-07
Status: Merged
Approved by: Michael Zanetti on 2015-01-09
Approved revision: 1524
Merged at revision: 1548
Proposed branch: lp:~aacid/unity8/cleanupTypeString
Merge into: lp:unity8
Diff against target: 81 lines (+1/-69)
1 file modified
tests/utils/modules/Unity/Test/UnityTestCase.qml (+1/-69)
To merge this branch: bzr merge lp:~aacid/unity8/cleanupTypeString
Reviewer Review Type Date Requested Status
Michael Zanetti (community) 2015-01-07 Approve on 2015-01-09
PS Jenkins bot continuous-integration Approve on 2015-01-08
Review via email: mp+245756@code.launchpad.net

Commit Message

Remove hack, newer Qt already support keyClick(char)

Description of the Change

 * Are there any related MPs required for this MP to build/function as expected?
No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
No, it's test only and tests pass

 * Did you make sure that your branch does not contain spurious tags?
Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

 * If you changed the UI, has there been a design review?
N/A

To post a comment you must log in.
Albert Astals Cid (aacid) wrote :

Triggered CI rebuild

Michael Zanetti (mzanetti) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?

No. This only affects testing. As Jenkins passed I'm gonna trust it.

 * Did CI run pass? If not, please explain why.

yep

 * Did you make sure that the branch does not contain spurious tags?

yes

review: Approve
MichaƂ Sawicz (saviq) wrote :

Just a Q: what is "newer Qt"? Do our package debs ensure the newer Qt already?

Albert Astals Cid (aacid) wrote :

> Just a Q: what is "newer Qt"? Do our package debs ensure the newer Qt already?

"newer" is Qt 5.1 ^_^
We require 5.2.1 or newer so it's fine

lp:~aacid/unity8/cleanupTypeString updated on 2015-01-12
1525. By Albert Astals Cid on 2015-01-12

Merge lp:unity8

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/utils/modules/Unity/Test/UnityTestCase.qml'
2--- tests/utils/modules/Unity/Test/UnityTestCase.qml 2015-01-09 10:42:42 +0000
3+++ tests/utils/modules/Unity/Test/UnityTestCase.qml 2015-01-12 08:32:17 +0000
4@@ -171,77 +171,9 @@
5 }
6
7 // Type a full string instead of keyClick letter by letter
8- // TODO: this is not ugly, this is uber-ugly and does not support
9- // any special character. Remove the keyMap once keyClick(obj, char)
10- // has landed in upstream Qt.
11 function typeString(str) {
12- var keyMap = {
13- "a": Qt.Key_A,
14- "b": Qt.Key_B,
15- "c": Qt.Key_C,
16- "d": Qt.Key_D,
17- "e": Qt.Key_E,
18- "f": Qt.Key_F,
19- "g": Qt.Key_G,
20- "h": Qt.Key_H,
21- "i": Qt.Key_I,
22- "j": Qt.Key_J,
23- "k": Qt.Key_K,
24- "l": Qt.Key_L,
25- "m": Qt.Key_M,
26- "n": Qt.Key_N,
27- "o": Qt.Key_O,
28- "p": Qt.Key_P,
29- "q": Qt.Key_Q,
30- "r": Qt.Key_R,
31- "s": Qt.Key_S,
32- "t": Qt.Key_T,
33- "u": Qt.Key_U,
34- "v": Qt.Key_V,
35- "w": Qt.Key_W,
36- "x": Qt.Key_X,
37- "y": Qt.Key_Y,
38- "z": Qt.Key_Z,
39- "A": Qt.Key_A,
40- "B": Qt.Key_B,
41- "C": Qt.Key_C,
42- "D": Qt.Key_D,
43- "E": Qt.Key_E,
44- "F": Qt.Key_F,
45- "G": Qt.Key_G,
46- "H": Qt.Key_H,
47- "I": Qt.Key_I,
48- "J": Qt.Key_J,
49- "K": Qt.Key_K,
50- "L": Qt.Key_L,
51- "M": Qt.Key_M,
52- "N": Qt.Key_N,
53- "O": Qt.Key_O,
54- "P": Qt.Key_P,
55- "Q": Qt.Key_Q,
56- "R": Qt.Key_R,
57- "S": Qt.Key_S,
58- "T": Qt.Key_T,
59- "U": Qt.Key_U,
60- "V": Qt.Key_V,
61- "W": Qt.Key_W,
62- "X": Qt.Key_X,
63- "Y": Qt.Key_Y,
64- "Z": Qt.Key_Z,
65- "0": Qt.Key_0,
66- "1": Qt.Key_1,
67- "2": Qt.Key_2,
68- "3": Qt.Key_3,
69- "4": Qt.Key_4,
70- "5": Qt.Key_5,
71- "6": Qt.Key_6,
72- "7": Qt.Key_7,
73- "8": Qt.Key_8,
74- "9": Qt.Key_9,
75- " ": Qt.Key_Space,
76- }
77 for (var i = 0; i < str.length; i++) {
78- keyClick(keyMap[str[i]])
79+ keyClick(str[i])
80 }
81 }
82

Subscribers

People subscribed via source and target branches