Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19014] Windows: Inconsistencies between implemented APIs and parity report

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2015-06-16T23:55:32.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sn/a
ComponentsWindows
Labelsqe-4.1.0
ReporterEwan Harris
AssigneeChristopher Williams
Created2015-06-12T23:24:37.000+0000
Updated2017-03-16T21:53:42.000+0000

Description

Description

*I will use this ticket to track any APIs that we come across during testing that the parity report shows as implemented but can not be found in the source code* There appears to be inconsistencies between the parity report and what apis are actually implemented. For example the parity report show Ti.UI.textArea as implemented. However when trying to use the code below it errors with undefined is not a function for Ti.UI.createTextArea
var win = Ti.UI.createWindow({
  backgroundColor: 'green'
});


var textArea = Ti.UI.createTextArea({
  color: '#888',
  font: {fontSize:10, fontWeight:'bold'},
  keyboardType: Ti.UI.KEYBOARD_NUMBER_PAD,
  returnKeyType: Ti.UI.RETURNKEY_GO,
  textAlign: 'left',
  value: 'I am a textarea',
  top: 60,
  width: 200, height : 70
});

win.add(textArea);
win.open();
After a discussion with [~gmathews] we figured out that the stub has been generated for textArea in TitaniumKit, causing the parity report to believe it is implemented but it is not actually implemented yet. This will also lead to issues after release as the documentation will show this as being implemented when it is not. *Below is a list of apis we believe are reported incorrectly* ||API|| | TextArea|

Steps To Reproduce

1. Using the above code build to a windows phone device or emulator

Actual Result

The app will throw an error saying undefined is not a function for Ti.UI.createTextArea

Expected Result

The parity report should reflect what is implemented

Comments

  1. Christopher Williams 2015-06-16

    https://github.com/appcelerator/titanium_mobile_windows/pull/291
  2. Lee Morris 2017-03-16

    Closing ticket as the issue has been fixed.

JSON Source