Add test for QUrl::isLocalFile (there weren't any).
Change-Id: I839d2eee7b0651700516d6140635151a52a9fa40 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
47cdc50bbc
commit
676304e706
@ -1001,6 +1001,7 @@ void tst_QUrl::toLocalFile()
|
|||||||
|
|
||||||
QUrl url(theUrl);
|
QUrl url(theUrl);
|
||||||
QCOMPARE(url.toLocalFile(), theFile);
|
QCOMPARE(url.toLocalFile(), theFile);
|
||||||
|
QCOMPARE(url.isLocalFile(), !theFile.isEmpty());
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_QUrl::fromLocalFile_data()
|
void tst_QUrl::fromLocalFile_data()
|
||||||
|
Loading…
Reference in New Issue
Block a user