Bug 1046305 - Wait a frame before checking canvases in getPixel tests. r=vp

This commit is contained in:
Jordan Santell 2014-07-30 15:24:00 -04:00
parent d39fe7ffd8
commit e0bbd250b0

View File

@ -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.")