mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
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:
parent
50fc5bc9e0
commit
b9f1f061b4
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user