Modification of testSetHorizontalSpacing()
Whenever the horizontal resolution exceeds 1056 dots,
testSetHorizontalSpacing() is failed.
The parameter of mGridView.setNumColumns() is changed from 22 to 28.
The test case is also passed on a terminal of horizontal resolution
of 1344 dots.
Change-Id: Id268f167319f833bd35f7e60b04c461101d7042a
diff --git a/tests/tests/widget/src/android/widget/cts/GridViewTest.java b/tests/tests/widget/src/android/widget/cts/GridViewTest.java
index 84c07f7..50a7bae 100755
--- a/tests/tests/widget/src/android/widget/cts/GridViewTest.java
+++ b/tests/tests/widget/src/android/widget/cts/GridViewTest.java
@@ -312,7 +312,8 @@
mGridView.setStretchMode(GridView.NO_STRETCH);
// Number of columns should be big enough, otherwise the
// horizontal spacing cannot be correctly verified.
- mGridView.setNumColumns(22);
+ mGridView.setNumColumns(28);
+
// this test case can not be ran in UI thread.
mActivity.runOnUiThread(new Runnable() {