widget/tests/test_bug413277.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/widget/tests/test_bug413277.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=413277
     1.8 +-->
     1.9 +<head>
    1.10 +  <title>Test for Bug 413277</title>
    1.11 +  <script type="text/javascript"
    1.12 +          src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
    1.13 +  <link rel="stylesheet" type="text/css"
    1.14 +          href="chrome://mochikit/content/tests/SimpleTest/test.css" />
    1.15 +</head>
    1.16 +<body>
    1.17 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=413277">Mozilla Bug 413277</a>
    1.18 +<p id="display"></p>
    1.19 +<div id="content" style="display: none">
    1.20 +  
    1.21 +</div>
    1.22 +<pre id="test">
    1.23 +<script class="testbody" type="application/javascript">
    1.24 +  var atts='width=100, height=100, top=100, screenY=100';
    1.25 +  atts += ', left=100, screenX=100, toolbar=no';
    1.26 +  atts += ', location=no, directories=no, status=no';
    1.27 +  atts += ', menubar=no, scrollbars=no, resizable=no';
    1.28 +  var newWindow = window.open('_blank', 'win_name', atts);
    1.29 +  
    1.30 +  newWindow.resizeBy(1000000, 1000000);
    1.31 +  SimpleTest.is(newWindow.outerWidth, newWindow.screen.availWidth, true);
    1.32 +  SimpleTest.is(newWindow.outerHeight, newWindow.screen.availHeight, true);
    1.33 +  SimpleTest.is(newWindow.screenY, newWindow.screen.availTop, true);
    1.34 +  SimpleTest.is(newWindow.screenX, newWindow.screen.availLeft, true);
    1.35 +  
    1.36 +  newWindow.close();
    1.37 +</script>
    1.38 +</pre>
    1.39 +</body>

mercurial