зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
50fc5bc9e0
Коммит
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)
|
||||
@Test
|
||||
fun screenshotToBitmap() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче