Bug 1160217 - Wait for resize to complete in browser_responsiveuiaddcustompreset.js before sampling inner dimensions of content. r=jryans.

--HG--
extra : rebase_source : 4b4428a2cbd7b60fbc0c0fdffb34cadf0e8d7fb0
This commit is contained in:
Mike Conley 2015-04-30 13:35:14 -04:00
parent 108bfbef2e
commit 8d4c817e24

View File

@ -119,7 +119,9 @@ function test() {
info(customPresetIndex);
ok(customPresetIndex >= 0, "is the previously added preset (idx = " + customPresetIndex + ") in the list of items");
let resizePromise = instance._test_notifyOnResize();
instance.menulist.selectedIndex = customPresetIndex;
yield resizePromise;
is(content.innerWidth, 456, "add preset, and selected in the list, dimension valid (width)");
is(content.innerHeight, 123, "add preset, and selected in the list, dimension valid (height)");