diff options
author | Steve Block <steveblock@google.com> | 2010-09-13 14:25:21 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-09-13 14:28:46 +0100 |
commit | 7438b53487cb21f261eac4396aba0dbaa16ee015 (patch) | |
tree | cbf7608456946ec39ebadb5a0b8cbe2827abe7d2 /tests | |
parent | d96f3360f9b495d9d4023ce76353da62f815d6e4 (diff) | |
download | frameworks_base-7438b53487cb21f261eac4396aba0dbaa16ee015.zip frameworks_base-7438b53487cb21f261eac4396aba0dbaa16ee015.tar.gz frameworks_base-7438b53487cb21f261eac4396aba0dbaa16ee015.tar.bz2 |
Update DumpRenderTree2 text results output to better match HTML version
Always print number of crashes and line things up nicely.
Change-Id: I79a72056ba5ce007fdd4154f1518b9535b595317
Diffstat (limited to 'tests')
-rw-r--r-- | tests/DumpRenderTree2/src/com/android/dumprendertree2/Summarizer.java | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/tests/DumpRenderTree2/src/com/android/dumprendertree2/Summarizer.java b/tests/DumpRenderTree2/src/com/android/dumprendertree2/Summarizer.java index 0efb78e..b61e145 100644 --- a/tests/DumpRenderTree2/src/com/android/dumprendertree2/Summarizer.java +++ b/tests/DumpRenderTree2/src/com/android/dumprendertree2/Summarizer.java @@ -265,15 +265,12 @@ public class Summarizer { txt.append("WebKit version: " + getWebKitVersionFromUserAgentString() + "\n"); txt.append("WebKit revision: " + getWebKitRevision() + "\n"); - txt.append("TOTAL: " + getTotalTestCount() + "\n"); - if (mCrashedTestsCount > 0) { - txt.append("CRASHED (total among all tests): " + mCrashedTestsCount + "\n"); - txt.append("-------------"); - } - txt.append("UNEXPECTED FAILURES: " + mUnexpectedFailures.size() + "\n"); - txt.append("UNEXPECTED PASSES: " + mUnexpectedPasses.size() + "\n"); - txt.append("EXPECTED FAILURES: " + mExpectedFailures.size() + "\n"); - txt.append("EXPECTED PASSES: " + mExpectedPasses.size() + "\n"); + txt.append("TOTAL: " + getTotalTestCount() + "\n"); + txt.append("CRASHED (among all tests): " + mCrashedTestsCount + "\n"); + txt.append("UNEXPECTED FAILURES: " + mUnexpectedFailures.size() + "\n"); + txt.append("UNEXPECTED PASSES: " + mUnexpectedPasses.size() + "\n"); + txt.append("EXPECTED FAILURES: " + mExpectedFailures.size() + "\n"); + txt.append("EXPECTED PASSES: " + mExpectedPasses.size() + "\n"); FsUtils.writeDataToStorage(new File(mResultsRootDirPath, TXT_SUMMARY_RELATIVE_PATH), txt.toString().getBytes(), false); @@ -355,7 +352,7 @@ public class Summarizer { html.append("<table class=\"summary\">"); createSummaryTableRow(html, "TOTAL", getTotalTestCount()); - createSummaryTableRow(html, "CRASHED", mCrashedTestsCount); + createSummaryTableRow(html, "CRASHED (among all tests)", mCrashedTestsCount); createSummaryTableRow(html, "UNEXPECTED FAILURES", mUnexpectedFailures.size()); createSummaryTableRow(html, "UNEXPECTED PASSES", mUnexpectedPasses.size()); createSummaryTableRow(html, "EXPECTED FAILURES", mExpectedFailures.size()); |