gecko/toolkit/themes/pinstripe/tests/test_bug371080.xul

49 lines
1.4 KiB
Plaintext
Raw Normal View History

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
2007-03-23 14:10:05 -07:00
<?xml-stylesheet href="/tests/SimpleTest/test.css" type="text/css"?>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=371080
-->
<window title="Mozilla Bug 371080"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
align="start">
<script type="application/javascript" src="/MochiKit/packed.js"></script>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<body xmlns="http://www.w3.org/1999/xhtml">
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=371080">Mozilla Bug 371080</a>
</body>
<!-- This Mac OS X native button should be 68 pixels wide from
the dark border line on the left to the dark border line on
the right. It should be 21 pixels tall from the dark border
line on the top to the dark border line on the bottom -->
<button class="bigbutton"
label="OK"
width="5"
id="button1"
height="5"/>
<script class="testbody" type="application/javascript">
<![CDATA[
/** Test for Bug 371080 **/
SimpleTest.waitForExplicitFinish();
function checkButtonDimensions() {
is($("button1").boxObject.width, 79, "mac button width");
is($("button1").boxObject.height, 22, "mac button height");
}
2007-05-17 19:24:15 -07:00
addLoadEvent(checkButtonDimensions);
2007-05-17 19:24:15 -07:00
addLoadEvent(SimpleTest.finish);
2007-05-17 19:24:15 -07:00
]]>
</script>
</window>