Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8271142 authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Make ViewScreenshotTestRule the same than on tm-qpr-dev (1/2)

Bug: 261817359
Test: Manual
Change-Id: I99389c1be169f63908d75cf47fa770e55c6b9ae0
parent f5887cba
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -34,7 +34,6 @@ import org.junit.runners.model.Statement
import platform.test.screenshot.DeviceEmulationRule
import platform.test.screenshot.DeviceEmulationRule
import platform.test.screenshot.DeviceEmulationSpec
import platform.test.screenshot.DeviceEmulationSpec
import platform.test.screenshot.MaterialYouColorsRule
import platform.test.screenshot.MaterialYouColorsRule
import platform.test.screenshot.PathConfig
import platform.test.screenshot.ScreenshotTestRule
import platform.test.screenshot.ScreenshotTestRule
import platform.test.screenshot.getEmulatedDevicePathConfig
import platform.test.screenshot.getEmulatedDevicePathConfig
import platform.test.screenshot.matchers.BitmapMatcher
import platform.test.screenshot.matchers.BitmapMatcher
@@ -43,7 +42,6 @@ import platform.test.screenshot.matchers.BitmapMatcher
class ViewScreenshotTestRule(
class ViewScreenshotTestRule(
    emulationSpec: DeviceEmulationSpec,
    emulationSpec: DeviceEmulationSpec,
    private val matcher: BitmapMatcher = UnitTestBitmapMatcher,
    private val matcher: BitmapMatcher = UnitTestBitmapMatcher,
    pathConfig: PathConfig = getEmulatedDevicePathConfig(emulationSpec),
    assetsPathRelativeToBuildRoot: String
    assetsPathRelativeToBuildRoot: String
) : TestRule {
) : TestRule {
    private val colorsRule = MaterialYouColorsRule()
    private val colorsRule = MaterialYouColorsRule()