more breakage

This commit is contained in:
John Bintz 2011-10-25 11:25:02 -04:00
parent dda84fdcb9
commit 54e5d5c9d5
4 changed files with 7 additions and 21 deletions

View File

@ -74,7 +74,6 @@ bool Runner::hasElement(const char *select) {
} }
void Runner::setColors(bool colors) { void Runner::setColors(bool colors) {
consoleOutput.showColors = colors;
} }
void Runner::reportFile(const QString &file) { void Runner::reportFile(const QString &file) {
@ -108,27 +107,15 @@ void Runner::print(const QString &fh, const QString &content) {
void Runner::errorLog(const QString &msg, int lineNumber, const QString &sourceID) void Runner::errorLog(const QString &msg, int lineNumber, const QString &sourceID)
{ {
consoleOutput.errorLog(msg, lineNumber, sourceID);
reportFileOutput.errorLog(msg, lineNumber, sourceID);
hasErrors = true; hasErrors = true;
m_runs = 0; m_runs = 0;
m_ticker.start(); m_ticker.start();
} }
void Runner::internalLog(const QString &note, const QString &msg) { void Runner::internalLog(const QString &note, const QString &msg) {}
consoleOutput.internalLog(note, msg);
reportFileOutput.internalLog(note, msg);
}
void Runner::usedConsole()
{
usedConsole = true;
}
void Runner::leavePageAttempt(const QString &msg) void Runner::leavePageAttempt(const QString &msg)
{ {
consoleOutput.internalLog("error", msg);
m_page.oneFalseConfirm(); m_page.oneFalseConfirm();
hasErrors = true; hasErrors = true;
} }

View File

@ -26,8 +26,6 @@ class Runner: public QObject {
void addFile(const QString &spec); void addFile(const QString &spec);
void go(); void go();
public slots: public slots:
void log(const QString &msg);
bool hasError();
void leavePageAttempt(const QString &msg); void leavePageAttempt(const QString &msg);
void timerPause(); void timerPause();
void timerDone(); void timerDone();
@ -54,8 +52,6 @@ class Runner: public QObject {
QQueue<QString> runnerFiles; QQueue<QString> runnerFiles;
QStack<QString> failedSpecs; QStack<QString> failedSpecs;
ReportFileOutput reportFileOutput;
QString reportFileName; QString reportFileName;
void loadSpec(); void loadSpec();

0
jasmine/prolog.coffee Normal file
View File

3
jasmine/prolog.js Normal file
View File

@ -0,0 +1,3 @@
(function() {
}).call(this);