toolkit/content/tests/chrome/test_chromemargin.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/content/tests/chrome/test_chromemargin.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +   - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.8 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     1.9 +<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
    1.10 +
    1.11 +<window title="Custom chrome margin tests"
    1.12 +  onload="setTimeout(runTest, 0);"
    1.13 +  xmlns:html="http://www.w3.org/1999/xhtml"
    1.14 +  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    1.15 +
    1.16 +  <script type="application/javascript"
    1.17 +          src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
    1.18 +
    1.19 +<script>
    1.20 +
    1.21 +// Tests parsing of the chrome margin attrib on a window.
    1.22 +
    1.23 +SimpleTest.waitForExplicitFinish();
    1.24 +function runTest()
    1.25 +{
    1.26 +  window.open("window_chromemargin.xul", "_blank", "chrome,width=600,height=600");
    1.27 +}
    1.28 +</script>
    1.29 +
    1.30 +<body xmlns="http://www.w3.org/1999/xhtml">
    1.31 +<p id="display">
    1.32 +</p>
    1.33 +<div id="content" style="display: none">
    1.34 +</div>
    1.35 +<pre id="test">
    1.36 +</pre>
    1.37 +</body>
    1.38 +
    1.39 +</window>

mercurial