pull/174/head
Alinson S. Xavier 9 years ago
parent 6f10039aba
commit 16dcc0cbc2

@ -116,6 +116,7 @@ public class BaseViewTest extends BaseAndroidTest
int specWidth = makeMeasureSpec(width, View.MeasureSpec.EXACTLY); int specWidth = makeMeasureSpec(width, View.MeasureSpec.EXACTLY);
int specHeight = makeMeasureSpec(height, View.MeasureSpec.EXACTLY); int specHeight = makeMeasureSpec(height, View.MeasureSpec.EXACTLY);
view.setLayoutParams(new ViewGroup.LayoutParams(width, height));
view.measure(specWidth, specHeight); view.measure(specWidth, specHeight);
view.layout(0, 0, view.getMeasuredWidth(), view.getMeasuredHeight()); view.layout(0, 0, view.getMeasuredWidth(), view.getMeasuredHeight());
} }

@ -19,18 +19,17 @@
package org.isoron.uhabits.activities.habits.list.views; package org.isoron.uhabits.activities.habits.list.views;
import android.support.test.runner.AndroidJUnit4; import android.support.test.runner.*;
import android.test.suitebuilder.annotation.*; import android.test.suitebuilder.annotation.*;
import org.isoron.uhabits.models.Checkmark; import org.isoron.uhabits.*;
import org.isoron.uhabits.BaseViewTest; import org.isoron.uhabits.models.*;
import org.isoron.uhabits.utils.ColorUtils; import org.isoron.uhabits.utils.*;
import org.junit.Before; import org.junit.*;
import org.junit.Test; import org.junit.runner.*;
import org.junit.runner.RunWith;
import java.io.IOException; import java.io.*;
import java.util.concurrent.CountDownLatch; import java.util.concurrent.*;
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@MediumTest @MediumTest

Loading…
Cancel
Save