Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Commit

Permalink
failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbintz committed Sep 2, 2011
1 parent 3fdc69c commit 68a2888
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ext/jasmine-webkit-specrunner/ReportFileOutput_test.cpp
Expand Up @@ -18,5 +18,16 @@ void ReportFileOutputTest::testPassed() {
QVERIFY(output.failures.size() == 0);
}

void ReportFileOutputTest::testFailed() {
stringstream buffer;
ReportFileOutput output;

output.outputIO = &buffer;
output.passed("test||done||file.js:23");
QVERIFY(buffer.str() == "FAIL||test||done||file.js:23\n");
QVERIFY(output.successes.size() == 0);
QVERIFY(output.failures.size() == 1);
}

QTEST_MAIN(ReportFileOutputTest);

1 change: 1 addition & 0 deletions ext/jasmine-webkit-specrunner/ReportFileOutput_test.h
Expand Up @@ -14,6 +14,7 @@ class ReportFileOutputTest : public QObject {
ReportFileOutputTest();
private slots:
void testPassed();
void testFailed();
};

#endif

0 comments on commit 68a2888

Please sign in to comment.