Merge lp:~canonical-platform-qa/ubuntu-autopilot-tests/oneline_accounts_window into lp:ubuntu-autopilot-tests
- oneline_accounts_window
- Merge into trunk
Status: | Superseded |
---|---|
Proposed branch: | lp:~canonical-platform-qa/ubuntu-autopilot-tests/oneline_accounts_window |
Merge into: | lp:ubuntu-autopilot-tests |
Diff against target: |
1264 lines (+1176/-0) (has conflicts) 16 files modified
.bzr-builddeb/default.conf (+2/-0) COPYING (+674/-0) README (+12/-0) debian/changelog (+48/-0) debian/compat (+1/-0) debian/control (+27/-0) debian/copyright (+28/-0) debian/rules (+16/-0) debian/source/format (+1/-0) setup.py (+35/-0) ubuntu_experience_tests/__init__.py (+17/-0) ubuntu_experience_tests/fixture_setup.py (+30/-0) ubuntu_experience_tests/helpers.py (+135/-0) ubuntu_experience_tests/tests/__init__.py (+36/-0) ubuntu_experience_tests/tests/application_life_cycle/test_url_dispatcher.py (+58/-0) ubuntu_experience_tests/tests/test_fixture_setup.py (+56/-0) Conflict adding file debian. Moved existing file to debian.moved. Conflict adding file setup.py. Moved existing file to setup.py.moved. |
To merge this branch: | bzr merge lp:~canonical-platform-qa/ubuntu-autopilot-tests/oneline_accounts_window |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Canonical Platform QA Team | Pending | ||
Ubuntu Testcase Admins | Pending | ||
Review via email: mp+231471@code.launchpad.net |
This proposal has been superseded by a proposal from 2014-08-19.
Commit message
Now the online accounts ui is not a window separate from system settings.
Description of the change
Unmerged revisions
- 29. By Leo Arias
-
Now the online accounts ui is not a window separate from system settings.
- 28. By PS Jenkins bot
-
Resync trunk
- 27. By PS Jenkins bot
-
Releasing 0.1+14.
10.20140808- 0ubuntu1 - 26. By Leo Arias
-
Initial commit of Debian packaging.
Approved by: Barry Warsaw, Martin Pitt - 25. By Leo Arias
-
Updated the test to take into account the new dash app.
- 24. By Leo Arias
-
Fixed the packaging to install ubuntu_
experience_ tests as a py3 library. Approved by PS Jenkins bot, Thomi Richards.
- 23. By Leo Arias
-
Fix a couple of minor issues that slipped in with the ContactsDbusService branch.
- 22. By Leo Arias
-
Ported package to python3. Removed dialer tests for now, because it is python2.
- 21. By Dan Chapman
-
Merge: Brendan Donegan 2014-06-19 Fix call to get_vcard_uid
- 20. By Leo Arias
-
skiptest is a typo in test_osd_
dialer_ integration. py, should be skipTest
Preview Diff
1 | === added directory '.bzr-builddeb' | |||
2 | === added file '.bzr-builddeb/default.conf' | |||
3 | --- .bzr-builddeb/default.conf 1970-01-01 00:00:00 +0000 | |||
4 | +++ .bzr-builddeb/default.conf 2014-08-19 22:56:22 +0000 | |||
5 | @@ -0,0 +1,2 @@ | |||
6 | 1 | [BUILDDEB] | ||
7 | 2 | split = True | ||
8 | 0 | 3 | ||
9 | === added file 'COPYING' | |||
10 | --- COPYING 1970-01-01 00:00:00 +0000 | |||
11 | +++ COPYING 2014-08-19 22:56:22 +0000 | |||
12 | @@ -0,0 +1,674 @@ | |||
13 | 1 | GNU GENERAL PUBLIC LICENSE | ||
14 | 2 | Version 3, 29 June 2007 | ||
15 | 3 | |||
16 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | ||
17 | 5 | Everyone is permitted to copy and distribute verbatim copies | ||
18 | 6 | of this license document, but changing it is not allowed. | ||
19 | 7 | |||
20 | 8 | Preamble | ||
21 | 9 | |||
22 | 10 | The GNU General Public License is a free, copyleft license for | ||
23 | 11 | software and other kinds of works. | ||
24 | 12 | |||
25 | 13 | The licenses for most software and other practical works are designed | ||
26 | 14 | to take away your freedom to share and change the works. By contrast, | ||
27 | 15 | the GNU General Public License is intended to guarantee your freedom to | ||
28 | 16 | share and change all versions of a program--to make sure it remains free | ||
29 | 17 | software for all its users. We, the Free Software Foundation, use the | ||
30 | 18 | GNU General Public License for most of our software; it applies also to | ||
31 | 19 | any other work released this way by its authors. You can apply it to | ||
32 | 20 | your programs, too. | ||
33 | 21 | |||
34 | 22 | When we speak of free software, we are referring to freedom, not | ||
35 | 23 | price. Our General Public Licenses are designed to make sure that you | ||
36 | 24 | have the freedom to distribute copies of free software (and charge for | ||
37 | 25 | them if you wish), that you receive source code or can get it if you | ||
38 | 26 | want it, that you can change the software or use pieces of it in new | ||
39 | 27 | free programs, and that you know you can do these things. | ||
40 | 28 | |||
41 | 29 | To protect your rights, we need to prevent others from denying you | ||
42 | 30 | these rights or asking you to surrender the rights. Therefore, you have | ||
43 | 31 | certain responsibilities if you distribute copies of the software, or if | ||
44 | 32 | you modify it: responsibilities to respect the freedom of others. | ||
45 | 33 | |||
46 | 34 | For example, if you distribute copies of such a program, whether | ||
47 | 35 | gratis or for a fee, you must pass on to the recipients the same | ||
48 | 36 | freedoms that you received. You must make sure that they, too, receive | ||
49 | 37 | or can get the source code. And you must show them these terms so they | ||
50 | 38 | know their rights. | ||
51 | 39 | |||
52 | 40 | Developers that use the GNU GPL protect your rights with two steps: | ||
53 | 41 | (1) assert copyright on the software, and (2) offer you this License | ||
54 | 42 | giving you legal permission to copy, distribute and/or modify it. | ||
55 | 43 | |||
56 | 44 | For the developers' and authors' protection, the GPL clearly explains | ||
57 | 45 | that there is no warranty for this free software. For both users' and | ||
58 | 46 | authors' sake, the GPL requires that modified versions be marked as | ||
59 | 47 | changed, so that their problems will not be attributed erroneously to | ||
60 | 48 | authors of previous versions. | ||
61 | 49 | |||
62 | 50 | Some devices are designed to deny users access to install or run | ||
63 | 51 | modified versions of the software inside them, although the manufacturer | ||
64 | 52 | can do so. This is fundamentally incompatible with the aim of | ||
65 | 53 | protecting users' freedom to change the software. The systematic | ||
66 | 54 | pattern of such abuse occurs in the area of products for individuals to | ||
67 | 55 | use, which is precisely where it is most unacceptable. Therefore, we | ||
68 | 56 | have designed this version of the GPL to prohibit the practice for those | ||
69 | 57 | products. If such problems arise substantially in other domains, we | ||
70 | 58 | stand ready to extend this provision to those domains in future versions | ||
71 | 59 | of the GPL, as needed to protect the freedom of users. | ||
72 | 60 | |||
73 | 61 | Finally, every program is threatened constantly by software patents. | ||
74 | 62 | States should not allow patents to restrict development and use of | ||
75 | 63 | software on general-purpose computers, but in those that do, we wish to | ||
76 | 64 | avoid the special danger that patents applied to a free program could | ||
77 | 65 | make it effectively proprietary. To prevent this, the GPL assures that | ||
78 | 66 | patents cannot be used to render the program non-free. | ||
79 | 67 | |||
80 | 68 | The precise terms and conditions for copying, distribution and | ||
81 | 69 | modification follow. | ||
82 | 70 | |||
83 | 71 | TERMS AND CONDITIONS | ||
84 | 72 | |||
85 | 73 | 0. Definitions. | ||
86 | 74 | |||
87 | 75 | "This License" refers to version 3 of the GNU General Public License. | ||
88 | 76 | |||
89 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of | ||
90 | 78 | works, such as semiconductor masks. | ||
91 | 79 | |||
92 | 80 | "The Program" refers to any copyrightable work licensed under this | ||
93 | 81 | License. Each licensee is addressed as "you". "Licensees" and | ||
94 | 82 | "recipients" may be individuals or organizations. | ||
95 | 83 | |||
96 | 84 | To "modify" a work means to copy from or adapt all or part of the work | ||
97 | 85 | in a fashion requiring copyright permission, other than the making of an | ||
98 | 86 | exact copy. The resulting work is called a "modified version" of the | ||
99 | 87 | earlier work or a work "based on" the earlier work. | ||
100 | 88 | |||
101 | 89 | A "covered work" means either the unmodified Program or a work based | ||
102 | 90 | on the Program. | ||
103 | 91 | |||
104 | 92 | To "propagate" a work means to do anything with it that, without | ||
105 | 93 | permission, would make you directly or secondarily liable for | ||
106 | 94 | infringement under applicable copyright law, except executing it on a | ||
107 | 95 | computer or modifying a private copy. Propagation includes copying, | ||
108 | 96 | distribution (with or without modification), making available to the | ||
109 | 97 | public, and in some countries other activities as well. | ||
110 | 98 | |||
111 | 99 | To "convey" a work means any kind of propagation that enables other | ||
112 | 100 | parties to make or receive copies. Mere interaction with a user through | ||
113 | 101 | a computer network, with no transfer of a copy, is not conveying. | ||
114 | 102 | |||
115 | 103 | An interactive user interface displays "Appropriate Legal Notices" | ||
116 | 104 | to the extent that it includes a convenient and prominently visible | ||
117 | 105 | feature that (1) displays an appropriate copyright notice, and (2) | ||
118 | 106 | tells the user that there is no warranty for the work (except to the | ||
119 | 107 | extent that warranties are provided), that licensees may convey the | ||
120 | 108 | work under this License, and how to view a copy of this License. If | ||
121 | 109 | the interface presents a list of user commands or options, such as a | ||
122 | 110 | menu, a prominent item in the list meets this criterion. | ||
123 | 111 | |||
124 | 112 | 1. Source Code. | ||
125 | 113 | |||
126 | 114 | The "source code" for a work means the preferred form of the work | ||
127 | 115 | for making modifications to it. "Object code" means any non-source | ||
128 | 116 | form of a work. | ||
129 | 117 | |||
130 | 118 | A "Standard Interface" means an interface that either is an official | ||
131 | 119 | standard defined by a recognized standards body, or, in the case of | ||
132 | 120 | interfaces specified for a particular programming language, one that | ||
133 | 121 | is widely used among developers working in that language. | ||
134 | 122 | |||
135 | 123 | The "System Libraries" of an executable work include anything, other | ||
136 | 124 | than the work as a whole, that (a) is included in the normal form of | ||
137 | 125 | packaging a Major Component, but which is not part of that Major | ||
138 | 126 | Component, and (b) serves only to enable use of the work with that | ||
139 | 127 | Major Component, or to implement a Standard Interface for which an | ||
140 | 128 | implementation is available to the public in source code form. A | ||
141 | 129 | "Major Component", in this context, means a major essential component | ||
142 | 130 | (kernel, window system, and so on) of the specific operating system | ||
143 | 131 | (if any) on which the executable work runs, or a compiler used to | ||
144 | 132 | produce the work, or an object code interpreter used to run it. | ||
145 | 133 | |||
146 | 134 | The "Corresponding Source" for a work in object code form means all | ||
147 | 135 | the source code needed to generate, install, and (for an executable | ||
148 | 136 | work) run the object code and to modify the work, including scripts to | ||
149 | 137 | control those activities. However, it does not include the work's | ||
150 | 138 | System Libraries, or general-purpose tools or generally available free | ||
151 | 139 | programs which are used unmodified in performing those activities but | ||
152 | 140 | which are not part of the work. For example, Corresponding Source | ||
153 | 141 | includes interface definition files associated with source files for | ||
154 | 142 | the work, and the source code for shared libraries and dynamically | ||
155 | 143 | linked subprograms that the work is specifically designed to require, | ||
156 | 144 | such as by intimate data communication or control flow between those | ||
157 | 145 | subprograms and other parts of the work. | ||
158 | 146 | |||
159 | 147 | The Corresponding Source need not include anything that users | ||
160 | 148 | can regenerate automatically from other parts of the Corresponding | ||
161 | 149 | Source. | ||
162 | 150 | |||
163 | 151 | The Corresponding Source for a work in source code form is that | ||
164 | 152 | same work. | ||
165 | 153 | |||
166 | 154 | 2. Basic Permissions. | ||
167 | 155 | |||
168 | 156 | All rights granted under this License are granted for the term of | ||
169 | 157 | copyright on the Program, and are irrevocable provided the stated | ||
170 | 158 | conditions are met. This License explicitly affirms your unlimited | ||
171 | 159 | permission to run the unmodified Program. The output from running a | ||
172 | 160 | covered work is covered by this License only if the output, given its | ||
173 | 161 | content, constitutes a covered work. This License acknowledges your | ||
174 | 162 | rights of fair use or other equivalent, as provided by copyright law. | ||
175 | 163 | |||
176 | 164 | You may make, run and propagate covered works that you do not | ||
177 | 165 | convey, without conditions so long as your license otherwise remains | ||
178 | 166 | in force. You may convey covered works to others for the sole purpose | ||
179 | 167 | of having them make modifications exclusively for you, or provide you | ||
180 | 168 | with facilities for running those works, provided that you comply with | ||
181 | 169 | the terms of this License in conveying all material for which you do | ||
182 | 170 | not control copyright. Those thus making or running the covered works | ||
183 | 171 | for you must do so exclusively on your behalf, under your direction | ||
184 | 172 | and control, on terms that prohibit them from making any copies of | ||
185 | 173 | your copyrighted material outside their relationship with you. | ||
186 | 174 | |||
187 | 175 | Conveying under any other circumstances is permitted solely under | ||
188 | 176 | the conditions stated below. Sublicensing is not allowed; section 10 | ||
189 | 177 | makes it unnecessary. | ||
190 | 178 | |||
191 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. | ||
192 | 180 | |||
193 | 181 | No covered work shall be deemed part of an effective technological | ||
194 | 182 | measure under any applicable law fulfilling obligations under article | ||
195 | 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or | ||
196 | 184 | similar laws prohibiting or restricting circumvention of such | ||
197 | 185 | measures. | ||
198 | 186 | |||
199 | 187 | When you convey a covered work, you waive any legal power to forbid | ||
200 | 188 | circumvention of technological measures to the extent such circumvention | ||
201 | 189 | is effected by exercising rights under this License with respect to | ||
202 | 190 | the covered work, and you disclaim any intention to limit operation or | ||
203 | 191 | modification of the work as a means of enforcing, against the work's | ||
204 | 192 | users, your or third parties' legal rights to forbid circumvention of | ||
205 | 193 | technological measures. | ||
206 | 194 | |||
207 | 195 | 4. Conveying Verbatim Copies. | ||
208 | 196 | |||
209 | 197 | You may convey verbatim copies of the Program's source code as you | ||
210 | 198 | receive it, in any medium, provided that you conspicuously and | ||
211 | 199 | appropriately publish on each copy an appropriate copyright notice; | ||
212 | 200 | keep intact all notices stating that this License and any | ||
213 | 201 | non-permissive terms added in accord with section 7 apply to the code; | ||
214 | 202 | keep intact all notices of the absence of any warranty; and give all | ||
215 | 203 | recipients a copy of this License along with the Program. | ||
216 | 204 | |||
217 | 205 | You may charge any price or no price for each copy that you convey, | ||
218 | 206 | and you may offer support or warranty protection for a fee. | ||
219 | 207 | |||
220 | 208 | 5. Conveying Modified Source Versions. | ||
221 | 209 | |||
222 | 210 | You may convey a work based on the Program, or the modifications to | ||
223 | 211 | produce it from the Program, in the form of source code under the | ||
224 | 212 | terms of section 4, provided that you also meet all of these conditions: | ||
225 | 213 | |||
226 | 214 | a) The work must carry prominent notices stating that you modified | ||
227 | 215 | it, and giving a relevant date. | ||
228 | 216 | |||
229 | 217 | b) The work must carry prominent notices stating that it is | ||
230 | 218 | released under this License and any conditions added under section | ||
231 | 219 | 7. This requirement modifies the requirement in section 4 to | ||
232 | 220 | "keep intact all notices". | ||
233 | 221 | |||
234 | 222 | c) You must license the entire work, as a whole, under this | ||
235 | 223 | License to anyone who comes into possession of a copy. This | ||
236 | 224 | License will therefore apply, along with any applicable section 7 | ||
237 | 225 | additional terms, to the whole of the work, and all its parts, | ||
238 | 226 | regardless of how they are packaged. This License gives no | ||
239 | 227 | permission to license the work in any other way, but it does not | ||
240 | 228 | invalidate such permission if you have separately received it. | ||
241 | 229 | |||
242 | 230 | d) If the work has interactive user interfaces, each must display | ||
243 | 231 | Appropriate Legal Notices; however, if the Program has interactive | ||
244 | 232 | interfaces that do not display Appropriate Legal Notices, your | ||
245 | 233 | work need not make them do so. | ||
246 | 234 | |||
247 | 235 | A compilation of a covered work with other separate and independent | ||
248 | 236 | works, which are not by their nature extensions of the covered work, | ||
249 | 237 | and which are not combined with it such as to form a larger program, | ||
250 | 238 | in or on a volume of a storage or distribution medium, is called an | ||
251 | 239 | "aggregate" if the compilation and its resulting copyright are not | ||
252 | 240 | used to limit the access or legal rights of the compilation's users | ||
253 | 241 | beyond what the individual works permit. Inclusion of a covered work | ||
254 | 242 | in an aggregate does not cause this License to apply to the other | ||
255 | 243 | parts of the aggregate. | ||
256 | 244 | |||
257 | 245 | 6. Conveying Non-Source Forms. | ||
258 | 246 | |||
259 | 247 | You may convey a covered work in object code form under the terms | ||
260 | 248 | of sections 4 and 5, provided that you also convey the | ||
261 | 249 | machine-readable Corresponding Source under the terms of this License, | ||
262 | 250 | in one of these ways: | ||
263 | 251 | |||
264 | 252 | a) Convey the object code in, or embodied in, a physical product | ||
265 | 253 | (including a physical distribution medium), accompanied by the | ||
266 | 254 | Corresponding Source fixed on a durable physical medium | ||
267 | 255 | customarily used for software interchange. | ||
268 | 256 | |||
269 | 257 | b) Convey the object code in, or embodied in, a physical product | ||
270 | 258 | (including a physical distribution medium), accompanied by a | ||
271 | 259 | written offer, valid for at least three years and valid for as | ||
272 | 260 | long as you offer spare parts or customer support for that product | ||
273 | 261 | model, to give anyone who possesses the object code either (1) a | ||
274 | 262 | copy of the Corresponding Source for all the software in the | ||
275 | 263 | product that is covered by this License, on a durable physical | ||
276 | 264 | medium customarily used for software interchange, for a price no | ||
277 | 265 | more than your reasonable cost of physically performing this | ||
278 | 266 | conveying of source, or (2) access to copy the | ||
279 | 267 | Corresponding Source from a network server at no charge. | ||
280 | 268 | |||
281 | 269 | c) Convey individual copies of the object code with a copy of the | ||
282 | 270 | written offer to provide the Corresponding Source. This | ||
283 | 271 | alternative is allowed only occasionally and noncommercially, and | ||
284 | 272 | only if you received the object code with such an offer, in accord | ||
285 | 273 | with subsection 6b. | ||
286 | 274 | |||
287 | 275 | d) Convey the object code by offering access from a designated | ||
288 | 276 | place (gratis or for a charge), and offer equivalent access to the | ||
289 | 277 | Corresponding Source in the same way through the same place at no | ||
290 | 278 | further charge. You need not require recipients to copy the | ||
291 | 279 | Corresponding Source along with the object code. If the place to | ||
292 | 280 | copy the object code is a network server, the Corresponding Source | ||
293 | 281 | may be on a different server (operated by you or a third party) | ||
294 | 282 | that supports equivalent copying facilities, provided you maintain | ||
295 | 283 | clear directions next to the object code saying where to find the | ||
296 | 284 | Corresponding Source. Regardless of what server hosts the | ||
297 | 285 | Corresponding Source, you remain obligated to ensure that it is | ||
298 | 286 | available for as long as needed to satisfy these requirements. | ||
299 | 287 | |||
300 | 288 | e) Convey the object code using peer-to-peer transmission, provided | ||
301 | 289 | you inform other peers where the object code and Corresponding | ||
302 | 290 | Source of the work are being offered to the general public at no | ||
303 | 291 | charge under subsection 6d. | ||
304 | 292 | |||
305 | 293 | A separable portion of the object code, whose source code is excluded | ||
306 | 294 | from the Corresponding Source as a System Library, need not be | ||
307 | 295 | included in conveying the object code work. | ||
308 | 296 | |||
309 | 297 | A "User Product" is either (1) a "consumer product", which means any | ||
310 | 298 | tangible personal property which is normally used for personal, family, | ||
311 | 299 | or household purposes, or (2) anything designed or sold for incorporation | ||
312 | 300 | into a dwelling. In determining whether a product is a consumer product, | ||
313 | 301 | doubtful cases shall be resolved in favor of coverage. For a particular | ||
314 | 302 | product received by a particular user, "normally used" refers to a | ||
315 | 303 | typical or common use of that class of product, regardless of the status | ||
316 | 304 | of the particular user or of the way in which the particular user | ||
317 | 305 | actually uses, or expects or is expected to use, the product. A product | ||
318 | 306 | is a consumer product regardless of whether the product has substantial | ||
319 | 307 | commercial, industrial or non-consumer uses, unless such uses represent | ||
320 | 308 | the only significant mode of use of the product. | ||
321 | 309 | |||
322 | 310 | "Installation Information" for a User Product means any methods, | ||
323 | 311 | procedures, authorization keys, or other information required to install | ||
324 | 312 | and execute modified versions of a covered work in that User Product from | ||
325 | 313 | a modified version of its Corresponding Source. The information must | ||
326 | 314 | suffice to ensure that the continued functioning of the modified object | ||
327 | 315 | code is in no case prevented or interfered with solely because | ||
328 | 316 | modification has been made. | ||
329 | 317 | |||
330 | 318 | If you convey an object code work under this section in, or with, or | ||
331 | 319 | specifically for use in, a User Product, and the conveying occurs as | ||
332 | 320 | part of a transaction in which the right of possession and use of the | ||
333 | 321 | User Product is transferred to the recipient in perpetuity or for a | ||
334 | 322 | fixed term (regardless of how the transaction is characterized), the | ||
335 | 323 | Corresponding Source conveyed under this section must be accompanied | ||
336 | 324 | by the Installation Information. But this requirement does not apply | ||
337 | 325 | if neither you nor any third party retains the ability to install | ||
338 | 326 | modified object code on the User Product (for example, the work has | ||
339 | 327 | been installed in ROM). | ||
340 | 328 | |||
341 | 329 | The requirement to provide Installation Information does not include a | ||
342 | 330 | requirement to continue to provide support service, warranty, or updates | ||
343 | 331 | for a work that has been modified or installed by the recipient, or for | ||
344 | 332 | the User Product in which it has been modified or installed. Access to a | ||
345 | 333 | network may be denied when the modification itself materially and | ||
346 | 334 | adversely affects the operation of the network or violates the rules and | ||
347 | 335 | protocols for communication across the network. | ||
348 | 336 | |||
349 | 337 | Corresponding Source conveyed, and Installation Information provided, | ||
350 | 338 | in accord with this section must be in a format that is publicly | ||
351 | 339 | documented (and with an implementation available to the public in | ||
352 | 340 | source code form), and must require no special password or key for | ||
353 | 341 | unpacking, reading or copying. | ||
354 | 342 | |||
355 | 343 | 7. Additional Terms. | ||
356 | 344 | |||
357 | 345 | "Additional permissions" are terms that supplement the terms of this | ||
358 | 346 | License by making exceptions from one or more of its conditions. | ||
359 | 347 | Additional permissions that are applicable to the entire Program shall | ||
360 | 348 | be treated as though they were included in this License, to the extent | ||
361 | 349 | that they are valid under applicable law. If additional permissions | ||
362 | 350 | apply only to part of the Program, that part may be used separately | ||
363 | 351 | under those permissions, but the entire Program remains governed by | ||
364 | 352 | this License without regard to the additional permissions. | ||
365 | 353 | |||
366 | 354 | When you convey a copy of a covered work, you may at your option | ||
367 | 355 | remove any additional permissions from that copy, or from any part of | ||
368 | 356 | it. (Additional permissions may be written to require their own | ||
369 | 357 | removal in certain cases when you modify the work.) You may place | ||
370 | 358 | additional permissions on material, added by you to a covered work, | ||
371 | 359 | for which you have or can give appropriate copyright permission. | ||
372 | 360 | |||
373 | 361 | Notwithstanding any other provision of this License, for material you | ||
374 | 362 | add to a covered work, you may (if authorized by the copyright holders of | ||
375 | 363 | that material) supplement the terms of this License with terms: | ||
376 | 364 | |||
377 | 365 | a) Disclaiming warranty or limiting liability differently from the | ||
378 | 366 | terms of sections 15 and 16 of this License; or | ||
379 | 367 | |||
380 | 368 | b) Requiring preservation of specified reasonable legal notices or | ||
381 | 369 | author attributions in that material or in the Appropriate Legal | ||
382 | 370 | Notices displayed by works containing it; or | ||
383 | 371 | |||
384 | 372 | c) Prohibiting misrepresentation of the origin of that material, or | ||
385 | 373 | requiring that modified versions of such material be marked in | ||
386 | 374 | reasonable ways as different from the original version; or | ||
387 | 375 | |||
388 | 376 | d) Limiting the use for publicity purposes of names of licensors or | ||
389 | 377 | authors of the material; or | ||
390 | 378 | |||
391 | 379 | e) Declining to grant rights under trademark law for use of some | ||
392 | 380 | trade names, trademarks, or service marks; or | ||
393 | 381 | |||
394 | 382 | f) Requiring indemnification of licensors and authors of that | ||
395 | 383 | material by anyone who conveys the material (or modified versions of | ||
396 | 384 | it) with contractual assumptions of liability to the recipient, for | ||
397 | 385 | any liability that these contractual assumptions directly impose on | ||
398 | 386 | those licensors and authors. | ||
399 | 387 | |||
400 | 388 | All other non-permissive additional terms are considered "further | ||
401 | 389 | restrictions" within the meaning of section 10. If the Program as you | ||
402 | 390 | received it, or any part of it, contains a notice stating that it is | ||
403 | 391 | governed by this License along with a term that is a further | ||
404 | 392 | restriction, you may remove that term. If a license document contains | ||
405 | 393 | a further restriction but permits relicensing or conveying under this | ||
406 | 394 | License, you may add to a covered work material governed by the terms | ||
407 | 395 | of that license document, provided that the further restriction does | ||
408 | 396 | not survive such relicensing or conveying. | ||
409 | 397 | |||
410 | 398 | If you add terms to a covered work in accord with this section, you | ||
411 | 399 | must place, in the relevant source files, a statement of the | ||
412 | 400 | additional terms that apply to those files, or a notice indicating | ||
413 | 401 | where to find the applicable terms. | ||
414 | 402 | |||
415 | 403 | Additional terms, permissive or non-permissive, may be stated in the | ||
416 | 404 | form of a separately written license, or stated as exceptions; | ||
417 | 405 | the above requirements apply either way. | ||
418 | 406 | |||
419 | 407 | 8. Termination. | ||
420 | 408 | |||
421 | 409 | You may not propagate or modify a covered work except as expressly | ||
422 | 410 | provided under this License. Any attempt otherwise to propagate or | ||
423 | 411 | modify it is void, and will automatically terminate your rights under | ||
424 | 412 | this License (including any patent licenses granted under the third | ||
425 | 413 | paragraph of section 11). | ||
426 | 414 | |||
427 | 415 | However, if you cease all violation of this License, then your | ||
428 | 416 | license from a particular copyright holder is reinstated (a) | ||
429 | 417 | provisionally, unless and until the copyright holder explicitly and | ||
430 | 418 | finally terminates your license, and (b) permanently, if the copyright | ||
431 | 419 | holder fails to notify you of the violation by some reasonable means | ||
432 | 420 | prior to 60 days after the cessation. | ||
433 | 421 | |||
434 | 422 | Moreover, your license from a particular copyright holder is | ||
435 | 423 | reinstated permanently if the copyright holder notifies you of the | ||
436 | 424 | violation by some reasonable means, this is the first time you have | ||
437 | 425 | received notice of violation of this License (for any work) from that | ||
438 | 426 | copyright holder, and you cure the violation prior to 30 days after | ||
439 | 427 | your receipt of the notice. | ||
440 | 428 | |||
441 | 429 | Termination of your rights under this section does not terminate the | ||
442 | 430 | licenses of parties who have received copies or rights from you under | ||
443 | 431 | this License. If your rights have been terminated and not permanently | ||
444 | 432 | reinstated, you do not qualify to receive new licenses for the same | ||
445 | 433 | material under section 10. | ||
446 | 434 | |||
447 | 435 | 9. Acceptance Not Required for Having Copies. | ||
448 | 436 | |||
449 | 437 | You are not required to accept this License in order to receive or | ||
450 | 438 | run a copy of the Program. Ancillary propagation of a covered work | ||
451 | 439 | occurring solely as a consequence of using peer-to-peer transmission | ||
452 | 440 | to receive a copy likewise does not require acceptance. However, | ||
453 | 441 | nothing other than this License grants you permission to propagate or | ||
454 | 442 | modify any covered work. These actions infringe copyright if you do | ||
455 | 443 | not accept this License. Therefore, by modifying or propagating a | ||
456 | 444 | covered work, you indicate your acceptance of this License to do so. | ||
457 | 445 | |||
458 | 446 | 10. Automatic Licensing of Downstream Recipients. | ||
459 | 447 | |||
460 | 448 | Each time you convey a covered work, the recipient automatically | ||
461 | 449 | receives a license from the original licensors, to run, modify and | ||
462 | 450 | propagate that work, subject to this License. You are not responsible | ||
463 | 451 | for enforcing compliance by third parties with this License. | ||
464 | 452 | |||
465 | 453 | An "entity transaction" is a transaction transferring control of an | ||
466 | 454 | organization, or substantially all assets of one, or subdividing an | ||
467 | 455 | organization, or merging organizations. If propagation of a covered | ||
468 | 456 | work results from an entity transaction, each party to that | ||
469 | 457 | transaction who receives a copy of the work also receives whatever | ||
470 | 458 | licenses to the work the party's predecessor in interest had or could | ||
471 | 459 | give under the previous paragraph, plus a right to possession of the | ||
472 | 460 | Corresponding Source of the work from the predecessor in interest, if | ||
473 | 461 | the predecessor has it or can get it with reasonable efforts. | ||
474 | 462 | |||
475 | 463 | You may not impose any further restrictions on the exercise of the | ||
476 | 464 | rights granted or affirmed under this License. For example, you may | ||
477 | 465 | not impose a license fee, royalty, or other charge for exercise of | ||
478 | 466 | rights granted under this License, and you may not initiate litigation | ||
479 | 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that | ||
480 | 468 | any patent claim is infringed by making, using, selling, offering for | ||
481 | 469 | sale, or importing the Program or any portion of it. | ||
482 | 470 | |||
483 | 471 | 11. Patents. | ||
484 | 472 | |||
485 | 473 | A "contributor" is a copyright holder who authorizes use under this | ||
486 | 474 | License of the Program or a work on which the Program is based. The | ||
487 | 475 | work thus licensed is called the contributor's "contributor version". | ||
488 | 476 | |||
489 | 477 | A contributor's "essential patent claims" are all patent claims | ||
490 | 478 | owned or controlled by the contributor, whether already acquired or | ||
491 | 479 | hereafter acquired, that would be infringed by some manner, permitted | ||
492 | 480 | by this License, of making, using, or selling its contributor version, | ||
493 | 481 | but do not include claims that would be infringed only as a | ||
494 | 482 | consequence of further modification of the contributor version. For | ||
495 | 483 | purposes of this definition, "control" includes the right to grant | ||
496 | 484 | patent sublicenses in a manner consistent with the requirements of | ||
497 | 485 | this License. | ||
498 | 486 | |||
499 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free | ||
500 | 488 | patent license under the contributor's essential patent claims, to | ||
501 | 489 | make, use, sell, offer for sale, import and otherwise run, modify and | ||
502 | 490 | propagate the contents of its contributor version. | ||
503 | 491 | |||
504 | 492 | In the following three paragraphs, a "patent license" is any express | ||
505 | 493 | agreement or commitment, however denominated, not to enforce a patent | ||
506 | 494 | (such as an express permission to practice a patent or covenant not to | ||
507 | 495 | sue for patent infringement). To "grant" such a patent license to a | ||
508 | 496 | party means to make such an agreement or commitment not to enforce a | ||
509 | 497 | patent against the party. | ||
510 | 498 | |||
511 | 499 | If you convey a covered work, knowingly relying on a patent license, | ||
512 | 500 | and the Corresponding Source of the work is not available for anyone | ||
513 | 501 | to copy, free of charge and under the terms of this License, through a | ||
514 | 502 | publicly available network server or other readily accessible means, | ||
515 | 503 | then you must either (1) cause the Corresponding Source to be so | ||
516 | 504 | available, or (2) arrange to deprive yourself of the benefit of the | ||
517 | 505 | patent license for this particular work, or (3) arrange, in a manner | ||
518 | 506 | consistent with the requirements of this License, to extend the patent | ||
519 | 507 | license to downstream recipients. "Knowingly relying" means you have | ||
520 | 508 | actual knowledge that, but for the patent license, your conveying the | ||
521 | 509 | covered work in a country, or your recipient's use of the covered work | ||
522 | 510 | in a country, would infringe one or more identifiable patents in that | ||
523 | 511 | country that you have reason to believe are valid. | ||
524 | 512 | |||
525 | 513 | If, pursuant to or in connection with a single transaction or | ||
526 | 514 | arrangement, you convey, or propagate by procuring conveyance of, a | ||
527 | 515 | covered work, and grant a patent license to some of the parties | ||
528 | 516 | receiving the covered work authorizing them to use, propagate, modify | ||
529 | 517 | or convey a specific copy of the covered work, then the patent license | ||
530 | 518 | you grant is automatically extended to all recipients of the covered | ||
531 | 519 | work and works based on it. | ||
532 | 520 | |||
533 | 521 | A patent license is "discriminatory" if it does not include within | ||
534 | 522 | the scope of its coverage, prohibits the exercise of, or is | ||
535 | 523 | conditioned on the non-exercise of one or more of the rights that are | ||
536 | 524 | specifically granted under this License. You may not convey a covered | ||
537 | 525 | work if you are a party to an arrangement with a third party that is | ||
538 | 526 | in the business of distributing software, under which you make payment | ||
539 | 527 | to the third party based on the extent of your activity of conveying | ||
540 | 528 | the work, and under which the third party grants, to any of the | ||
541 | 529 | parties who would receive the covered work from you, a discriminatory | ||
542 | 530 | patent license (a) in connection with copies of the covered work | ||
543 | 531 | conveyed by you (or copies made from those copies), or (b) primarily | ||
544 | 532 | for and in connection with specific products or compilations that | ||
545 | 533 | contain the covered work, unless you entered into that arrangement, | ||
546 | 534 | or that patent license was granted, prior to 28 March 2007. | ||
547 | 535 | |||
548 | 536 | Nothing in this License shall be construed as excluding or limiting | ||
549 | 537 | any implied license or other defenses to infringement that may | ||
550 | 538 | otherwise be available to you under applicable patent law. | ||
551 | 539 | |||
552 | 540 | 12. No Surrender of Others' Freedom. | ||
553 | 541 | |||
554 | 542 | If conditions are imposed on you (whether by court order, agreement or | ||
555 | 543 | otherwise) that contradict the conditions of this License, they do not | ||
556 | 544 | excuse you from the conditions of this License. If you cannot convey a | ||
557 | 545 | covered work so as to satisfy simultaneously your obligations under this | ||
558 | 546 | License and any other pertinent obligations, then as a consequence you may | ||
559 | 547 | not convey it at all. For example, if you agree to terms that obligate you | ||
560 | 548 | to collect a royalty for further conveying from those to whom you convey | ||
561 | 549 | the Program, the only way you could satisfy both those terms and this | ||
562 | 550 | License would be to refrain entirely from conveying the Program. | ||
563 | 551 | |||
564 | 552 | 13. Use with the GNU Affero General Public License. | ||
565 | 553 | |||
566 | 554 | Notwithstanding any other provision of this License, you have | ||
567 | 555 | permission to link or combine any covered work with a work licensed | ||
568 | 556 | under version 3 of the GNU Affero General Public License into a single | ||
569 | 557 | combined work, and to convey the resulting work. The terms of this | ||
570 | 558 | License will continue to apply to the part which is the covered work, | ||
571 | 559 | but the special requirements of the GNU Affero General Public License, | ||
572 | 560 | section 13, concerning interaction through a network will apply to the | ||
573 | 561 | combination as such. | ||
574 | 562 | |||
575 | 563 | 14. Revised Versions of this License. | ||
576 | 564 | |||
577 | 565 | The Free Software Foundation may publish revised and/or new versions of | ||
578 | 566 | the GNU General Public License from time to time. Such new versions will | ||
579 | 567 | be similar in spirit to the present version, but may differ in detail to | ||
580 | 568 | address new problems or concerns. | ||
581 | 569 | |||
582 | 570 | Each version is given a distinguishing version number. If the | ||
583 | 571 | Program specifies that a certain numbered version of the GNU General | ||
584 | 572 | Public License "or any later version" applies to it, you have the | ||
585 | 573 | option of following the terms and conditions either of that numbered | ||
586 | 574 | version or of any later version published by the Free Software | ||
587 | 575 | Foundation. If the Program does not specify a version number of the | ||
588 | 576 | GNU General Public License, you may choose any version ever published | ||
589 | 577 | by the Free Software Foundation. | ||
590 | 578 | |||
591 | 579 | If the Program specifies that a proxy can decide which future | ||
592 | 580 | versions of the GNU General Public License can be used, that proxy's | ||
593 | 581 | public statement of acceptance of a version permanently authorizes you | ||
594 | 582 | to choose that version for the Program. | ||
595 | 583 | |||
596 | 584 | Later license versions may give you additional or different | ||
597 | 585 | permissions. However, no additional obligations are imposed on any | ||
598 | 586 | author or copyright holder as a result of your choosing to follow a | ||
599 | 587 | later version. | ||
600 | 588 | |||
601 | 589 | 15. Disclaimer of Warranty. | ||
602 | 590 | |||
603 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY | ||
604 | 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT | ||
605 | 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY | ||
606 | 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, | ||
607 | 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
608 | 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM | ||
609 | 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF | ||
610 | 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. | ||
611 | 599 | |||
612 | 600 | 16. Limitation of Liability. | ||
613 | 601 | |||
614 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | ||
615 | 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS | ||
616 | 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY | ||
617 | 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE | ||
618 | 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF | ||
619 | 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD | ||
620 | 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), | ||
621 | 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF | ||
622 | 610 | SUCH DAMAGES. | ||
623 | 611 | |||
624 | 612 | 17. Interpretation of Sections 15 and 16. | ||
625 | 613 | |||
626 | 614 | If the disclaimer of warranty and limitation of liability provided | ||
627 | 615 | above cannot be given local legal effect according to their terms, | ||
628 | 616 | reviewing courts shall apply local law that most closely approximates | ||
629 | 617 | an absolute waiver of all civil liability in connection with the | ||
630 | 618 | Program, unless a warranty or assumption of liability accompanies a | ||
631 | 619 | copy of the Program in return for a fee. | ||
632 | 620 | |||
633 | 621 | END OF TERMS AND CONDITIONS | ||
634 | 622 | |||
635 | 623 | How to Apply These Terms to Your New Programs | ||
636 | 624 | |||
637 | 625 | If you develop a new program, and you want it to be of the greatest | ||
638 | 626 | possible use to the public, the best way to achieve this is to make it | ||
639 | 627 | free software which everyone can redistribute and change under these terms. | ||
640 | 628 | |||
641 | 629 | To do so, attach the following notices to the program. It is safest | ||
642 | 630 | to attach them to the start of each source file to most effectively | ||
643 | 631 | state the exclusion of warranty; and each file should have at least | ||
644 | 632 | the "copyright" line and a pointer to where the full notice is found. | ||
645 | 633 | |||
646 | 634 | <one line to give the program's name and a brief idea of what it does.> | ||
647 | 635 | Copyright (C) <year> <name of author> | ||
648 | 636 | |||
649 | 637 | This program is free software: you can redistribute it and/or modify | ||
650 | 638 | it under the terms of the GNU General Public License as published by | ||
651 | 639 | the Free Software Foundation, either version 3 of the License, or | ||
652 | 640 | (at your option) any later version. | ||
653 | 641 | |||
654 | 642 | This program is distributed in the hope that it will be useful, | ||
655 | 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
656 | 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
657 | 645 | GNU General Public License for more details. | ||
658 | 646 | |||
659 | 647 | You should have received a copy of the GNU General Public License | ||
660 | 648 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
661 | 649 | |||
662 | 650 | Also add information on how to contact you by electronic and paper mail. | ||
663 | 651 | |||
664 | 652 | If the program does terminal interaction, make it output a short | ||
665 | 653 | notice like this when it starts in an interactive mode: | ||
666 | 654 | |||
667 | 655 | <program> Copyright (C) <year> <name of author> | ||
668 | 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | ||
669 | 657 | This is free software, and you are welcome to redistribute it | ||
670 | 658 | under certain conditions; type `show c' for details. | ||
671 | 659 | |||
672 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate | ||
673 | 661 | parts of the General Public License. Of course, your program's commands | ||
674 | 662 | might be different; for a GUI interface, you would use an "about box". | ||
675 | 663 | |||
676 | 664 | You should also get your employer (if you work as a programmer) or school, | ||
677 | 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. | ||
678 | 666 | For more information on this, and how to apply and follow the GNU GPL, see | ||
679 | 667 | <http://www.gnu.org/licenses/>. | ||
680 | 668 | |||
681 | 669 | The GNU General Public License does not permit incorporating your program | ||
682 | 670 | into proprietary programs. If your program is a subroutine library, you | ||
683 | 671 | may consider it more useful to permit linking proprietary applications with | ||
684 | 672 | the library. If this is what you want to do, use the GNU Lesser General | ||
685 | 673 | Public License instead of this License. But first, please read | ||
686 | 674 | <http://www.gnu.org/philosophy/why-not-lgpl.html>. | ||
687 | 0 | 675 | ||
688 | === added file 'README' | |||
689 | --- README 1970-01-01 00:00:00 +0000 | |||
690 | +++ README 2014-08-19 22:56:22 +0000 | |||
691 | @@ -0,0 +1,12 @@ | |||
692 | 1 | Directory structure for user experience test cases should be | ||
693 | 2 | |||
694 | 3 | ubuntu_experience_tests/ | ||
695 | 4 | |--tests | ||
696 | 5 | |----<AppName> | ||
697 | 6 | |------test_<app_name>.py | ||
698 | 7 | |||
699 | 8 | Class name in test_<app_name>.py should be | ||
700 | 9 | |||
701 | 10 | class <AppNameTestCase>: | ||
702 | 11 | |||
703 | 12 | One py module file can contain multiple user experience test cases. | ||
704 | 0 | 13 | ||
705 | === added directory 'debian' | |||
706 | === renamed directory 'debian' => 'debian.moved' | |||
707 | === added file 'debian/changelog' | |||
708 | --- debian/changelog 1970-01-01 00:00:00 +0000 | |||
709 | +++ debian/changelog 2014-08-19 22:56:22 +0000 | |||
710 | @@ -0,0 +1,48 @@ | |||
711 | 1 | ubuntu-experience-tests (0.1+14.10.20140808-0ubuntu1) utopic; urgency=low | ||
712 | 2 | |||
713 | 3 | [ Nicholas Skaggs ] | ||
714 | 4 | * (no message) | ||
715 | 5 | |||
716 | 6 | [ Omer Akram ] | ||
717 | 7 | * first commit to include integration tests and debian structure | ||
718 | 8 | * style changes: debial/control | ||
719 | 9 | * make the module installation such a way so that we can create | ||
720 | 10 | different deb packages our of this source | ||
721 | 11 | * separate out helper functions into a seprate module to be consumed | ||
722 | 12 | by others | ||
723 | 13 | * make the testsuite architecture independant | ||
724 | 14 | * update header files | ||
725 | 15 | * depend on dialer-app | ||
726 | 16 | * also depend on uitoolkit-autopilot | ||
727 | 17 | * we are using emulators from unity8, depend on its autopilot package | ||
728 | 18 | * add docstring to make it clear what the helper function does | ||
729 | 19 | * added tests for the environment fixtures | ||
730 | 20 | |||
731 | 21 | [ Dan Chapman ] | ||
732 | 22 | * Merge: Brendan Donegan 2014-06-19 Fix call to get_vcard_uid | ||
733 | 23 | |||
734 | 24 | [ Leo Arias ] | ||
735 | 25 | * Added flake8 check to the debian package. | ||
736 | 26 | * Update the environment to use the helpers from the toolkit. | ||
737 | 27 | * Cleaned up the test to use the helpers from the dialer app. | ||
738 | 28 | * Added readme file describing the directory structure and class name | ||
739 | 29 | format when adding new tests. | ||
740 | 30 | * Test that online accounts launched with url dispatcher can be swiped | ||
741 | 31 | into background. | ||
742 | 32 | * skiptest is a typo in test_osd_dialer_integration.py, should be | ||
743 | 33 | skipTest | ||
744 | 34 | * Ported package to python3. Removed dialer tests for now, because it | ||
745 | 35 | is python2. | ||
746 | 36 | * Fix a couple of minor issues that slipped in with the | ||
747 | 37 | ContactsDbusService branch. | ||
748 | 38 | * Fixed the packaging to install ubuntu_experience_tests as a py3 | ||
749 | 39 | library. | ||
750 | 40 | * Updated the test to take into account the new dash app. | ||
751 | 41 | |||
752 | 42 | -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Fri, 08 Aug 2014 08:15:15 +0000 | ||
753 | 43 | |||
754 | 44 | ubuntu-experience-tests (0.1-0ubuntu1) utopic; urgency=medium | ||
755 | 45 | |||
756 | 46 | * Initial release. (Closes: #1353842) | ||
757 | 47 | |||
758 | 48 | -- Leonardo Arias Fonseca <leo.arias@canonical.com> Thu, 07 Aug 2014 00:36:42 -0600 | ||
759 | 0 | 49 | ||
760 | === added file 'debian/compat' | |||
761 | --- debian/compat 1970-01-01 00:00:00 +0000 | |||
762 | +++ debian/compat 2014-08-19 22:56:22 +0000 | |||
763 | @@ -0,0 +1,1 @@ | |||
764 | 1 | 9 | ||
765 | 0 | 2 | ||
766 | === added file 'debian/control' | |||
767 | --- debian/control 1970-01-01 00:00:00 +0000 | |||
768 | +++ debian/control 2014-08-19 22:56:22 +0000 | |||
769 | @@ -0,0 +1,27 @@ | |||
770 | 1 | Source: ubuntu-experience-tests | ||
771 | 2 | Section: utils | ||
772 | 3 | Priority: optional | ||
773 | 4 | Maintainer: Ubuntu Quality Team <ubuntu-quality@lists.ubuntu.com> | ||
774 | 5 | Build-Depends: debhelper (>= 9.0.0), | ||
775 | 6 | dh-python, | ||
776 | 7 | pyflakes, | ||
777 | 8 | python3-all, | ||
778 | 9 | python3-pep8, | ||
779 | 10 | python3-setuptools, | ||
780 | 11 | Standards-Version: 3.9.5 | ||
781 | 12 | Homepage: https://launchpad.net/ubuntu-autopilot-tests/ | ||
782 | 13 | Vcs-bzr: lp:ubuntu-autopilot-tests/ubuntu-experience-tests | ||
783 | 14 | X-Python3-Version: >= 3.2 | ||
784 | 15 | |||
785 | 16 | Package: ubuntu-experience-tests | ||
786 | 17 | Architecture: all | ||
787 | 18 | Depends: ${misc:Depends}, | ||
788 | 19 | ${python3:Depends}, | ||
789 | 20 | ${shlibs:Depends}, | ||
790 | 21 | python3-autopilot, | ||
791 | 22 | ubuntu-ui-toolkit-autopilot, | ||
792 | 23 | unity8-autopilot, | ||
793 | 24 | url-dispatcher-tools, | ||
794 | 25 | Description: Ubuntu user experience Autopilot tests | ||
795 | 26 | This package provides a set of autopilot tests for testing | ||
796 | 27 | the inter-app integration under Unity8 | ||
797 | 0 | 28 | ||
798 | === added file 'debian/copyright' | |||
799 | --- debian/copyright 1970-01-01 00:00:00 +0000 | |||
800 | +++ debian/copyright 2014-08-19 22:56:22 +0000 | |||
801 | @@ -0,0 +1,28 @@ | |||
802 | 1 | Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
803 | 2 | Upstream-Name: ubuntu-experience-tests | ||
804 | 3 | Source: https://code.launchpad.net/ubuntu-autopilot-tests/ubuntu-experience-tests | ||
805 | 4 | |||
806 | 5 | Files: * | ||
807 | 6 | Copyright: 2013 Ubuntu Quality Team <ubuntu-quality@lists.ubuntu.com> | ||
808 | 7 | License: GPL-3.0+ | ||
809 | 8 | |||
810 | 9 | Files: debian/* | ||
811 | 10 | Copyright: 2013 Ubuntu Quality Team <ubuntu-quality@lists.ubuntu.com> | ||
812 | 11 | License: GPL-3.0+ | ||
813 | 12 | |||
814 | 13 | License: GPL-3.0+ | ||
815 | 14 | This program is free software: you can redistribute it and/or modify | ||
816 | 15 | it under the terms of the GNU General Public License as published by | ||
817 | 16 | the Free Software Foundation, either version 3 of the License, or | ||
818 | 17 | (at your option) any later version. | ||
819 | 18 | . | ||
820 | 19 | This package is distributed in the hope that it will be useful, | ||
821 | 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
822 | 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
823 | 22 | GNU General Public License for more details. | ||
824 | 23 | . | ||
825 | 24 | You should have received a copy of the GNU General Public License | ||
826 | 25 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
827 | 26 | . | ||
828 | 27 | On Debian systems, the complete text of the GNU General | ||
829 | 28 | Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". | ||
830 | 0 | 29 | ||
831 | === added file 'debian/rules' | |||
832 | --- debian/rules 1970-01-01 00:00:00 +0000 | |||
833 | +++ debian/rules 2014-08-19 22:56:22 +0000 | |||
834 | @@ -0,0 +1,16 @@ | |||
835 | 1 | #!/usr/bin/make -f | ||
836 | 2 | # -*- makefile -*- | ||
837 | 3 | |||
838 | 4 | # Uncomment this to turn on verbose mode. | ||
839 | 5 | #export DH_VERBOSE=1 | ||
840 | 6 | export PYBUILD_NAME=ubuntu_experience_tests | ||
841 | 7 | |||
842 | 8 | %: | ||
843 | 9 | dh $@ --with python3 --buildsystem pybuild | ||
844 | 10 | |||
845 | 11 | override_dh_auto_test: | ||
846 | 12 | python3 -m pep8 ubuntu_experience_tests/ | ||
847 | 13 | pyflakes3 ubuntu_experience_tests/ | ||
848 | 14 | |||
849 | 15 | override_dh_install: | ||
850 | 16 | dh_install --fail-missing | ||
851 | 0 | 17 | ||
852 | === added directory 'debian/source' | |||
853 | === added file 'debian/source/format' | |||
854 | --- debian/source/format 1970-01-01 00:00:00 +0000 | |||
855 | +++ debian/source/format 2014-08-19 22:56:22 +0000 | |||
856 | @@ -0,0 +1,1 @@ | |||
857 | 1 | 1.0 | ||
858 | 0 | 2 | ||
859 | === added file 'setup.py' | |||
860 | --- setup.py 1970-01-01 00:00:00 +0000 | |||
861 | +++ setup.py 2014-08-19 22:56:22 +0000 | |||
862 | @@ -0,0 +1,35 @@ | |||
863 | 1 | #!/usr/bin/env python3 | ||
864 | 2 | |||
865 | 3 | # Copyright 2014 Canonical Ltd. | ||
866 | 4 | # | ||
867 | 5 | # This file is part of ubuntu-experience-tests. | ||
868 | 6 | # | ||
869 | 7 | # This program is free software; you can redistribute it and/or modify | ||
870 | 8 | # it under the terms of the GNU General Public License version 3, as published | ||
871 | 9 | # by the Free Software Foundation. | ||
872 | 10 | # | ||
873 | 11 | # This program is distributed in the hope that it will be useful, | ||
874 | 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
875 | 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
876 | 14 | # GNU General Public License for more details. | ||
877 | 15 | # | ||
878 | 16 | # You should have received a copy of the GNU General Public License | ||
879 | 17 | # along with this program. If not, see <http://www.gnu.org/licenses | ||
880 | 18 | |||
881 | 19 | import setuptools | ||
882 | 20 | |||
883 | 21 | |||
884 | 22 | VERSION = '1.0' | ||
885 | 23 | |||
886 | 24 | |||
887 | 25 | setuptools.setup( | ||
888 | 26 | name='ubuntu_experience_tests', | ||
889 | 27 | version=VERSION, | ||
890 | 28 | description='Ubuntu user experience Autopilot tests.', | ||
891 | 29 | author='Ubuntu Engineering QA Team', | ||
892 | 30 | author_email='qa-team@lists.canonical.com', | ||
893 | 31 | url='https://launchpad.net/ubuntu-autopilot-tests/ubuntu-experience-tests', | ||
894 | 32 | license='GPLv3', | ||
895 | 33 | packages=setuptools.find_packages(), | ||
896 | 34 | test_suite='ubuntu_experience_tests.tests', | ||
897 | 35 | ) | ||
898 | 0 | 36 | ||
899 | === renamed file 'setup.py' => 'setup.py.moved' | |||
900 | === added directory 'ubuntu_experience_tests' | |||
901 | === added file 'ubuntu_experience_tests/__init__.py' | |||
902 | --- ubuntu_experience_tests/__init__.py 1970-01-01 00:00:00 +0000 | |||
903 | +++ ubuntu_experience_tests/__init__.py 2014-08-19 22:56:22 +0000 | |||
904 | @@ -0,0 +1,17 @@ | |||
905 | 1 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- | ||
906 | 2 | # | ||
907 | 3 | # Copyright 2014 Canonical Ltd. | ||
908 | 4 | # | ||
909 | 5 | # This file is part of ubuntu-experience-tests. | ||
910 | 6 | # | ||
911 | 7 | # This program is free software; you can redistribute it and/or modify | ||
912 | 8 | # it under the terms of the GNU General Public License version 3, as published | ||
913 | 9 | # by the Free Software Foundation. | ||
914 | 10 | # | ||
915 | 11 | # This program is distributed in the hope that it will be useful, | ||
916 | 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
917 | 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
918 | 14 | # GNU General Public License for more details. | ||
919 | 15 | # | ||
920 | 16 | # You should have received a copy of the GNU General Public License | ||
921 | 17 | # along with this program. If not, see <http://www.gnu.org/licenses/> | ||
922 | 0 | 18 | ||
923 | === added file 'ubuntu_experience_tests/fixture_setup.py' | |||
924 | --- ubuntu_experience_tests/fixture_setup.py 1970-01-01 00:00:00 +0000 | |||
925 | +++ ubuntu_experience_tests/fixture_setup.py 2014-08-19 22:56:22 +0000 | |||
926 | @@ -0,0 +1,30 @@ | |||
927 | 1 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- | ||
928 | 2 | # | ||
929 | 3 | # Copyright 2014 Canonical Ltd. | ||
930 | 4 | # Author: Omer Akram <omer.akram@canonical.com> | ||
931 | 5 | # | ||
932 | 6 | # This file is part of ubuntu-experience-tests. | ||
933 | 7 | # | ||
934 | 8 | # This program is free software; you can redistribute it and/or modify | ||
935 | 9 | # it under the terms of the GNU General Public License version 3, as published | ||
936 | 10 | # by the Free Software Foundation. | ||
937 | 11 | # | ||
938 | 12 | # This program is distributed in the hope that it will be useful, | ||
939 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
940 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
941 | 15 | # GNU General Public License for more details. | ||
942 | 16 | # | ||
943 | 17 | # You should have received a copy of the GNU General Public License | ||
944 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/> | ||
945 | 19 | |||
946 | 20 | """Set up and clean up fixtures for the Inter-app integration tests.""" | ||
947 | 21 | |||
948 | 22 | |||
949 | 23 | from ubuntuuitoolkit import fixture_setup as toolkit_fixtures | ||
950 | 24 | |||
951 | 25 | |||
952 | 26 | class TestabilityEnvironment(toolkit_fixtures.InitctlEnvironmentVariable): | ||
953 | 27 | """Setup the testabilty environment.""" | ||
954 | 28 | |||
955 | 29 | def __init__(self): | ||
956 | 30 | super(TestabilityEnvironment, self).__init__(QT_LOAD_TESTABILITY=1) | ||
957 | 0 | 31 | ||
958 | === added file 'ubuntu_experience_tests/helpers.py' | |||
959 | --- ubuntu_experience_tests/helpers.py 1970-01-01 00:00:00 +0000 | |||
960 | +++ ubuntu_experience_tests/helpers.py 2014-08-19 22:56:22 +0000 | |||
961 | @@ -0,0 +1,135 @@ | |||
962 | 1 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- | ||
963 | 2 | # | ||
964 | 3 | # Copyright 2014 Canonical Ltd. | ||
965 | 4 | # Author: Omer Akram <omer.akram@canonical.com> | ||
966 | 5 | # Brendan Donegan <brendan.donegan@canonical.com> | ||
967 | 6 | # | ||
968 | 7 | # This file is part of ubuntu-experience-tests. | ||
969 | 8 | # | ||
970 | 9 | # This program is free software; you can redistribute it and/or modify | ||
971 | 10 | # it under the terms of the GNU General Public License version 3, as published | ||
972 | 11 | # by the Free Software Foundation. | ||
973 | 12 | # | ||
974 | 13 | # This program is distributed in the hope that it will be useful, | ||
975 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
976 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
977 | 16 | # GNU General Public License for more details. | ||
978 | 17 | # | ||
979 | 18 | # You should have received a copy of the GNU General Public License | ||
980 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/> | ||
981 | 20 | |||
982 | 21 | """Helper functions to make writing Inter-app integration tests easier.""" | ||
983 | 22 | |||
984 | 23 | import dbus | ||
985 | 24 | import re | ||
986 | 25 | import subprocess | ||
987 | 26 | import time | ||
988 | 27 | |||
989 | 28 | from autopilot.introspection import get_proxy_object_for_existing_process | ||
990 | 29 | from ubuntuuitoolkit import emulators as toolkit_emulators | ||
991 | 30 | from unity8.shell.emulators import UnityEmulatorBase | ||
992 | 31 | |||
993 | 32 | DBUS_IFACE_ADD_BOOK = 'com.canonical.pim.AddressBook' | ||
994 | 33 | DBUS_IFACE_ADD_BOOKVIEW = 'com.canonical.pim.AddressBookView' | ||
995 | 34 | |||
996 | 35 | |||
997 | 36 | class ContactsDbusService(object): | ||
998 | 37 | def __init__(self): | ||
999 | 38 | self.bus = None | ||
1000 | 39 | self.addr = None | ||
1001 | 40 | self.addr_iface = None | ||
1002 | 41 | self.bus = dbus.SessionBus() | ||
1003 | 42 | self.addr = self.bus.get_object( | ||
1004 | 43 | 'com.canonical.pim', '/com/canonical/pim/AddressBook') | ||
1005 | 44 | self.addr_iface = dbus.Interface( | ||
1006 | 45 | self.addr, dbus_interface=DBUS_IFACE_ADD_BOOK) | ||
1007 | 46 | |||
1008 | 47 | def query_contacts(self, fields='', query='', sources=[]): | ||
1009 | 48 | view_path = self.addr_iface.query(fields, query, []) | ||
1010 | 49 | view = self.bus.get_object( | ||
1011 | 50 | 'com.canonical.pim', view_path) | ||
1012 | 51 | view_iface = dbus.Interface( | ||
1013 | 52 | view, dbus_interface=DBUS_IFACE_ADD_BOOKVIEW) | ||
1014 | 53 | contacts = view_iface.contactsDetails([], 0, -1) | ||
1015 | 54 | view.close() | ||
1016 | 55 | return contacts | ||
1017 | 56 | |||
1018 | 57 | def update_contact(self, vcard): | ||
1019 | 58 | return self.addr_iface.updateContacts([vcard]) | ||
1020 | 59 | |||
1021 | 60 | def create_contact(self, vcard): | ||
1022 | 61 | return self.addr_iface.createContact(vcard, "") | ||
1023 | 62 | |||
1024 | 63 | def delete_contact(self, ids): | ||
1025 | 64 | return self.addr_iface.removeContacts(ids) | ||
1026 | 65 | |||
1027 | 66 | def get_vcard_uid(self, vcard): | ||
1028 | 67 | """ | ||
1029 | 68 | Return the UID of the provided vcard | ||
1030 | 69 | :param vcard: vcard formatted data | ||
1031 | 70 | :return: uid value from vcard, else None | ||
1032 | 71 | """ | ||
1033 | 72 | uid_pattern = re.compile(r''' | ||
1034 | 73 | ^ # start of string | ||
1035 | 74 | .* # any characters | ||
1036 | 75 | UID:(.*?) # UID value, saved to group, non-greedy | ||
1037 | 76 | \r\n # new line | ||
1038 | 77 | .* # anything else | ||
1039 | 78 | $ # end of string | ||
1040 | 79 | ''', re.VERBOSE | re.IGNORECASE | re.DOTALL) | ||
1041 | 80 | uid = None | ||
1042 | 81 | match = uid_pattern.match(vcard) | ||
1043 | 82 | if match: | ||
1044 | 83 | uid = match.group(1) | ||
1045 | 84 | return uid | ||
1046 | 85 | |||
1047 | 86 | def delete_all_contacts(self): | ||
1048 | 87 | """ | ||
1049 | 88 | Delete all contacts using the dbus service | ||
1050 | 89 | """ | ||
1051 | 90 | uids = [] | ||
1052 | 91 | contacts = self.query_contacts() | ||
1053 | 92 | for contact in contacts: | ||
1054 | 93 | uid = self.get_vcard_uid(contact) | ||
1055 | 94 | if uid: | ||
1056 | 95 | uids.append(uid) | ||
1057 | 96 | self.delete_contact(uids) | ||
1058 | 97 | |||
1059 | 98 | |||
1060 | 99 | def get_proxy_object_by_process_name(proc_name): | ||
1061 | 100 | """Helper function to return proxy object of a process | ||
1062 | 101 | |||
1063 | 102 | :param proc_name: Name of the running application process with testability | ||
1064 | 103 | driver loaded. | ||
1065 | 104 | :returns: Proxy object for the given process using emulator base from | ||
1066 | 105 | ubuntuuittoolkit and in case proc_name is unity8 use UnityEmulatorBase. | ||
1067 | 106 | :raises: RuntimeError if process is not found to be running after | ||
1068 | 107 | 10 seconds. | ||
1069 | 108 | |||
1070 | 109 | """ | ||
1071 | 110 | return get_proxy_object_for_existing_process( | ||
1072 | 111 | _get_pid_by_name(proc_name), | ||
1073 | 112 | emulator_base=_get_emulator_base(proc_name) | ||
1074 | 113 | ) | ||
1075 | 114 | |||
1076 | 115 | |||
1077 | 116 | def _get_pid_by_name(proc_name): | ||
1078 | 117 | for i in range(10): | ||
1079 | 118 | try: | ||
1080 | 119 | return int( | ||
1081 | 120 | subprocess.check_output(['pidof', proc_name]).strip()) | ||
1082 | 121 | except subprocess.CalledProcessError: | ||
1083 | 122 | # application not started yet, check in a second | ||
1084 | 123 | time.sleep(1) | ||
1085 | 124 | else: | ||
1086 | 125 | raise RuntimeError( | ||
1087 | 126 | 'Could not find autopilot interface for {} after 10' | ||
1088 | 127 | 'seconds'.format(proc_name) | ||
1089 | 128 | ) | ||
1090 | 129 | |||
1091 | 130 | |||
1092 | 131 | def _get_emulator_base(proc_name): | ||
1093 | 132 | if proc_name == 'unity8': | ||
1094 | 133 | return UnityEmulatorBase | ||
1095 | 134 | else: | ||
1096 | 135 | return toolkit_emulators.UbuntuUIToolkitEmulatorBase | ||
1097 | 0 | 136 | ||
1098 | === added directory 'ubuntu_experience_tests/tests' | |||
1099 | === added file 'ubuntu_experience_tests/tests/__init__.py' | |||
1100 | --- ubuntu_experience_tests/tests/__init__.py 1970-01-01 00:00:00 +0000 | |||
1101 | +++ ubuntu_experience_tests/tests/__init__.py 2014-08-19 22:56:22 +0000 | |||
1102 | @@ -0,0 +1,36 @@ | |||
1103 | 1 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- | ||
1104 | 2 | # | ||
1105 | 3 | # Copyright 2014 Canonical Ltd. | ||
1106 | 4 | # Author: Omer Akram <omer.akram@canonical.com> | ||
1107 | 5 | # | ||
1108 | 6 | # This file is part of ubuntu-experience-tests. | ||
1109 | 7 | # | ||
1110 | 8 | # This program is free software; you can redistribute it and/or modify | ||
1111 | 9 | # it under the terms of the GNU General Public License version 3, as published | ||
1112 | 10 | # by the Free Software Foundation. | ||
1113 | 11 | # | ||
1114 | 12 | # This program is distributed in the hope that it will be useful, | ||
1115 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1116 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1117 | 15 | # GNU General Public License for more details. | ||
1118 | 16 | # | ||
1119 | 17 | # You should have received a copy of the GNU General Public License | ||
1120 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/> | ||
1121 | 19 | |||
1122 | 20 | from autopilot.input import Touch, Pointer | ||
1123 | 21 | from unity8.shell import tests as unity_tests | ||
1124 | 22 | from unity8.shell.emulators import main_window | ||
1125 | 23 | |||
1126 | 24 | from unity8 import process_helpers | ||
1127 | 25 | |||
1128 | 26 | |||
1129 | 27 | class UbuntuExperienceTestCase(unity_tests.UnityTestCase): | ||
1130 | 28 | |||
1131 | 29 | def setUp(self): | ||
1132 | 30 | super(UbuntuExperienceTestCase, self).setUp() | ||
1133 | 31 | self.pointing_device = Pointer(Touch.create()) | ||
1134 | 32 | self._qml_mock_enabled = False | ||
1135 | 33 | self._data_dirs_mock_enabled = False | ||
1136 | 34 | self.unity_proxy = self.launch_unity() | ||
1137 | 35 | process_helpers.unlock_unity(self.unity_proxy) | ||
1138 | 36 | self.unity = self.unity_proxy.select_single(main_window.QQuickView) | ||
1139 | 0 | 37 | ||
1140 | === added directory 'ubuntu_experience_tests/tests/application_life_cycle' | |||
1141 | === added file 'ubuntu_experience_tests/tests/application_life_cycle/__init__.py' | |||
1142 | === added file 'ubuntu_experience_tests/tests/application_life_cycle/test_url_dispatcher.py' | |||
1143 | --- ubuntu_experience_tests/tests/application_life_cycle/test_url_dispatcher.py 1970-01-01 00:00:00 +0000 | |||
1144 | +++ ubuntu_experience_tests/tests/application_life_cycle/test_url_dispatcher.py 2014-08-19 22:56:22 +0000 | |||
1145 | @@ -0,0 +1,58 @@ | |||
1146 | 1 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- | ||
1147 | 2 | # | ||
1148 | 3 | # Copyright (C) 2014 Canonical Ltd. | ||
1149 | 4 | # | ||
1150 | 5 | # This file is part of ubuntu-integration-tests. | ||
1151 | 6 | # | ||
1152 | 7 | # ubuntu-integration-tests is free software; you can redistribute it and/or | ||
1153 | 8 | # modify it under the terms of the GNU General Public License as published by | ||
1154 | 9 | # the Free Software Foundation; version 3. | ||
1155 | 10 | # | ||
1156 | 11 | # This program is distributed in the hope that it will be useful, | ||
1157 | 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1158 | 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1159 | 14 | # GNU Lesser General Public License for more details. | ||
1160 | 15 | # | ||
1161 | 16 | # You should have received a copy of the GNU General Public License | ||
1162 | 17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
1163 | 18 | |||
1164 | 19 | import os | ||
1165 | 20 | import subprocess | ||
1166 | 21 | |||
1167 | 22 | from autopilot import platform | ||
1168 | 23 | from autopilot.matchers import Eventually | ||
1169 | 24 | from testtools.matchers import Equals | ||
1170 | 25 | |||
1171 | 26 | from ubuntu_experience_tests import tests | ||
1172 | 27 | |||
1173 | 28 | |||
1174 | 29 | class URLDispatcherTestCase(tests.UbuntuExperienceTestCase): | ||
1175 | 30 | |||
1176 | 31 | def setUp(self): | ||
1177 | 32 | super(URLDispatcherTestCase, self).setUp() | ||
1178 | 33 | if platform.model() == 'Desktop': | ||
1179 | 34 | self.skipTest('URL dispatcher does not work on the desktop.') | ||
1180 | 35 | |||
1181 | 36 | def test_swipe_out_online_accounts_launched_with_url_dispatcher(self): | ||
1182 | 37 | """Test online accounts launched with URL Dispatcher. | ||
1183 | 38 | |||
1184 | 39 | Check that the application can be swiped out showing the dashboard and | ||
1185 | 40 | no focused application. | ||
1186 | 41 | |||
1187 | 42 | """ | ||
1188 | 43 | self.assertEqual( | ||
1189 | 44 | 'unity8-dash', self.unity.get_current_focused_app_id()) | ||
1190 | 45 | self.addCleanup(os.system, 'pkill system-settings') | ||
1191 | 46 | self.addCleanup(os.system, 'pkill online-accounts') | ||
1192 | 47 | |||
1193 | 48 | subprocess.check_call( | ||
1194 | 49 | ['url-dispatcher', 'settings:///system/online-accounts']) | ||
1195 | 50 | |||
1196 | 51 | self.assertThat( | ||
1197 | 52 | self.unity.get_current_focused_app_id, | ||
1198 | 53 | Eventually(Equals('ubuntu-system-settings'))) | ||
1199 | 54 | |||
1200 | 55 | self.unity.show_dash_swiping() | ||
1201 | 56 | self.assertThat( | ||
1202 | 57 | self.unity.get_current_focused_app_id, | ||
1203 | 58 | Eventually(Equals('unity8-dash'))) | ||
1204 | 0 | 59 | ||
1205 | === added file 'ubuntu_experience_tests/tests/test_fixture_setup.py' | |||
1206 | --- ubuntu_experience_tests/tests/test_fixture_setup.py 1970-01-01 00:00:00 +0000 | |||
1207 | +++ ubuntu_experience_tests/tests/test_fixture_setup.py 2014-08-19 22:56:22 +0000 | |||
1208 | @@ -0,0 +1,56 @@ | |||
1209 | 1 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- | ||
1210 | 2 | # | ||
1211 | 3 | # Copyright 2014 Canonical Ltd. | ||
1212 | 4 | # Author: Omer Akram <omer.akram@canonical.com> | ||
1213 | 5 | # | ||
1214 | 6 | # This file is part of ubuntu-experience-tests. | ||
1215 | 7 | # | ||
1216 | 8 | # This program is free software; you can redistribute it and/or modify | ||
1217 | 9 | # it under the terms of the GNU General Public License version 3, as published | ||
1218 | 10 | # by the Free Software Foundation. | ||
1219 | 11 | # | ||
1220 | 12 | # This program is distributed in the hope that it will be useful, | ||
1221 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1222 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1223 | 15 | # GNU General Public License for more details. | ||
1224 | 16 | # | ||
1225 | 17 | # You should have received a copy of the GNU General Public License | ||
1226 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/> | ||
1227 | 19 | |||
1228 | 20 | import testtools | ||
1229 | 21 | |||
1230 | 22 | from ubuntuuitoolkit import environment | ||
1231 | 23 | |||
1232 | 24 | from ubuntu_experience_tests import fixture_setup | ||
1233 | 25 | |||
1234 | 26 | |||
1235 | 27 | class TestabilityEnvironmentTestCase(testtools.TestCase): | ||
1236 | 28 | |||
1237 | 29 | def get_testability_environment_variable(self): | ||
1238 | 30 | try: | ||
1239 | 31 | return environment.get_initctl_env_var('QT_LOAD_TESTABILITY') | ||
1240 | 32 | except: | ||
1241 | 33 | return None | ||
1242 | 34 | |||
1243 | 35 | def test_fixture_must_setup_testability_environment(self): | ||
1244 | 36 | """Test the testability environment fixture is setting the variable.""" | ||
1245 | 37 | fixture = fixture_setup.TestabilityEnvironment() | ||
1246 | 38 | self.useFixture(fixture) | ||
1247 | 39 | |||
1248 | 40 | self.assertEquals('1', self.get_testability_environment_variable()) | ||
1249 | 41 | |||
1250 | 42 | def test_fixture_must_cleanup_testability_environment(self): | ||
1251 | 43 | """Test the testability fixture cleans the variable.""" | ||
1252 | 44 | original_value = self.get_testability_environment_variable() | ||
1253 | 45 | fixture = fixture_setup.TestabilityEnvironment() | ||
1254 | 46 | |||
1255 | 47 | def inner_test(): | ||
1256 | 48 | class TestWithFakeApplication(testtools.TestCase): | ||
1257 | 49 | def test_it(self): | ||
1258 | 50 | self.useFixture(fixture) | ||
1259 | 51 | return TestWithFakeApplication('test_it') | ||
1260 | 52 | |||
1261 | 53 | inner_test().run() | ||
1262 | 54 | |||
1263 | 55 | self.assertEqual( | ||
1264 | 56 | original_value, self.get_testability_environment_variable()) |