summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-10-31 13:09:08 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-31 06:59:24 +0100
commit665c9390d0b6759fb52a584cebc08e993451039f (patch)
treec8538041a106eebf875707b2a145930163ca1294 /tests/auto/corelib/tools
parent7698cd375030eb0fb879a4ef47a551206f9f8823 (diff)
Remove tests for API that never made it into Qt.
Change-Id: If78d82abfb4ff3402eb8f36729bacc3c4d343d0c Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/corelib/tools')
-rw-r--r--tests/auto/corelib/tools/qhash/tst_qhash.cpp26
-rw-r--r--tests/auto/corelib/tools/qmap/tst_qmap.cpp19
2 files changed, 0 insertions, 45 deletions
diff --git a/tests/auto/corelib/tools/qhash/tst_qhash.cpp b/tests/auto/corelib/tools/qhash/tst_qhash.cpp
index fc669628b5..277171124c 100644
--- a/tests/auto/corelib/tools/qhash/tst_qhash.cpp
+++ b/tests/auto/corelib/tools/qhash/tst_qhash.cpp
@@ -935,32 +935,6 @@ void tst_QHash::iterators()
QVERIFY(javaIt.value() == testMap.value(i));
}
- /*
- I've removed findNextKey() and findPreviousKey() from the API
- for Qt 4.0 beta 1.
- */
-
-#if 0
- //findPreviousKey() findNextKey()
- for(i = 1; i < 100; ++i) {
- if(javaIt.findNextKey(i))
- QVERIFY(javaIt.value() == testString.arg(i));
- else {
- QVERIFY(!javaIt.hasNext());
- QVERIFY(javaIt.findPreviousKey(i));
- QVERIFY(javaIt.value() == testString.arg(i));
- }
-
- if(javaIt.findPreviousKey(i))
- QVERIFY(javaIt.value() == testString.arg(i));
- else {
- QVERIFY(!javaIt.hasPrevious());
- QVERIFY(javaIt.findNextKey(i));
- QVERIFY(javaIt.value() == testString.arg(i));
- }
- }
-#endif
-
//peekNext() peekPrevious()
javaIt.toFront();
javaIt.next();
diff --git a/tests/auto/corelib/tools/qmap/tst_qmap.cpp b/tests/auto/corelib/tools/qmap/tst_qmap.cpp
index 2b4cbe9b66..e6e8466aa2 100644
--- a/tests/auto/corelib/tools/qmap/tst_qmap.cpp
+++ b/tests/auto/corelib/tools/qmap/tst_qmap.cpp
@@ -713,31 +713,12 @@ void tst_QMap::iterators()
QVERIFY(javaIt.value() == testString.arg(i));
}
- /*
- I've removed findNextKey() and findPreviousKey() from the API
- for Qt 4.0 beta 1.
- */
-
-#if 0
- QVERIFY(javaIt.findNextKey(50));
- QVERIFY(javaIt.value() == "Teststring 50");
-#endif
-
i = 51;
while(javaIt.hasPrevious()) {
--i;
javaIt.previous();
QVERIFY(javaIt.value() == testString.arg(i));
}
-
-#if 0
- QVERIFY(javaIt.findNextKey(50));
- QVERIFY(javaIt.value() == "Teststring 50");
-
- QVERIFY(javaIt.hasPrevious());
- QVERIFY(javaIt.findPreviousKey(20));
- QCOMPARE(javaIt.value(), QString("Teststring 20"));
-#endif
}
void tst_QMap::keys_values_uniqueKeys()