diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /dom/tests/mochitest/dom-level0/test_innerWidthHeight_script.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/tests/mochitest/dom-level0/test_innerWidthHeight_script.html')
-rw-r--r-- | dom/tests/mochitest/dom-level0/test_innerWidthHeight_script.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dom/tests/mochitest/dom-level0/test_innerWidthHeight_script.html b/dom/tests/mochitest/dom-level0/test_innerWidthHeight_script.html new file mode 100644 index 0000000000..eff351dabb --- /dev/null +++ b/dom/tests/mochitest/dom-level0/test_innerWidthHeight_script.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html> +<head> + <title>Bug 602580 - Test getting and setting innerWidth and Height after using setCSSViewport</title> + <script src="/tests/SimpleTest/SimpleTest.js"></script> + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> + <!-- + This acts funny when run in the normal content frame + so instead We load it in a separate window. + --> +</head> +<body onload="startTest()"> + <script class="testbody" type="text/javascript"> + SimpleTest.waitForExplicitFinish(); + var newWin = null; + function runTest() { + newWin = window.open("innerWidthHeight_script.html", '_new', 'width=600,height=400'); + } + + function finish() { + newWin.close(); + SimpleTest.finish(); + } + + function startTest() { + SpecialPowers.pushPrefEnv({"set": [ + ["dom.disable_window_move_resize", false], + ["ui.useOverlayScrollbars", 1], + ["dom.meta-viewport.enabled", true], + ["dom.window_position_size_properties_replaceable.enabled", false], + ]}, runTest); + } + </script> +</body> +</html> |