Merge lp:~abreu-alexandre/ubuntu-html5-theme/port-to-python3 into lp:ubuntu-html5-theme

Proposed by Alexandre Abreu
Status: Merged
Approved by: Alexandre Abreu
Approved revision: no longer in the source branch.
Merged at revision: 191
Proposed branch: lp:~abreu-alexandre/ubuntu-html5-theme/port-to-python3
Merge into: lp:ubuntu-html5-theme
Diff against target: 160 lines (+58/-11)
8 files modified
README (+18/-0)
debian/control (+5/-6)
debian/ubuntu-html5-container-autopilot.install (+1/-1)
debian/ubuntu-html5-ui-toolkit-autopilot.install (+1/-1)
tests/autopilot/CMakeLists.txt (+1/-1)
tests/autopilot/tools/qml/message-server.js (+29/-0)
tests/autopilot/tools/qml/webview.qml (+2/-1)
tests/autopilot/ubuntu_html5_ui_toolkit/tests/__init__.py (+1/-1)
To merge this branch: bzr merge lp:~abreu-alexandre/ubuntu-html5-theme/port-to-python3
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Robert Bruce Park Pending
Ubuntu HTML5 Theme Developers Pending
Review via email: mp+234725@code.launchpad.net

Commit message

Port AP tests to python3 (blocking all other landings for fixes on the project)

Description of the change

Port AP tests to python3 (blocking all other landings for fixes on the project)

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
171. By Alexandre Abreu

make ubuntu-html5-container multi-arch foreign; update dependencies for libqt5webkit5-qmlwebkitplugin to qml-module-qtwebkit

172. By Alexandre Abreu

add forgotten changelog

173. By Steve Langasek

Drop unused dependency on dpkg-dev from ubuntu-html5-container. LP: #1369052. Fixes: 1369052
Approved by: PS Jenkins bot, Alexandre Abreu

174. By PS Jenkins bot

Releasing 0.1.2+14.10.20140922.1-0ubuntu1

175. By Jean-Francois Moy

Fixed alignment issues. Fixed UI.optionselector being incorrectly documented. Aligned terminology between various pages. Fixed incorrect UI.progress documentation. Fixes: 1276234
Approved by: Alexandre Abreu, PS Jenkins bot, David Barth

176. By PS Jenkins bot

Releasing 0.1.2+14.10.20141008-0ubuntu1

177. By Alexandre Abreu

Port HTML5 containert to oxide
Approved by: Alexandre Abreu

178. By PS Jenkins bot

Releasing 0.1.2+15.04.20141122-0ubuntu1

179. By Alexandre Abreu

Add --oxide flag to switch between oxide/webkit; simplify code.

For a smooth transition between the ubuntu-html5-app-launcher and the webapp-container as the new html5 container and to allow for some amount of backward compatibility, this MR makes sure that oxide can be used (part of the qtwebkit removal) with the launcher, and existsing apps can still function.

180. By CI Train Bot Account

Releasing 0.1.2+15.04.20141210.1-0ubuntu1

181. By Alexandre Abreu

Small fix for new tab/target blank handling

182. By CI Train Bot Account

Releasing 0.1.2+15.04.20141212.1-0ubuntu1

183. By Alexandre Abreu

Cleanup oxide option and set it as default and only option

184. By CI Train Bot Account

Releasing 0.1.2+15.04.20141217-0ubuntu1

185. By David Barth

Fix a few small typos in the docs

186. By David Barth

Make sure to add the header after it's created

187. By David Barth

Remove the strict cordova-2.8 dependency, which is not supported anymore Fixes: #1409656

188. By Alexandre Abreu

Meta branch that contains those bug fixes (easier to land):

lp:~daker/ubuntu-html5-theme/fix.1243396
lp:~daker/ubuntu-html5-theme/fix.1294779
lp:~daker/ubuntu-html5-theme/fix.1294993
lp:~daker/ubuntu-html5-theme/fix.1294986
lp:~daker/ubuntu-html5-theme/fix.1216874
lp:~daker/ubuntu-html5-theme/fix.slider

189. By Adnane Belmadiaf

Added timer to hide the toolbar Fixes: #1292109, #1293899
Approved by: Alexandre Abreu

190. By CI Train Bot Account

Releasing 0.1.2+15.04.20150115.2-0ubuntu1

191. By Alexandre Abreu

fixes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'README'
--- README 2014-05-25 18:51:21 +0000
+++ README 2015-01-21 16:41:55 +0000
@@ -26,3 +26,21 @@
26branch folder. Then enter this command to begin watching your scss files:26branch folder. Then enter this command to begin watching your scss files:
27$ sass --watch 0.1/ambiance/css/sass/default.scss:0.1/ambiance/css/appTemplate.css --style expanded27$ sass --watch 0.1/ambiance/css/sass/default.scss:0.1/ambiance/css/appTemplate.css --style expanded
2828
29Automated UI tests
30==================
31
32The ubuntu-html5 container and the ubuntu-ui-toolkit both use autopilot (https://launchpad.net/autopilot) to test its functional elements.
33
34To run the tests, you will need to install python3-autopilot and libautopilot-qt.
35Then do the following:
36
37 $ cd tests/autopilot/
38 $ autopilot3 run ubuntu_html5_ui_toolkit
39 $ autopilot3 run ubuntu_html5_container
40
41You can get a list of all available tests with the following commands:
42
43 $ autopilot3 list ubuntu_html5_ui_toolkit
44 $ autopilot3 list ubuntu_html5_container
45
46
2947
=== modified file 'debian/control'
--- debian/control 2015-01-15 16:20:21 +0000
+++ debian/control 2015-01-21 16:41:55 +0000
@@ -5,8 +5,8 @@
5Build-Depends: cmake (>= 2.8.9),5Build-Depends: cmake (>= 2.8.9),
6 debhelper (>= 9),6 debhelper (>= 9),
7 liboxideqt-qmlplugin (>= 1.2.0),7 liboxideqt-qmlplugin (>= 1.2.0),
8 python (>= 2.7),8 python3-all,
9 python-setuptools,9 python3-setuptools,
10 qt5-default,10 qt5-default,
11 qt5-qmake,11 qt5-qmake,
12 qtbase5-dev,12 qtbase5-dev,
@@ -64,13 +64,13 @@
64 libjs-jquery,64 libjs-jquery,
65 libqt5test5,65 libqt5test5,
66 liboxideqt-qmlplugin (>= 1.2.0),66 liboxideqt-qmlplugin (>= 1.2.0),
67 python-xlib,67 python3-xlib,
68 python3-autopilot,
68 qmlscene,69 qmlscene,
69 qtdeclarative5-qtquick2-plugin,70 qtdeclarative5-qtquick2-plugin,
70 ubuntu-html5-ui-toolkit (= ${binary:Version}),71 ubuntu-html5-ui-toolkit (= ${binary:Version}),
71 ubuntu-html5-ui-toolkit-examples (= ${binary:Version}),72 ubuntu-html5-ui-toolkit-examples (= ${binary:Version}),
72 ${misc:Depends},73 ${misc:Depends},
73 ${python:Depends},
74Replaces: ubuntu-html5-theme-autopilot (<< 0.1.1),74Replaces: ubuntu-html5-theme-autopilot (<< 0.1.1),
75Conflicts: ubuntu-html5-theme-autopilot (<< 0.1.1),75Conflicts: ubuntu-html5-theme-autopilot (<< 0.1.1),
76Provides: ubuntu-html5-theme-autopilot,76Provides: ubuntu-html5-theme-autopilot,
@@ -89,7 +89,6 @@
89 ubuntu-html5-ui-toolkit (= ${source:Version}),89 ubuntu-html5-ui-toolkit (= ${source:Version}),
90 unity-webapps-qml (>= 0.1+14.04.20131106-0ubuntu2),90 unity-webapps-qml (>= 0.1+14.04.20131106-0ubuntu2),
91 ${misc:Depends},91 ${misc:Depends},
92 ${python:Depends},
93 ${shlibs:Depends},92 ${shlibs:Depends},
94Description: Ubuntu HTML5 QML container component for HTML5 touch apps.93Description: Ubuntu HTML5 QML container component for HTML5 touch apps.
95 This package contains the Ubuntu HTML5 QML component used to embed HTML594 This package contains the Ubuntu HTML5 QML component used to embed HTML5
@@ -102,8 +101,8 @@
102 liboxideqt-qmlplugin (>= 1.2.0),101 liboxideqt-qmlplugin (>= 1.2.0),
103 qtdeclarative5-qtquick2-plugin,102 qtdeclarative5-qtquick2-plugin,
104 ubuntu-html5-container (>= ${binary:Version}),103 ubuntu-html5-container (>= ${binary:Version}),
104 python3-autopilot,
105 ${misc:Depends},105 ${misc:Depends},
106 ${python:Depends},
107Description: Autopilot tests for the Ubuntu HTML5 QML container component for HTML5 touch apps.106Description: Autopilot tests for the Ubuntu HTML5 QML container component for HTML5 touch apps.
108 This package contains the Ubuntu HTML5 QML component used to embed HTML5107 This package contains the Ubuntu HTML5 QML component used to embed HTML5
109 apps at runtime. This package contains the autopilot tests.108 apps at runtime. This package contains the autopilot tests.
110109
=== modified file 'debian/ubuntu-html5-container-autopilot.install'
--- debian/ubuntu-html5-container-autopilot.install 2014-02-06 22:51:33 +0000
+++ debian/ubuntu-html5-container-autopilot.install 2015-01-21 16:41:55 +0000
@@ -1,1 +1,1 @@
1usr/lib/python*/dist-packages/ubuntu_html5_container/*1usr/lib/python3/dist-packages/ubuntu_html5_container/*
22
=== modified file 'debian/ubuntu-html5-ui-toolkit-autopilot.install'
--- debian/ubuntu-html5-ui-toolkit-autopilot.install 2014-02-11 05:21:31 +0000
+++ debian/ubuntu-html5-ui-toolkit-autopilot.install 2015-01-21 16:41:55 +0000
@@ -1,2 +1,2 @@
1usr/lib/python*/dist-packages/ubuntu_html5_ui_toolkit/*1usr/lib/python3/dist-packages/ubuntu_html5_ui_toolkit/*
2usr/share/ubuntu-html5-ui-toolkit/tests2usr/share/ubuntu-html5-ui-toolkit/tests
33
=== modified file 'tests/autopilot/CMakeLists.txt'
--- tests/autopilot/CMakeLists.txt 2014-02-11 05:21:31 +0000
+++ tests/autopilot/CMakeLists.txt 2015-01-21 16:41:55 +0000
@@ -1,4 +1,4 @@
1execute_process(COMMAND python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"1execute_process(COMMAND python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
2 OUTPUT_VARIABLE PYTHON_PACKAGE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)2 OUTPUT_VARIABLE PYTHON_PACKAGE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)
33
4install(DIRECTORY ubuntu_html5_container ubuntu_html5_ui_toolkit4install(DIRECTORY ubuntu_html5_container ubuntu_html5_ui_toolkit
55
=== added file 'tests/autopilot/tools/qml/message-server.js'
--- tests/autopilot/tools/qml/message-server.js 1970-01-01 00:00:00 +0000
+++ tests/autopilot/tools/qml/message-server.js 2015-01-21 16:41:55 +0000
@@ -0,0 +1,29 @@
1// Copyright (C) 2014 Canonical Ltd.
2
3// This library is free software; you can redistribute it and/or
4// modify it under the terms of the GNU Lesser General Public
5// License as published by the Free Software Foundation; either
6// version 2.1 of the License, or (at your option) any later version.
7
8// This library is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11// Lesser General Public License for more details.
12
13// You should have received a copy of the GNU Lesser General Public
14// License along with this library; if not, write to the Free Software
15// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
17oxide.addMessageHandler("EVALUATE-CODE", function(msg) {
18 var code = msg.args.code;
19 if (msg.args.wrap) {
20 code = "(function() {" + code + "})()";
21 }
22 try {
23 var result = eval(code);
24 msg.reply({result: result});
25 } catch(e) {
26 msg.error("Code threw exception: \"" + e + "\"");
27 }
28});
29
030
=== modified file 'tests/autopilot/tools/qml/webview.qml'
--- tests/autopilot/tools/qml/webview.qml 2014-11-19 18:36:44 +0000
+++ tests/autopilot/tools/qml/webview.qml 2015-01-21 16:41:55 +0000
@@ -72,7 +72,8 @@
7272
73 function evalInPageUnsafe(expr) {73 function evalInPageUnsafe(expr) {
74 var result = webview.evaluateCode(expr, true);74 var result = webview.evaluateCode(expr, true);
75 root.resultUpdated(result.toString())75 console.log('result: ' + result)
76 root.resultUpdated(result ? result.toString() : result)
76 }77 }
7778
78 function clickAnyElementBySelector(selector) {79 function clickAnyElementBySelector(selector) {
7980
=== modified file 'tests/autopilot/ubuntu_html5_ui_toolkit/tests/__init__.py'
--- tests/autopilot/ubuntu_html5_ui_toolkit/tests/__init__.py 2014-11-19 18:36:44 +0000
+++ tests/autopilot/ubuntu_html5_ui_toolkit/tests/__init__.py 2015-01-21 16:41:55 +0000
@@ -200,7 +200,7 @@
200 def eval_expression_in_page_unsafe(self, expr):200 def eval_expression_in_page_unsafe(self, expr):
201 webview = self.get_webviewContainer()201 webview = self.get_webviewContainer()
202 prev_emissions = self.watcher.num_emissions202 prev_emissions = self.watcher.num_emissions
203 result = webview.slots.evalInPageUnsafe(expr)203 webview.slots.evalInPageUnsafe(expr)
204 self.assertThat(204 self.assertThat(
205 lambda: self.watcher.num_emissions,205 lambda: self.watcher.num_emissions,
206 Eventually(GreaterThan(prev_emissions)))206 Eventually(GreaterThan(prev_emissions)))

Subscribers

People subscribed via source and target branches