Hi,

Running one of the Japanese tests manually with this code:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; 
                           xmlns:s="library://ns.adobe.com/flex/spark" 
                           xmlns:mx="library://ns.adobe.com/flex/mx" 
initialize="triggerFindConditionRTE()">
        
        <fx:Script>
                <![CDATA[
                        import mx.collections.Sort;
                        import mx.collections.SortField;
                        
                        private function triggerFindConditionRTE():void{
                        var a:Array = new Array();
                        var s:Sort = new Sort();
                        a.push("a");
                        s.compareFunction = cmpFn;
                        var sfArray:Array = new Array();
                        sfArray.push(new SortField("0"));
                        sfArray.push(new SortField("field1"));
                        var o:Object = new Object();
                        o["0"] = undefined;
                        o["field1"] = 2;
                        s.fields = sfArray;
                        s.findItem(a, o, null);
                    }
                        
                        // WTF?
                        private function cmpFn(o1:Object, o2:Object):void{
        
                        }
                ]]>
        </fx:Script>
        
</s:Application>

Not sure why the compare function is blank but given the test is checking for a 
RTE it's probably not an issue.

I get message in the exception being:
検索基準には、'field1' にいたるすべてのソートフィールドが含まれている必要があります。

The test is comparing the error with this
検索基準には、'field1' にいたるすべてのソートフィールドが含まれている必要があります。

Can anyone see any issue here? Looks to me as this test should pass:

        <TestCase testID="JA_RTE_Sort_FindCondition" description="RTE Tests" 
keywords="[Runtime Localization,Sort,FindCondition]" >
              <body>
                <AssertMethodValue method="try { triggerFindConditionRTE(); } 
catch (e:Error) { value = e.message }" value="検索基準には、'field1' 
にいたるすべてのソートフィールドが含まれている必要があります。" />
              </body>
        </TestCase>

Thanks,
Justin

Reply via email to