fix failing test.  The behavior of 0.09765625.toFixed(1) changed from 0.1 to 0 
in swf version 15.  Adjusted test to use toFixed(2) which seems to be stable 
for swfversions 14 and 15


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/ed9102f7
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/ed9102f7
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/ed9102f7

Branch: refs/heads/release4.12.0
Commit: ed9102f725705d932985bbaef52b5b3f0cde2ea0
Parents: 2ae078a
Author: Alex Harui <[email protected]>
Authored: Fri Feb 14 17:02:38 2014 -0800
Committer: Alex Harui <[email protected]>
Committed: Fri Feb 14 17:02:38 2014 -0800

----------------------------------------------------------------------
 .../TextInput/Properties/TextInput_properties_tester.mxml          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/ed9102f7/mustella/tests/mobile/components/TextInput/Properties/TextInput_properties_tester.mxml
----------------------------------------------------------------------
diff --git 
a/mustella/tests/mobile/components/TextInput/Properties/TextInput_properties_tester.mxml
 
b/mustella/tests/mobile/components/TextInput/Properties/TextInput_properties_tester.mxml
index 1b3ccdc..484ce08 100644
--- 
a/mustella/tests/mobile/components/TextInput/Properties/TextInput_properties_tester.mxml
+++ 
b/mustella/tests/mobile/components/TextInput/Properties/TextInput_properties_tester.mxml
@@ -543,7 +543,7 @@
                                            <SetProperty target="tic1.ti1" 
propertyName="text" waitEvent="updateComplete" valueExpression="value = 
FlexGlobals.topLevelApplication.shortString" />
                                        </setup>
                                        <body>
-                                           <AssertMethodValue 
method="value=Number(FlexGlobals.topLevelApplication.tic1.ti1.alpha.toFixed(1))"
 value="0.1" />
+                                           <AssertMethodValue 
method="value=FlexGlobals.topLevelApplication.tic1.ti1.alpha.toFixed(2)" 
valueExpression="value='0.10'" />
                                            <CompareBitmap 
numColorVariances="20" url="../Properties/baselines" target="tic1.ti1">
                                                                                
        <ConditionalValue deviceDensity="160" />
                                                                                
        <ConditionalValue deviceDensity="240" />

Reply via email to