diff options
author | Maksymilian Osowski <maxosowski@google.com> | 2010-08-04 14:20:37 +0100 |
---|---|---|
committer | Maksymilian Osowski <maxosowski@google.com> | 2010-08-06 10:11:12 +0100 |
commit | 7e2a39b5985a1449588a397195c178bfef9421db (patch) | |
tree | 71f6a879fc253e22590e5f9168256c4494ccb778 /tests/DumpRenderTree2 | |
parent | d1ce7496f116e1622b8de8c4f912c657eb53eac6 (diff) | |
download | frameworks_base-7e2a39b5985a1449588a397195c178bfef9421db.zip frameworks_base-7e2a39b5985a1449588a397195c178bfef9421db.tar.gz frameworks_base-7e2a39b5985a1449588a397195c178bfef9421db.tar.bz2 |
Added detection of missing EventSender functions.
Change-Id: I5268a66089d5e29a9ae5e496d05f3c79465771f5
Diffstat (limited to 'tests/DumpRenderTree2')
-rw-r--r-- | tests/DumpRenderTree2/src/com/android/dumprendertree2/Summarizer.java | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/tests/DumpRenderTree2/src/com/android/dumprendertree2/Summarizer.java b/tests/DumpRenderTree2/src/com/android/dumprendertree2/Summarizer.java index 56822f3..1b73f97 100644 --- a/tests/DumpRenderTree2/src/com/android/dumprendertree2/Summarizer.java +++ b/tests/DumpRenderTree2/src/com/android/dumprendertree2/Summarizer.java @@ -21,9 +21,7 @@ import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Collections; import java.util.Date; -import java.util.HashSet; import java.util.List; -import java.util.Set; /** * A class that collects information about tests that ran and can create HTML @@ -146,7 +144,10 @@ public class Summarizer { " color: #fff;}" + "span.noLtc {" + " background-color: #944000;" + - " color: #fff;" + + " color: #fff;}" + + "span.noEventSender {" + + " background-color: #815600;" + + " color: #fff;}" + "</style>"; private static final String SCRIPT = @@ -278,12 +279,17 @@ public class Summarizer { /** Detect missing LTC function */ String additionalTextOutputString = result.getAdditionalTextOutputString(); - if (additionalTextOutputString != null && - additionalTextOutputString.contains("com.android.dumprendertree") && - additionalTextOutputString.contains("LayoutTestController") && - additionalTextOutputString.contains("has no method")) { + if (additionalTextOutputString != null && + additionalTextOutputString.contains("com.android.dumprendertree") && + additionalTextOutputString.contains("has no method")) { + if (additionalTextOutputString.contains("LayoutTestController")) { html.append(" <span class=\"listItem noLtc\">LTC function missing</span>"); } + if (additionalTextOutputString.contains("EventSender")) { + html.append(" <span class=\"listItem noEventSender\">"); + html.append("ES function missing</span>"); + } + } html.append("</h3>"); |