mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
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:
parent
108bfbef2e
commit
8d4c817e24
@ -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)");
|
||||
|
Loading…
Reference in New Issue
Block a user