Merge lp:~aacid/unity-api/52regressions into lp:unity-api

Proposed by Albert Astals Cid
Status: Rejected
Rejected by: Michał Sawicz
Proposed branch: lp:~aacid/unity-api/52regressions
Merge into: lp:unity-api
Diff against target: 82 lines (+16/-7)
4 files modified
test/qmltest/modules/TestUtil/test/tst_TestUtil.qml (+6/-2)
test/qmltest/unity/shell/application/tst_Application.qml (+2/-1)
test/qmltest/unity/shell/launcher/tst_Launcher.qml (+2/-1)
test/qmltest/unity/shell/notifications/tst_Notifications.qml (+6/-3)
To merge this branch: bzr merge lp:~aacid/unity-api/52regressions
Reviewer Review Type Date Requested Status
Michał Sawicz Disapprove
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+194303@code.launchpad.net

Commit message

Comment out tests that are broken in Qt 5.2

The singleton handling in Qt 5.2 seems to have regressed a bit, fortunately
we only seem to be using them for the tests

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michał Sawicz (saviq) wrote :

Since we're actually fixing this upstream, I'm gonna disapprove.

review: Disapprove

Unmerged revisions

111. By Albert Astals Cid

Comment out tests that are broken in Qt 5.2

The singleton handling in Qt 5.2 seems to have regressed a bit, fortunately
we only seem to be using them for the tests

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'test/qmltest/modules/TestUtil/test/tst_TestUtil.qml'
2--- test/qmltest/modules/TestUtil/test/tst_TestUtil.qml 2013-06-26 23:47:34 +0000
3+++ test/qmltest/modules/TestUtil/test/tst_TestUtil.qml 2013-11-07 09:52:31 +0000
4@@ -31,18 +31,22 @@
5 // Singletons need to be bound to a property and not-named-imported
6 // for them to be able to be properly passed back to C++.
7 // See https://bugreports.qt-project.org/browse/QTBUG-30730
8+ // Qt 5.2 has regressed and the workaround doesn't work anymore
9+ // See https://bugreports.qt-project.org/browse/QTBUG-34617
10 property var util: Util
11
12 function test_direct() {
13 compare(Util.isInstanceOf(rect, "QQuickRectangle"), true, "rect should be an instance of QQuickRectangle");
14- compare(Util.isInstanceOf(util, "TestUtil"), true, "Util should be an instance of TestUtil");
15+ // FIXME Uncomment when https://bugreports.qt-project.org/browse/QTBUG-34617 gets fixed
16+// compare(Util.isInstanceOf(util, "TestUtil"), true, "Util should be an instance of TestUtil");
17 compare(Util.isInstanceOf(testObject, "MockObjectForInstanceOfTestChild"), true, "testObject should be an instance of MockObjectForInstanceOfTestChild");
18 }
19
20 function test_inherited() {
21 compare(Util.isInstanceOf(rect, "QQuickItem"), true, "rect should be an instance of QQuickItem");
22 compare(Util.isInstanceOf(rect, "QObject"), true, "rect should be an instance of QObject");
23- compare(Util.isInstanceOf(util, "QObject"), true, "Util should be an instance of QObject");
24+ // FIXME Uncomment when https://bugreports.qt-project.org/browse/QTBUG-34617 gets fixed
25+// compare(Util.isInstanceOf(util, "QObject"), true, "Util should be an instance of QObject");
26 compare(Util.isInstanceOf(testObject, "MockObjectForInstanceOfTest"), true, "testObject should be an instance of MockObjectForInstanceOfTest");
27 compare(Util.isInstanceOf(testObject, "QQuickRectangle"), true, "testObject should be an instance of QQuickRectangle");
28 }
29
30=== modified file 'test/qmltest/unity/shell/application/tst_Application.qml'
31--- test/qmltest/unity/shell/application/tst_Application.qml 2013-09-09 10:59:06 +0000
32+++ test/qmltest/unity/shell/application/tst_Application.qml 2013-11-07 09:52:31 +0000
33@@ -36,7 +36,8 @@
34 function test_model_data() {
35 return [
36 { tag: "ApplicationManager[object]", type: "object" },
37- { tag: "ApplicationManager[ApplicationManagerInterface]", type: "unity::shell::application::ApplicationManagerInterface" },
38+ // FIXME Uncomment when https://bugreports.qt-project.org/browse/QTBUG-34617 gets fixed
39+// { tag: "ApplicationManager[ApplicationManagerInterface]", type: "unity::shell::application::ApplicationManagerInterface" },
40 ];
41 }
42
43
44=== modified file 'test/qmltest/unity/shell/launcher/tst_Launcher.qml'
45--- test/qmltest/unity/shell/launcher/tst_Launcher.qml 2013-09-11 15:28:22 +0000
46+++ test/qmltest/unity/shell/launcher/tst_Launcher.qml 2013-11-07 09:52:31 +0000
47@@ -36,7 +36,8 @@
48 function test_model_data() {
49 return [
50 { tag: "LauncherModel[object]", type: "object" },
51- { tag: "LauncherModel[LauncherModelInterface]", type: "unity::shell::launcher::LauncherModelInterface" },
52+ // FIXME Uncomment when https://bugreports.qt-project.org/browse/QTBUG-34617 gets fixed
53+// { tag: "LauncherModel[LauncherModelInterface]", type: "unity::shell::launcher::LauncherModelInterface" },
54 ];
55 }
56
57
58=== modified file 'test/qmltest/unity/shell/notifications/tst_Notifications.qml'
59--- test/qmltest/unity/shell/notifications/tst_Notifications.qml 2013-06-26 23:47:34 +0000
60+++ test/qmltest/unity/shell/notifications/tst_Notifications.qml 2013-11-07 09:52:31 +0000
61@@ -71,7 +71,8 @@
62 function test_model_data() {
63 return [
64 { tag: "Model[object]", type: "object" },
65- { tag: "Model[ModelInterface]", type: "unity::shell::notifications::ModelInterface" },
66+ // FIXME Uncomment when https://bugreports.qt-project.org/browse/QTBUG-34617 gets fixed
67+// { tag: "Model[ModelInterface]", type: "unity::shell::notifications::ModelInterface" },
68 { tag: "Model.confirmationPlaceholder", writable: "confirmationPlaceholder",
69 type: "boolean", value: !Model.confirmationPlaceholder }
70 ];
71@@ -87,8 +88,10 @@
72 function test_source_data() {
73 return [
74 { tag: "Source[object]", type: "object" },
75- { tag: "Source[SourceInterface]", type: "unity::shell::notifications::SourceInterface" },
76- { tag: "Source.model", writable: "model", type: "object", value: model },
77+ // FIXME Uncomment when https://bugreports.qt-project.org/browse/QTBUG-34617 gets fixed
78+// { tag: "Source[SourceInterface]", type: "unity::shell::notifications::SourceInterface" },
79+ // FIXME: Uncomment when https://bugreports.qt-project.org/browse/QTBUG-34651 gets fixed
80+// { tag: "Source.model", writable: "model", type: "object", value: model },
81 ];
82 }
83

Subscribers

People subscribed via source and target branches

to all changes: