equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the test suite of the Qt Toolkit. |
7 ** This file is part of the test suite of the Qt Toolkit. |
8 ** |
8 ** |
545 } |
545 } |
546 |
546 |
547 |
547 |
548 // ### FIXME: This will fail on Symbian on some tests and some environments until the file engine and QFileSystemModel |
548 // ### FIXME: This will fail on Symbian on some tests and some environments until the file engine and QFileSystemModel |
549 // are fixed to properly capitalize paths, so that some folders are not duplicated in QFileSystemModel. |
549 // are fixed to properly capitalize paths, so that some folders are not duplicated in QFileSystemModel. |
|
550 #if defined(Q_OS_SYMBIAN) |
|
551 QSKIP("This will fail on Symbian on some tests and some environments until the file engine and QFileSystemModel are fixed to properly capitalize paths") |
|
552 #endif |
550 QTRY_COMPARE(cModel->rowCount(), expected); |
553 QTRY_COMPARE(cModel->rowCount(), expected); |
551 } QT_CATCH(...) { |
554 } QT_CATCH(...) { |
552 qDeleteAll(files); |
555 qDeleteAll(files); |
553 QT_RETHROW; |
556 QT_RETHROW; |
554 } |
557 } |
947 dialog->show(); |
950 dialog->show(); |
948 QTest::qWait(500); |
951 QTest::qWait(500); |
949 QLineEdit *lineEdit = qFindChild<QLineEdit*>(dialog, "fileNameEdit"); |
952 QLineEdit *lineEdit = qFindChild<QLineEdit*>(dialog, "fileNameEdit"); |
950 QVERIFY(lineEdit); |
953 QVERIFY(lineEdit); |
951 QCOMPARE(lineEdit->text(),QLatin1String("blah")); |
954 QCOMPARE(lineEdit->text(),QLatin1String("blah")); |
|
955 delete dialog; |
952 } |
956 } |
953 |
957 |
954 void tst_QFiledialog::viewMode() |
958 void tst_QFiledialog::viewMode() |
955 { |
959 { |
956 QNonNativeFileDialog fd; |
960 QNonNativeFileDialog fd; |