summaryrefslogtreecommitdiffstats
path: root/tests/auto/qplaintextedit
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2009-07-06 16:40:59 +1000
committerRohan McGovern <rohan.mcgovern@nokia.com>2009-07-09 14:21:56 +1000
commit87df094ed204c237393eac1dd0b2fb907e642dcb (patch)
tree854385630599293e20bb2725ef786f278e6c2c7c /tests/auto/qplaintextedit
parentbae8bc5d23946036b2c1079fc6f1b3bceeaa19ca (diff)
Disable private unit tests when Qt is configured without
-developer-build, part 2. Some autotests use private (unexported) code, either because they're testing private classes or because that's the easiest way to test the public classes. Configuring Qt with `-developer-build' is needed for these tests. This commit fixes the tests so configuring without `-developer-build' only builds the tests which strictly use public API.
Diffstat (limited to 'tests/auto/qplaintextedit')
-rw-r--r--tests/auto/qplaintextedit/tst_qplaintextedit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qplaintextedit/tst_qplaintextedit.cpp b/tests/auto/qplaintextedit/tst_qplaintextedit.cpp
index fceefd2cc6..40ad539ee2 100644
--- a/tests/auto/qplaintextedit/tst_qplaintextedit.cpp
+++ b/tests/auto/qplaintextedit/tst_qplaintextedit.cpp
@@ -1106,6 +1106,7 @@ void tst_QPlainTextEdit::mimeDataReimplementations()
QCOMPARE(ed.canInsertCallCount, 0);
QCOMPARE(ed.insertCallCount, 0);
+#ifdef QT_BUILD_INTERNAL
QTextControl *control = qFindChild<QTextControl *>(&ed);
QVERIFY(control);
@@ -1120,6 +1121,7 @@ void tst_QPlainTextEdit::mimeDataReimplementations()
QCOMPARE(ed.createMimeDataCallCount, 1);
QCOMPARE(ed.canInsertCallCount, 1);
QCOMPARE(ed.insertCallCount, 1);
+#endif
}
void tst_QPlainTextEdit::shiftEnterShouldInsertLineSeparator()