-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from AAkira/v1.4.2
V1.4.2
- Loading branch information
Showing
9 changed files
with
93 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
machine: | ||
timezone: Asia/Tokyo | ||
java: | ||
version: openjdk7 | ||
environment: | ||
JAVA_OPTS: "-Xms256m -Xmx1024m -XX:MaxPermSize=512m" | ||
ADB_INSTALL_TIMEOUT: 8 | ||
|
||
dependencies: | ||
cache_directories: | ||
- ~/.android | ||
- /usr/local/android-sdk-linux | ||
|
||
test: | ||
pre: | ||
- emulator -avd circleci-android21 -no-skin -no-audio -no-window: | ||
background: true | ||
parallel: true | ||
- circle-android wait-for-boot | ||
override: | ||
- ./gradlew connectedAndroidTest -PdisablePreDex | ||
post: | ||
- cp -R ./library/build/reports/androidTests/connected/* $CIRCLE_ARTIFACTS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...ary/src/androidTest/java/com/github/aakira/expandablelayout/ExpandableSavedStateTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.github.aakira.expandablelayout; | ||
|
||
import android.os.Parcel; | ||
import android.os.Parcelable; | ||
import android.support.test.runner.AndroidJUnit4; | ||
import android.view.AbsSavedState; | ||
import android.view.View; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import static org.hamcrest.CoreMatchers.is; | ||
import static org.hamcrest.MatcherAssert.assertThat; | ||
|
||
@RunWith(AndroidJUnit4.class) | ||
public class ExpandableSavedStateTest { | ||
|
||
@Test | ||
public void testWriteToParcel() { | ||
final Parcelable parcelable = new View.BaseSavedState(AbsSavedState.EMPTY_STATE); | ||
final ExpandableSavedState ss = new ExpandableSavedState(parcelable); | ||
ss.setSize(1000); | ||
ss.setWeight(0.5f); | ||
|
||
final Parcel parcel = Parcel.obtain(); | ||
ss.writeToParcel(parcel, 0); | ||
parcel.setDataPosition(0); | ||
|
||
final ExpandableSavedState target = ExpandableSavedState.CREATOR.createFromParcel(parcel); | ||
assertThat(target.getSize(), is(1000)); | ||
assertThat(target.getWeight(), is(0.5f)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters