From fb4b88fddb95ae37bafb304bec8d7f0a0d447dd9 Mon Sep 17 00:00:00 2001 From: Kristian Monsen Date: Wed, 26 May 2010 18:21:39 +0100 Subject: Fixes an error when displaying the current layout test index. This fixes a bug in commit https://android-git.corp.google.com/g/#change,52518. Updated index to be zero based when passed around and off by one error on resume. Note that previous commit changes how DumpRenderTree dumps titles. This might affect the results of layout tests. Change-Id: I3d6989d71c336f90168e38c994dd36743bda365c --- .../src/com/android/dumprendertree/LayoutTestsAutoTest.java | 6 +++--- .../src/com/android/dumprendertree/TestShellActivity.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java b/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java index 150d65c..a2809c3 100644 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/LayoutTestsAutoTest.java @@ -154,7 +154,7 @@ public class LayoutTestsAutoTest extends ActivityInstrumentationTestCase2(mTestList.subList(i+1, mTestList.size())); mTestListIgnoreResult = new Vector(mTestListIgnoreResult.subList(i+1, mTestListIgnoreResult.size())); - mResumeIndex = i; + mResumeIndex = i + 1; break; } } @@ -402,7 +402,7 @@ public class LayoutTestsAutoTest extends ActivityInstrumentationTestCase2