Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
frameworks_base
Commits
5535bbdf
Commit
5535bbdf
authored
15 years ago
by
Brett Chabot
Browse files
Options
Download
Email Patches
Plain Diff
Disable flaky and failing tests.
Bugs 2118268, 2176089
parent
a47d1536
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
36 additions
and
19 deletions
+36
-19
tests/AndroidTests/src/com/android/unit_tests/activity/LifecycleTest.java
...ts/src/com/android/unit_tests/activity/LifecycleTest.java
+2
-2
tests/AndroidTests/src/com/android/unit_tests/os/PerformanceCollectorTest.java
...c/com/android/unit_tests/os/PerformanceCollectorTest.java
+4
-2
tests/FrameworkTest/tests/src/com/android/frameworktest/focus/ScrollingThroughListOfFocusablesTest.java
...eworktest/focus/ScrollingThroughListOfFocusablesTest.java
+2
-1
tests/FrameworkTest/tests/src/com/android/frameworktest/gridview/touch/GridTouchVerticalSpacingStackFromBottomTest.java
...ew/touch/GridTouchVerticalSpacingStackFromBottomTest.java
+4
-2
tests/FrameworkTest/tests/src/com/android/frameworktest/gridview/touch/GridTouchVerticalSpacingTest.java
...worktest/gridview/touch/GridTouchVerticalSpacingTest.java
+4
-2
tests/FrameworkTest/tests/src/com/android/frameworktest/layout/table/FixedWidthTest.java
...om/android/frameworktest/layout/table/FixedWidthTest.java
+4
-2
tests/FrameworkTest/tests/src/com/android/frameworktest/listview/touch/ListOfTouchablesTest.java
...id/frameworktest/listview/touch/ListOfTouchablesTest.java
+4
-2
tests/FrameworkTest/tests/src/com/android/frameworktest/listview/touch/ListTouchBottomGravityManyTest.java
...rktest/listview/touch/ListTouchBottomGravityManyTest.java
+4
-2
tests/FrameworkTest/tests/src/com/android/frameworktest/listview/touch/ListTouchManyTest.java
...droid/frameworktest/listview/touch/ListTouchManyTest.java
+4
-2
tests/FrameworkTest/tests/src/com/android/frameworktest/view/BigCacheTest.java
...ests/src/com/android/frameworktest/view/BigCacheTest.java
+2
-1
tests/FrameworkTest/tests/src/com/android/frameworktest/view/IncludeTest.java
...tests/src/com/android/frameworktest/view/IncludeTest.java
+2
-1
No files found.
tests/AndroidTests/src/com/android/unit_tests/activity/LifecycleTest.java
View file @
5535bbdf
...
...
@@ -51,8 +51,8 @@ public class LifecycleTest extends ActivityTestsBase {
}
//Marking flaky until bug 1164344 is fixed.
@FlakyTest
(
tolerance
=
2
)
@LargeTest
//
@FlakyTest(tolerance=2)
//
@LargeTest
public
void
testScreen
()
throws
Exception
{
mIntent
=
mTopIntent
;
runLaunchpad
(
LaunchpadActivity
.
LIFECYCLE_SCREEN
);
...
...
This diff is collapsed.
Click to expand it.
tests/AndroidTests/src/com/android/unit_tests/os/PerformanceCollectorTest.java
View file @
5535bbdf
...
...
@@ -160,7 +160,8 @@ public class PerformanceCollectorTest extends TestCase {
verifyTimingBundle
(
timing
,
labels
);
}
@LargeTest
// TODO: flaky test
// @LargeTest
public
void
testSimpleSequence
()
throws
Exception
{
MockPerformanceResultsWriter
writer
=
new
MockPerformanceResultsWriter
();
mPerfCollector
.
setPerformanceResultsWriter
(
writer
);
...
...
@@ -192,7 +193,8 @@ public class PerformanceCollectorTest extends TestCase {
verifyTimingBundle
(
timing
,
labels
);
}
@LargeTest
// TODO: flaky test
// @LargeTest
public
void
testLongSequence
()
throws
Exception
{
MockPerformanceResultsWriter
writer
=
new
MockPerformanceResultsWriter
();
mPerfCollector
.
setPerformanceResultsWriter
(
writer
);
...
...
This diff is collapsed.
Click to expand it.
tests/FrameworkTest/tests/src/com/android/frameworktest/focus/ScrollingThroughListOfFocusablesTest.java
View file @
5535bbdf
...
...
@@ -67,7 +67,8 @@ public class ScrollingThroughListOfFocusablesTest extends InstrumentationTestCas
assertEquals
(
mNumRowsPerItem
,
mActivity
.
getNumRowsPerItem
());
}
@MediumTest
// TODO: needs to be adjusted to pass on non-HVGA displays
// @MediumTest
public
void
testScrollingDownInFirstItem
()
throws
Exception
{
for
(
int
i
=
0
;
i
<
mNumRowsPerItem
;
i
++)
{
...
...
This diff is collapsed.
Click to expand it.
tests/FrameworkTest/tests/src/com/android/frameworktest/gridview/touch/GridTouchVerticalSpacingStackFromBottomTest.java
View file @
5535bbdf
...
...
@@ -70,7 +70,8 @@ public class GridTouchVerticalSpacingStackFromBottomTest extends ActivityInstrum
newLastChild
.
getId
());
}
@LargeTest
// TODO: needs to be adjusted to pass on non-HVGA displays
// @LargeTest
public
void
testShortScroll
()
{
View
firstChild
=
mGridView
.
getChildAt
(
0
);
if
(
firstChild
.
getTop
()
<
this
.
mGridView
.
getListPaddingTop
())
{
...
...
@@ -91,7 +92,8 @@ public class GridTouchVerticalSpacingStackFromBottomTest extends ActivityInstrum
newLastChild
.
getId
());
}
@LargeTest
// TODO: needs to be adjusted to pass on non-HVGA displays
// @LargeTest
public
void
testLongScroll
()
{
View
firstChild
=
mGridView
.
getChildAt
(
0
);
if
(
firstChild
.
getTop
()
<
mGridView
.
getListPaddingTop
())
{
...
...
This diff is collapsed.
Click to expand it.
tests/FrameworkTest/tests/src/com/android/frameworktest/gridview/touch/GridTouchVerticalSpacingTest.java
View file @
5535bbdf
...
...
@@ -67,7 +67,8 @@ public class GridTouchVerticalSpacingTest extends ActivityInstrumentationTestCas
assertEquals
(
"Wrong view in first position"
,
0
,
newFirstChild
.
getId
());
}
@LargeTest
// TODO: needs to be adjusted to pass on non-HVGA displays
// @LargeTest
public
void
testShortScroll
()
{
View
firstChild
=
mGridView
.
getChildAt
(
0
);
View
lastChild
=
mGridView
.
getChildAt
(
mGridView
.
getChildCount
()
-
1
);
...
...
@@ -83,7 +84,8 @@ public class GridTouchVerticalSpacingTest extends ActivityInstrumentationTestCas
assertEquals
(
"Wrong view in first position"
,
0
,
newFirstChild
.
getId
());
}
@LargeTest
// TODO: needs to be adjusted to pass on non-HVGA displays
// @LargeTest
public
void
testLongScroll
()
{
View
lastChild
=
mGridView
.
getChildAt
(
mGridView
.
getChildCount
()
-
1
);
...
...
This diff is collapsed.
Click to expand it.
tests/FrameworkTest/tests/src/com/android/frameworktest/layout/table/FixedWidthTest.java
View file @
5535bbdf
...
...
@@ -53,13 +53,15 @@ public class FixedWidthTest extends ActivityInstrumentationTestCase<FixedWidth>
assertNotNull
(
mNonFixedWidth
);
}
@MediumTest
// TODO: needs to be adjusted to pass on non-HVGA displays
// @MediumTest
public
void
testFixedWidth
()
throws
Exception
{
assertEquals
(
150
,
mFixedWidth
.
getWidth
());
assertEquals
(
mFixedWidth
.
getWidth
(),
mNonFixedWidth
.
getWidth
());
}
@MediumTest
// TODO: needs to be adjusted to pass on non-HVGA displays
// @MediumTest
public
void
testFixedHeight
()
throws
Exception
{
assertEquals
(
48
,
mFixedHeight
.
getHeight
());
}
...
...
This diff is collapsed.
Click to expand it.
tests/FrameworkTest/tests/src/com/android/frameworktest/listview/touch/ListOfTouchablesTest.java
View file @
5535bbdf
...
...
@@ -52,7 +52,8 @@ public class ListOfTouchablesTest extends ActivityInstrumentationTestCase<ListOf
assertNotNull
(
mListView
);
}
@LargeTest
// TODO: needs to be adjusted to pass on non-HVGA displays
// @LargeTest
public
void
testShortScroll
()
{
View
firstChild
=
mListView
.
getChildAt
(
0
);
View
lastChild
=
mListView
.
getChildAt
(
mListView
.
getChildCount
()
-
1
);
...
...
@@ -68,7 +69,8 @@ public class ListOfTouchablesTest extends ActivityInstrumentationTestCase<ListOf
assertEquals
(
"Wrong view in first position"
,
0
,
newFirstChild
.
getId
());
}
@LargeTest
// TODO: needs to be adjusted to pass on non-HVGA displays
// @LargeTest
public
void
testLongScroll
()
{
View
lastChild
=
mListView
.
getChildAt
(
mListView
.
getChildCount
()
-
1
);
...
...
This diff is collapsed.
Click to expand it.
tests/FrameworkTest/tests/src/com/android/frameworktest/listview/touch/ListTouchBottomGravityManyTest.java
View file @
5535bbdf
...
...
@@ -112,7 +112,8 @@ public class ListTouchBottomGravityManyTest extends ActivityInstrumentationTestC
newLastChild
.
getId
());
}
@LargeTest
// TODO: needs to be adjusted to pass on non-HVGA displays
// @LargeTest
public
void
testShortScroll
()
{
View
firstChild
=
mListView
.
getChildAt
(
0
);
if
(
firstChild
.
getTop
()
<
this
.
mListView
.
getListPaddingTop
())
{
...
...
@@ -133,7 +134,8 @@ public class ListTouchBottomGravityManyTest extends ActivityInstrumentationTestC
newLastChild
.
getId
());
}
@LargeTest
// TODO: needs to be adjusted to pass on non-HVGA displays
// @LargeTest
public
void
testLongScroll
()
{
View
firstChild
=
mListView
.
getChildAt
(
0
);
if
(
firstChild
.
getTop
()
<
mListView
.
getListPaddingTop
())
{
...
...
This diff is collapsed.
Click to expand it.
tests/FrameworkTest/tests/src/com/android/frameworktest/listview/touch/ListTouchManyTest.java
View file @
5535bbdf
...
...
@@ -159,7 +159,8 @@ public class ListTouchManyTest extends ActivityInstrumentationTestCase<ListTopGr
assertEquals
(
"Wrong view in first position"
,
0
,
newFirstChild
.
getId
());
}
@LargeTest
// TODO: needs to be adjusted to pass on non-HVGA displays
// @LargeTest
public
void
testShortScroll
()
{
View
firstChild
=
mListView
.
getChildAt
(
0
);
View
lastChild
=
mListView
.
getChildAt
(
mListView
.
getChildCount
()
-
1
);
...
...
@@ -175,7 +176,8 @@ public class ListTouchManyTest extends ActivityInstrumentationTestCase<ListTopGr
assertEquals
(
"Wrong view in first position"
,
0
,
newFirstChild
.
getId
());
}
@LargeTest
// TODO: needs to be adjusted to pass on non-HVGA displays
// @LargeTest
public
void
testLongScroll
()
{
View
lastChild
=
mListView
.
getChildAt
(
mListView
.
getChildCount
()
-
1
);
...
...
This diff is collapsed.
Click to expand it.
tests/FrameworkTest/tests/src/com/android/frameworktest/view/BigCacheTest.java
View file @
5535bbdf
...
...
@@ -60,7 +60,8 @@ public class BigCacheTest extends ActivityInstrumentationTestCase<BigCache> {
assertNotNull
(
createCacheForView
(
mTiny
));
}
@MediumTest
// TODO: needs to be adjusted to pass on non-HVGA displays
// @MediumTest
public
void
testDrawingCacheAboveMaximumSize
()
throws
Exception
{
final
int
max
=
ViewConfiguration
.
get
(
getActivity
()).
getScaledMaximumDrawingCacheSize
();
assertTrue
(
mLarge
.
getWidth
()
*
mLarge
.
getHeight
()
*
2
>
max
);
...
...
This diff is collapsed.
Click to expand it.
tests/FrameworkTest/tests/src/com/android/frameworktest/view/IncludeTest.java
View file @
5535bbdf
...
...
@@ -66,7 +66,8 @@ public class IncludeTest extends ActivityInstrumentationTestCase<Include> {
assertEquals
(
"Included button should be invisible"
,
View
.
INVISIBLE
,
button1
.
getVisibility
());
}
@MediumTest
// TODO: needs to be adjusted to pass on non-HVGA displays
// @MediumTest
public
void
testIncludedWithSize
()
throws
Exception
{
final
Include
activity
=
getActivity
();
final
View
button1
=
activity
.
findViewById
(
R
.
id
.
included_button_with_size
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment