Merge lp:~canonical-platform-qa/autopilot-qt/wily_fix-unittests into lp:autopilot-qt

Proposed by Christopher Lee
Status: Superseded
Proposed branch: lp:~canonical-platform-qa/autopilot-qt/wily_fix-unittests
Merge into: lp:autopilot-qt
Diff against target: 44 lines (+7/-6)
2 files modified
debian/control (+1/-2)
tests/unittests/tst_introspection.cpp (+6/-4)
To merge this branch: bzr merge lp:~canonical-platform-qa/autopilot-qt/wily_fix-unittests
Reviewer Review Type Date Requested Status
Autopilot Hackers Pending
Review via email: mp+268989@code.launchpad.net

This proposal has been superseded by a proposal from 2015-08-25.

Commit message

Update unittest to reflect 2 new objects that appear in the object tree.

Description of the change

Update test to reflect 2 new objects that appear in the object tree.

To post a comment you must log in.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2014-08-19 23:59:15 +0000
3+++ debian/control 2015-08-25 00:30:42 +0000
4@@ -69,8 +69,7 @@
5 Package: qttestability-autopilot
6 Section: libs
7 Architecture: any
8-Depends: libxpathselect1.4,
9- python3-autopilot (>= 1.4),
10+Depends: python3-autopilot (>= 1.4),
11 autopilot-qt5 | autopilot-qt4
12 ${misc:Depends},
13 ${shlibs:Depends}
14
15=== modified file 'tests/unittests/tst_introspection.cpp'
16--- tests/unittests/tst_introspection.cpp 2014-07-21 02:04:52 +0000
17+++ tests/unittests/tst_introspection.cpp 2015-08-25 00:30:42 +0000
18@@ -107,11 +107,13 @@
19 QStringList()
20 << "QMainWindow"
21 << "QWidgetWindow"
22+ << "QWidgetWindow"
23+ << "QWidgetWindow"
24 )
25 );
26
27- QTest::newRow("//QWidget[id=6]")
28- << "//QWidget[id=6]"
29+ QTest::newRow("//QWidget[id=8]")
30+ << "//QWidget[id=8]"
31 << 1
32 << "/tst_introspection/QMainWindow/QWidget"
33 << "objectName"
34@@ -121,8 +123,8 @@
35 << "centralTestWidget"
36 );
37
38- QTest::newRow("//QPushButton[id=9]")
39- << "//QPushButton[id=9]"
40+ QTest::newRow("//QPushButton[id=11]")
41+ << "//QPushButton[id=11]"
42 << 1
43 << "/tst_introspection/QMainWindow/QWidget/QPushButton"
44 << "objectName"

Subscribers

People subscribed via source and target branches