Found some time to look into it now that you put some boundaries around
the possibilities.  It turns out that the change you made:

        if ("softKeyboardRect" in FlexGlobals.topLevelApplication)

isn't right because the application's softkeyboard rect is an mx_internal
variable and "in" only tests public variables.  Right now,
SkinnablePopUpContainers are not resizing when the keyboard rect shows up.
 AFAIK, you can't use a Qname with "in" so you might have to change to the
classic try/catch.


I did not know that Application's softkeyboardrect is mx_internal so
there's no way I would have caught that in the code review.  I guess you
have the option of making Application's softkeyboardrect public as well
and fix up the places in mustella that assume it is mx_internal.

Mustella was correct again, but you are right that it is hard to debug
these tests.  Did you ever get the debugger to work on a mustella test?  I
used FDB, set a breakpoint on AssertMethodValue.as:doStep and noticed that
the callout had not resized, then put a breakpoint on the function you
changed, stepped through and saw that the "in" didn't work.

HTH,
-Alex

On 9/7/13 8:03 PM, "Justin Mclean" <jus...@classsoftware.com> wrote:

>Hi,
>
>Was finally able to get the mobile tests to run the mobile tests and can
>repeat the two failures. I had to revert to 11.1 and AIR 3.1 - are we
>sure that these test have been tested on laters versions of air?
>
>I can't see why those two tests are failing but it's likely to do with
>that that they are using a FakeSoftKeyboard to see if a callout moves out
>of the way when the soft keyboard is triggered. The emulator doesn't
>support a soft keyboard so this looks like a bit of hack in order to test
>that functionality. FakeSoftKeyboard sets _softKeyboardRect on
>root.document, I'm not sure if that enough for "softKeyboardRect" to show
>up where required. The test step fails when chekcing teh callout.height +
>callout.y < softKeyboardRect.top.
>
>Thanks,
>Justin
>

Reply via email to