mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
generic: fix and adjust some tests
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d0d29ef693
commit
3514f30e7b
6 changed files with 8 additions and 16 deletions
|
@ -72,7 +72,7 @@ void KSycocaDictTest::testStandardDict()
|
|||
|
||||
QDataStream stream(buffer);
|
||||
KSycocaDict loadingDict(&stream, 0);
|
||||
int offset = loadingDict.find_string("Plasma/Applet);
|
||||
int offset = loadingDict.find_string("Plasma/Applet");
|
||||
QVERIFY(offset > 0);
|
||||
QCOMPARE(offset, KServiceType::serviceType("Plasma/Applet")->offset());
|
||||
foreach(const QString& str, mimeTypes) {
|
||||
|
|
|
@ -320,9 +320,9 @@ void KFileItemTest::testListProperties_data()
|
|||
QTest::newRow("dir+root dir") << "d/" << true << false << true << true << "inode/directory" << "inode";
|
||||
QTest::newRow("two (text+html) files") << "ff" << true << true << true << false << "" << "text";
|
||||
QTest::newRow("three (text+html+empty) files") << "fff" << true << true << true << false << "" << "";
|
||||
QTest::newRow("http url") << "h" << true << true /*says kio_http...*/
|
||||
QTest::newRow("http url") << "h" << true << false /*says kio_http...*/
|
||||
<< false << false << "application/octet-stream" << "application";
|
||||
QTest::newRow("2 http urls") << "hh" << true << true /*says kio_http...*/
|
||||
QTest::newRow("2 http urls") << "hh" << true << false /*says kio_http...*/
|
||||
<< false << false << "application/octet-stream" << "application";
|
||||
}
|
||||
|
||||
|
|
|
@ -116,14 +116,6 @@ int main(int argc, char **argv)
|
|||
QStringList filter;
|
||||
filter << "all/allfiles" << "text/plain";
|
||||
dlg->setMimeFilter( filter, "all/allfiles" );
|
||||
#if 0 // SPLIT-TODO
|
||||
KUrlBar *urlBar = dlg->speedBar();
|
||||
if ( urlBar )
|
||||
{
|
||||
urlBar->insertDynamicItem( KUrl("ftp://ftp.kde.org"),
|
||||
QLatin1String("KDE FTP Server") );
|
||||
}
|
||||
#endif
|
||||
if ( dlg->exec() == KDialog::Accepted )
|
||||
name1 = dlg->selectedUrl().url();
|
||||
}
|
||||
|
|
|
@ -173,11 +173,11 @@ KioslaveTest::KioslaveTest( QString src, QString dest, uint op, uint pr )
|
|||
setCentralWidget( main_widget );
|
||||
|
||||
slave = 0;
|
||||
// slave = KIO::Scheduler::getConnectedSlave(KUrl("ftp://ftp.kde.org"));
|
||||
// slave = KIO::Scheduler::getConnectedSlave(KUrl("ftp://ftp.gnu.org/"));
|
||||
KIO::Scheduler::connect(SIGNAL(slaveConnected(KIO::Slave*)),
|
||||
this, SLOT(slotSlaveConnected()));
|
||||
this, SLOT(slotSlaveConnected()));
|
||||
KIO::Scheduler::connect(SIGNAL(slaveError(KIO::Slave*,int,QString)),
|
||||
this, SLOT(slotSlaveError()));
|
||||
this, SLOT(slotSlaveError()));
|
||||
}
|
||||
|
||||
void KioslaveTest::slotQuit(){
|
||||
|
|
|
@ -9,7 +9,7 @@ int main( int argc, char **argv )
|
|||
KApplication app;
|
||||
app.setQuitOnLastWindowClosed(false);
|
||||
|
||||
KUrl url = KUrlRequesterDialog::getUrl( "ftp://ftp.kde.org" );
|
||||
KUrl url = KUrlRequesterDialog::getUrl( "ftp://ftp.gnu.org/" );
|
||||
qDebug( "Selected url: %s", url.url().toLatin1().constData());
|
||||
|
||||
KUrlRequester *req = new KUrlRequester();
|
||||
|
|
|
@ -28,7 +28,7 @@ int main(int argc, char **argv)
|
|||
{
|
||||
KCmdLineArgs::init(argc,argv, "netaccesstest", 0, ki18n("netaccesstest"), 0);
|
||||
KApplication app;
|
||||
KUrl srcURL( "ftp://ftp.kde.org/pub/kde/README" );
|
||||
KUrl srcURL( "ftp://ftp.gnu.org/README" );
|
||||
KUrl tmpURL( "file:/tmp/netaccesstest_README" );
|
||||
|
||||
for ( uint i = 0; i < 4 ; ++i ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue