diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /dom/tests/mochitest/dom-level0/innerWidthHeight_script.html | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/tests/mochitest/dom-level0/innerWidthHeight_script.html')
-rw-r--r-- | dom/tests/mochitest/dom-level0/innerWidthHeight_script.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dom/tests/mochitest/dom-level0/innerWidthHeight_script.html b/dom/tests/mochitest/dom-level0/innerWidthHeight_script.html new file mode 100644 index 000000000..7406086ad --- /dev/null +++ b/dom/tests/mochitest/dom-level0/innerWidthHeight_script.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html> +<head> + <meta name="viewport" content="width=320,height=320" /> + <title>Bug 602580 - Test getting and setting innerWidth and Height after using setCSSViewport</title> + <script class="testbody" type="text/javascript"> + function runSubTest() + { + var oldWidth = window.innerWidth; + var oldHeight = window.innerHeight; + + /* Test that return values are now from viewport */ + window.opener.is(window.innerWidth, 320, "innerWidth is css viewport width"); + window.opener.is(window.innerHeight, 320, "innerHeight is css viewport height"); + + window.innerWidth = 300; + window.opener.is(window.innerWidth, 300, "innerWidth returns value that was set"); + window.innerWidth = oldWidth; + + window.innerHeight = 300; + window.opener.is(window.innerHeight, 300, "innerHeight returns value that was set"); + window.innerHeight = oldHeight; + + window.opener.finish(); + } + </script> +</head> +<body onload="runSubTest()"> +</body> +</html> |