widget/tests/test_bug413277.html
author Brindusan Cristian <cbrindusan@mozilla.com>
Tue, 05 Mar 2019 22:42:15 +0200
changeset 520316 be4b780a7783cdf7d3ead37c98917dc0d2e94a1d
parent 517274 0e0638c8ef27dea641754aae390213e829eb71f3
child 528459 0d9b9b96f5475adbed73922da696aeff7cbbaed3
permissions -rw-r--r--
Backed out 5 changesets (bug 1508976, bug 1522581) for android geckoview bustages at /usr/bin/python2.7. CLOSED TREE Backed out changeset 7a6be593b0be (bug 1522581) Backed out changeset c47b37ac1775 (bug 1522581) Backed out changeset 91c31d2a7706 (bug 1508976) Backed out changeset da57df805c56 (bug 1508976) Backed out changeset 4e5d97c93515 (bug 1508976)

<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=413277
-->
<head>
  <title>Test for Bug 413277</title>
  <script type="text/javascript"
          src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css"
          href="chrome://mochikit/content/tests/SimpleTest/test.css" />
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=413277">Mozilla Bug 413277</a>
<p id="display"></p>
<div id="content" style="display: none">
  
</div>
<pre id="test">
<script class="testbody" type="application/javascript">
  var atts = "width=100, height=100, top=100, screenY=100";
  atts += ", left=100, screenX=100, toolbar=no";
  atts += ", location=no, directories=no, status=no";
  atts += ", menubar=no, scrollbars=no, resizable=no";
  var newWindow = window.open("_blank", "win_name", atts);
  
  newWindow.resizeBy(1000000, 1000000);
  SimpleTest.is(newWindow.outerWidth, newWindow.screen.availWidth, true);
  SimpleTest.is(newWindow.outerHeight, newWindow.screen.availHeight, true);
  SimpleTest.is(newWindow.screenY, newWindow.screen.availTop, true);
  SimpleTest.is(newWindow.screenX, newWindow.screen.availLeft, true);
  
  newWindow.close();
</script>
</pre>
</body>