mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Fix tests
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user