summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2013-06-17 13:35:33 +0200
committerhjk <hjk121@nokiamail.com>2013-06-17 14:11:32 +0200
commit232d7ab8bc3333fc66fe199b218db56c22da5ab4 (patch)
tree5db7503645f1bd0db370271759c414b704f30fce /tests
parent4e9dd0db6ccbb8d3036afd5810fcc4c59437f6e1 (diff)
downloadqt-creator-232d7ab8bc3333fc66fe199b218db56c22da5ab4.tar.gz
Debugger: Split manual QObject dumper test into smaller chunks
Easier to track down issues if they are more isolated... Change-Id: I89d7e5f474c08075196f9e0f2bde471fb093c7e4 Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/debugger/simple/simple_test_app.cpp41
1 files changed, 28 insertions, 13 deletions
diff --git a/tests/manual/debugger/simple/simple_test_app.cpp b/tests/manual/debugger/simple/simple_test_app.cpp
index 5e6ed6039d..545514b367 100644
--- a/tests/manual/debugger/simple/simple_test_app.cpp
+++ b/tests/manual/debugger/simple/simple_test_app.cpp
@@ -1768,7 +1768,6 @@ namespace qobject {
void testQObject2()
{
//QString longString = QString(10000, QLatin1Char('A'));
- #if 1
Names::Bar::TestObject test;
test.setMyProp1("HELLO");
test.setMyProp2("WORLD");
@@ -1779,19 +1778,22 @@ namespace qobject {
// Check test qobject::Names::Bar::TestObject.
// Continue.
dummyStatement(&s);
- #endif
+ }
- #if 0
- QAction act("xxx", &app);
+ void testQObject3()
+ {
+ QAction act("xxx", qApp);
QString t = act.text();
t += "y";
t += "y";
t += "y";
t += "y";
t += "y";
- #endif
+ dummyStatement(&act, &t);
+ }
- #if 1
+ void testQObject4()
+ {
#if USE_GUILIB
QWidget ob;
ob.setObjectName("An Object");
@@ -1801,19 +1803,29 @@ namespace qobject {
ob1.setObjectName("Another Object");
QObject::connect(&ob, SIGNAL(destroyed()), &ob1, SLOT(deleteLater()));
- QObject::connect(&ob, SIGNAL(destroyed()), &ob1, SLOT(deleteLater()));
- //QObject::connect(&app, SIGNAL(lastWindowClosed()), &ob, SLOT(deleteLater()));
+ QObject::connect(&ob1, SIGNAL(destroyed()), &ob, SLOT(deleteLater()));
+ BREAK_HERE;
+ QObject::disconnect(&ob, SIGNAL(destroyed()), &ob1, SLOT(deleteLater()));
+ QObject::disconnect(&ob1, SIGNAL(destroyed()), &ob, SLOT(deleteLater()));
+ dummyStatement(&ob, &ob1);
#endif
- #endif
+ }
- #if 0
+ void testQObject5()
+ {
+ QWidget ob;
+ ob.setObjectName("An Object");
+ ob.setProperty("USER DEFINED 1", 44);
+ ob.setProperty("USER DEFINED 2", QStringList() << "FOO" << "BAR");
+ QObject ob1;
QList<QObject *> obs;
obs.append(&ob);
obs.append(&ob1);
obs.append(0);
- obs.append(&app);
- ob1.setObjectName("A Subobject");
- #endif
+ obs.append(qApp);
+ ob1.setObjectName("Another Object");
+ BREAK_HERE;
+ dummyStatement(&obs);
}
class Sender : public QObject
@@ -1960,6 +1972,9 @@ namespace qobject {
testQObjectData();
testQObject1();
testQObject2();
+ testQObject3();
+ testQObject4();
+ testQObject5();
testSignalSlot();
}