summaryrefslogtreecommitdiffstats
path: root/testing/talos/talos/tests/tresize/addon/chrome/tresize-test.html
blob: b50a4a882124964a3ce2f90134f159a8a33a1a63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this file,
   - You can obtain one at http://mozilla.org/MPL/2.0/.  -->
<html>
<head>
<script language="javascript" type="text/javascript">

function runTest() {
  dispatchEvent(
    new CustomEvent("tresize@mozilla.org:chrome-run-event",
                    { bubbles: true,
                      detail: { locationSearch: location.search } })
  );
}

</script>
</head>
<body id="body" onload="runTest();">
<div style="text-align:center; margin-left:auto; margin-right:auto; background-color:Silver; width:100px; height:100%;">RESIZE</div>
<iframe src="http://fakedomain1.talos/tests/tresize/tresize-iframe.html" style="position: absolute; top: 0px; width: 25%; height: 25%;"></iframe>
<iframe src="http://fakedomain2.talos/tests/tresize/tresize-iframe.html" style="position: absolute; top: 0px; right: 0px; width: 25%; height: 25%;"></iframe>

</body>
</html>