diff options
Diffstat (limited to 'gfx/layers/apz/test/mochitest/helper_test_select_popup_position_zoomed.html')
-rw-r--r-- | gfx/layers/apz/test/mochitest/helper_test_select_popup_position_zoomed.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gfx/layers/apz/test/mochitest/helper_test_select_popup_position_zoomed.html b/gfx/layers/apz/test/mochitest/helper_test_select_popup_position_zoomed.html new file mode 100644 index 0000000000..2ec079369e --- /dev/null +++ b/gfx/layers/apz/test/mochitest/helper_test_select_popup_position_zoomed.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<script src="/tests/SimpleTest/SimpleTest.js"></script> +<script src='/tests/SimpleTest/paint_listener.js'></script> +<script src='apz_test_utils.js'></script> +<style> +html, body { + /* To calculate the popup window position easily. */ + margin: 0; + padding: 0; +} +iframe { + width: 300px; + height: 300px; + /* To calculate the popup window position easily. */ + border: none; +} +</style> +<iframe></iframe> +<script> + // Call setResolutionAndScaleTo here to avoid bug 1691358. + SpecialPowers.getDOMWindowUtils(window).setResolutionAndScaleTo(2.0); + // Silence SimpleTest warning about missing assertions by having it wait + // indefinitely. + SimpleTest.waitForExplicitFinish(); +</script> |