Bug 425564 colorpicker's "disabled" property has no effect r=Enn a=beltzner

This commit is contained in:
neil@parkwaycc.co.uk 2008-04-08 01:41:52 -07:00
parent c427eda76f
commit 7baf7d2696
2 changed files with 6 additions and 3 deletions

View File

@ -14,7 +14,7 @@
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
<colorpicker id="colorpicker-popup" type="button" color="#FF0000"/>
<colorpicker id="colorpicker-popup" type="button" color="#FF0000" tabindex="1"/>
<script class="testbody" type="application/javascript">
<![CDATA[
@ -28,6 +28,8 @@ function runTests()
{
gCp = document.getElementById("colorpicker-popup");
is(gCp.color, "#FF0000", "popup color is initialized");
is(gCp.tabIndex, 1, "button tabindex is initialized");
is(gCp.disabled, false, "button is not disabled");
goNext();
}

View File

@ -409,7 +409,8 @@
</handlers>
</binding>
<binding id="colorpicker-button" extends="xul:menu">
<binding id="colorpicker-button" display="xul:menu"
extends="chrome://global/content/bindings/general.xml#basecontrol">
<resources>
<stylesheet src="chrome://global/skin/colorpicker.css"/>
</resources>
@ -427,7 +428,7 @@
</xul:panel>
</content>
<implementation implements="nsIAccessibleProvider, nsIDOMXULControlElement">
<implementation implements="nsIAccessibleProvider">
<property name="accessibleType" readonly="true">
<getter>
<![CDATA[