Bug 1754570 - Remove test capturePixelsAfterGpuProcessCrash. r=intermittent-reviewers,geckoview-reviewers,MasterWayZ,owlish,jnicol

Differential Revision: https://phabricator.services.mozilla.com/D159274
This commit is contained in:
Csoregi Natalia 2022-10-20 18:26:48 +00:00
Родитель 50fc5bc9e0
Коммит b9f1f061b4
1 изменённых файлов: 0 добавлений и 20 удалений

Просмотреть файл

@ -230,26 +230,6 @@ class ScreenshotTest : BaseSessionTest() {
}
}
@WithDisplay(height = SCREEN_HEIGHT, width = SCREEN_WIDTH)
@Test(expected = IllegalStateException::class)
fun capturePixelsAfterGpuProcessCrash() {
// Bug 1754570 - temporarily disable the test
assumeThat(sessionRule.env.isDebugBuild, equalTo(true))
// We need the GPU process for this test
assumeTrue(sessionRule.usingGpuProcess())
sessionRule.display?.let {
// Kill the GPU process then immediately request screen pixels. Requesting the pixels
// *before* killing the process will often result in the same error, but sometimes the
// screenshot request will complete successfully before the crash.
sessionRule.killGpuProcess()
val result = it.capturePixels()
sessionRule.waitForResult(result)
}
}
@WithDisplay(height = SCREEN_HEIGHT, width = SCREEN_WIDTH)
@Test
fun screenshotToBitmap() {