FLEX-25045 added mustella test for issue
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/15e2b611 Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/15e2b611 Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/15e2b611 Branch: refs/heads/develop Commit: 15e2b6112bf374dab3dc8f2085b6dd0f41a569fa Parents: a3f7379 Author: chrsmrtn <[email protected]> Authored: Fri Dec 12 14:23:46 2014 -0700 Committer: chrsmrtn <[email protected]> Committed: Fri Dec 12 14:29:36 2014 -0700 ---------------------------------------------------------------------- .../Methods/ResourceManager_Methods_getString.mxml | 13 +++++++++++++ 1 file changed, 13 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/15e2b611/mustella/tests/resources/ResourceManager/Methods/ResourceManager_Methods_getString.mxml ---------------------------------------------------------------------- diff --git a/mustella/tests/resources/ResourceManager/Methods/ResourceManager_Methods_getString.mxml b/mustella/tests/resources/ResourceManager/Methods/ResourceManager_Methods_getString.mxml index ce97954..43b74dd 100644 --- a/mustella/tests/resources/ResourceManager/Methods/ResourceManager_Methods_getString.mxml +++ b/mustella/tests/resources/ResourceManager/Methods/ResourceManager_Methods_getString.mxml @@ -65,6 +65,19 @@ <Pause timeout="1"/> </body> </TestCase> + + <TestCase frequency="all" testID="ResourceManager_getString_NO_SUCH_KEY_withLocale_FLEX25045" description="Tests that the getString() method of ResourceManager returns null when accessing a non-existent resource but a valid locale reference" keywords="[resources,ResourceManager,getString]"> + <setup> + <RunCode code="application.setup()"/> + <RunCode code="application.doAddResourceBundle('fr_FR', 'bundle1')" /> + + <RunCode code="ResourceManager.getInstance().localeChain = ['fr_FR']" /> + </setup> + <body> + <AssertMethodValue method="value=testGetString('NO_SUCH_KEY', null, null, 'fr_FR')" value="true"/> + <Pause timeout="1"/> + </body> + </TestCase> <TestCase frequency="all" testID="ResourceManager_getString_STRING" description="Tests the getString() method of ResourceManager for a resource value which is a typical String" keywords="[resources,ResourceManager,getString]"> <setup>
