void DumpRenderTree::processArgsLine(const QStringList &args) { setStandAloneMode(true); m_standAloneModeTestList = args; QFileInfo firstEntry(m_standAloneModeTestList.first()); if (firstEntry.isDir()) { QDir folderEntry(m_standAloneModeTestList.first()); QStringList supportedExt; // Check for all supported extensions (from Scripts/webkitpy/layout_tests/layout_package/test_files.py). supportedExt << "*.html" << "*.shtml" << "*.xml" << "*.xhtml" << "*.xhtmlmp" << "*.pl" << "*.php" << "*.svg"; m_standAloneModeTestList = folderEntry.entryList(supportedExt, QDir::Files); for (int i = 0; i < m_standAloneModeTestList.size(); ++i) m_standAloneModeTestList[i] = folderEntry.absoluteFilePath(m_standAloneModeTestList[i]); } connect(this, SIGNAL(ready()), this, SLOT(loadNextTestInStandAloneMode()), Qt::QueuedConnection); if (!m_standAloneModeTestList.isEmpty()) { QString first = m_standAloneModeTestList.takeFirst(); processLine(first); } }
void DumpRenderTree::processArgsLine(const QStringList &args) { setStandAloneMode(true); for (int i = 1; i < args.size(); ++i) if (!args.at(i).startsWith('-')) m_standAloneModeTestList.append(args[i]); QFileInfo firstEntry(m_standAloneModeTestList.first()); if (firstEntry.isDir()) { QDir folderEntry(m_standAloneModeTestList.first()); QStringList supportedExt; // Check for all supported extensions (from Scripts/webkitpy/layout_tests/layout_package/test_files.py). supportedExt << "*.html" << "*.shtml" << "*.xml" << "*.xhtml" << "*.xhtmlmp" << "*.pl" << "*.php" << "*.svg"; m_standAloneModeTestList = folderEntry.entryList(supportedExt, QDir::Files); for (int i = 0; i < m_standAloneModeTestList.size(); ++i) m_standAloneModeTestList[i] = folderEntry.absoluteFilePath(m_standAloneModeTestList[i]); } processLine(m_standAloneModeTestList.first()); m_standAloneModeTestList.removeFirst(); connect(this, SIGNAL(ready()), this, SLOT(loadNextTestInStandAloneMode())); }