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
parent 50fc5bc9e0
commit b9f1f061b4

View File

@ -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) @WithDisplay(height = SCREEN_HEIGHT, width = SCREEN_WIDTH)
@Test @Test
fun screenshotToBitmap() { fun screenshotToBitmap() {