mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 1046305 - Wait a frame before checking canvases in getPixel tests. r=vp
This commit is contained in:
parent
d39fe7ffd8
commit
e0bbd250b0
@ -11,6 +11,9 @@ function ifWebGLSupported() {
|
||||
|
||||
yield getPrograms(front, 2);
|
||||
|
||||
// Wait a frame to ensure rendering
|
||||
yield front.waitForFrame();
|
||||
|
||||
let pixel = yield front.getPixel({ selector: "#canvas1", position: { x: 0, y: 0 }});
|
||||
is(pixel.r, 255, "correct `r` value for first canvas.")
|
||||
is(pixel.g, 255, "correct `g` value for first canvas.")
|
||||
|
Loading…
Reference in New Issue
Block a user