mirror of https://github.com/vitalif/phantomjs
Minor fixes
parent
610fb41922
commit
fbdbcd7f69
|
@ -112,7 +112,7 @@ bool Utils::loadJSForDebug(const QString& jsFilePath, const Encoding& jsFileEnc,
|
|||
return false; // We got big issues
|
||||
QString jsWrapper = QString::fromUtf8(wrapper.readAll());
|
||||
jsWrapper = jsWrapper.arg(scriptBody);
|
||||
m_tempWrapper = new QTemporaryFile( QDir::tempPath() + QDir::separator() + "debugwrapper_XXXXXX.js" );
|
||||
m_tempWrapper = new QTemporaryFile(QDir::tempPath() + "/debugwrapper_XXXXXX.js");
|
||||
m_tempWrapper->open();
|
||||
m_tempWrapper->write(jsWrapper.toUtf8());
|
||||
m_tempWrapper->close();
|
||||
|
@ -123,7 +123,7 @@ bool Utils::loadJSForDebug(const QString& jsFilePath, const Encoding& jsFileEnc,
|
|||
QString html = QString::fromUtf8(f.readAll());
|
||||
|
||||
html = html.arg(m_tempWrapper->fileName());
|
||||
m_tempHarness = new QTemporaryFile( QDir::tempPath() + QDir::separator() + "debugharness_XXXXXX.html" );
|
||||
m_tempHarness = new QTemporaryFile(QDir::tempPath() + "/debugharness_XXXXXX.html");
|
||||
m_tempHarness->open();
|
||||
m_tempHarness->write(html.toLocal8Bit());
|
||||
m_tempHarness->close();
|
||||
|
|
Loading…
Reference in New Issue