Titanium JIRA Archive
Alloy (ALOY)

[ALOY-786] Alloy parser for Switch should set the value property on iOS

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-10-10T23:30:20.000+0000
Affected Version/sn/a
Fix Version/sAlloy 1.3.0
ComponentsTitanium SDK, XML
Labelsqe-testadded
ReporterDaniel Sefton
AssigneeTony Lukasavage
Created2013-08-13T16:20:44.000+0000
Updated2013-10-10T23:30:24.000+0000

Description

There is a known issue (TIMOB-9007) with Ti.UI.Switch where it won't render properly if the value property is not set on creation. The Alloy parser should detect when this property is not provided and add it to the creation dictionary.

Comments

  1. Daniel Sefton 2013-08-14

    Hi Paul, It would help us out if you could provide an Alloy test case which reproduces the problem. Thanks!
  2. Paul Mietz Egli 2013-08-15

    To reproduce, create an Alloy view with the following markup:
       <Alloy>
         <Window>
           <Switch/>
         </Window>
       </Alloy>
       
    The switch control will not be displayed. I have sent a pull request on GitHub which fixes this issue: https://github.com/appcelerator/alloy/pull/219/commits
  3. Tony Lukasavage 2013-08-16

    PR: https://github.com/appcelerator/alloy/pull/224 original PR: https://github.com/appcelerator/alloy/pull/219 test app: https://github.com/appcelerator/alloy/tree/master/test/apps/ui/switch Functional test should be confirmed on all platforms that support. Some guidance for these tests:

    iOS

    Make sure that a single switch shows up, that's it.

    Android

    make sure a default switch, a switch with different title(On/Off) properties, and a checkbox appear. These properties are claimed to be supported on Mobileweb and tizen as well.

JSON Source