Bug 1561227 Part 8: Update expectations for existing tests. r=botond

The change to await snapshotWindow is something that should have been
done in Bug 1573254.

Differential Revision: https://phabricator.services.mozilla.com/D47510

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Brad Werth 2019-10-25 19:33:55 +00:00
Родитель e77a903256
Коммит 3218752020
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -87,7 +87,7 @@ addRDMTask(TEST_URL, async function({ ui, manager }) {
// Get to the initial size and snapshot the window.
await setViewportSize(ui, manager, 300, 600);
const initialSnapshot = snapshotWindow(browser.contentWindow);
const initialSnapshot = await snapshotWindow(browser.contentWindow);
// Move to the rotated size.
await setViewportSize(ui, manager, 600, 300);
@ -99,7 +99,7 @@ addRDMTask(TEST_URL, async function({ ui, manager }) {
// Go back to the initial size and take another snapshot.
await setViewportSize(ui, manager, 300, 600);
const finalSnapshot = snapshotWindow(browser.contentWindow);
const finalSnapshot = await snapshotWindow(browser.contentWindow);
const result = compareSnapshots(initialSnapshot, finalSnapshot, true);
is(result[2], result[1], "Window snapshots should match.");