mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Test custom views with transparent background
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 6.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@@ -54,6 +54,13 @@ public class HabitFrequencyViewTest extends ViewTest
|
|||||||
assertRenders(view, "HabitFrequencyView/render.png");
|
assertRenders(view, "HabitFrequencyView/render.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void render_withTransparentBackground() throws Throwable
|
||||||
|
{
|
||||||
|
view.setIsBackgroundTransparent(true);
|
||||||
|
assertRenders(view, "HabitFrequencyView/renderTransparent.png");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void render_withDifferentSize() throws Throwable
|
public void render_withDifferentSize() throws Throwable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -61,6 +61,13 @@ public class HabitHistoryViewTest extends ViewTest
|
|||||||
assertRenders(view, "HabitHistoryView/render.png");
|
assertRenders(view, "HabitHistoryView/render.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void render_withTransparentBackground() throws Throwable
|
||||||
|
{
|
||||||
|
view.setIsBackgroundTransparent(true);
|
||||||
|
assertRenders(view, "HabitHistoryView/renderTransparent.png");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void render_withDifferentSize() throws Throwable
|
public void render_withDifferentSize() throws Throwable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -58,6 +58,13 @@ public class HabitScoreViewTest extends ViewTest
|
|||||||
assertRenders(view, "HabitScoreView/render.png");
|
assertRenders(view, "HabitScoreView/render.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void render_withTransparentBackground() throws Throwable
|
||||||
|
{
|
||||||
|
view.setIsBackgroundTransparent(true);
|
||||||
|
assertRenders(view, "HabitScoreView/renderTransparent.png");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void render_withDifferentSize() throws Throwable
|
public void render_withDifferentSize() throws Throwable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -55,6 +55,13 @@ public class HabitStreakViewTest extends ViewTest
|
|||||||
assertRenders(view, "HabitStreakView/render.png");
|
assertRenders(view, "HabitStreakView/render.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void render_withTransparentBackground() throws Throwable
|
||||||
|
{
|
||||||
|
view.setIsBackgroundTransparent(true);
|
||||||
|
assertRenders(view, "HabitStreakView/renderTransparent.png");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void render_withSmallSize() throws Throwable
|
public void render_withSmallSize() throws Throwable
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user