Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Adobe Flex SDK 3.0 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Create a mustella test with the following code (use any dataProvider):
<TestCase testID="flexNativeMenu_mainMenuItemDisabledToEnabled" description="Set a main menu item to be disabled for FlexNativeMenu" keywords="[FlexNativeMenu, dataProvider, XML]">
<setup>
<ResetComponent target="fnm" className="mx.controls.FlexNativeMenu" />
<SetProperty target="fnm" propertyName="showRoot" value="false" />
<SetProperty target="fnm" propertyName="labelField" value="@label" />
<SetProperty target="fnm" propertyName="dataProvider" valueExpression="value=application.nativeMenuDP" waitTarget="fnm"
waitEvent="updateComplete" />
<RunCode code="application.fnm.dataDescriptor.setEnabled(application.nativeMenuDP.item[0], false)" waitTarget="fnm"
waitEvent="updateComplete" />
</setup>
<body>
<RunCode code="application.fnm.dataDescriptor.setEnabled(application.nativeMenuDP.item[0], true)" waitTarget="fnm"
waitEvent="updateComplete" />
<AssertMethodValue target="" method="value=application.fnm.nativeMenu.getItemAt(0).enabled" value="true" />
</body>
</TestCase>
Actual Results: updateComplete events don't get sent when data is changed.
Expected Results: updateComplete events do get sent when a dataProvider change is made
Workaround (if any):
Set updateCompletePendingFlag=false after Resetting the component.