mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-07 09:38:52 -06:00
Opt-in skips: Update tests
This commit is contained in:
@@ -56,6 +56,7 @@ public class HistoryChartTest extends BaseViewTest
|
||||
today = new Timestamp(DateUtils.getStartOfToday());
|
||||
|
||||
chart = new HistoryChart(targetContext);
|
||||
chart.setSkipEnabled(true);
|
||||
chart.setCheckmarks(habit.getCheckmarks().getAllValues());
|
||||
chart.setColor(PaletteUtils.getAndroidTestColor(habit.getColor()));
|
||||
measureView(chart, dpToPixels(400), dpToPixels(200));
|
||||
|
||||
@@ -52,6 +52,7 @@ public class CheckmarkWidgetTest extends BaseViewTest
|
||||
super.setUp();
|
||||
setTheme(R.style.WidgetTheme);
|
||||
prefs.setWidgetOpacity(255);
|
||||
prefs.setSkipEnabled(true);
|
||||
|
||||
habit = fixtures.createVeryLongHabit();
|
||||
checkmarks = habit.getCheckmarks();
|
||||
|
||||
Reference in New Issue
Block a user