[TIMOB-9670] TiAPI: Anvil: Default value of TiWindow.orientation should not be undefined
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-05-01T22:21:28.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | n/a |
Components | TiAPI |
Labels | anvil, api, linvalid, parity |
Reporter | Max Stepanov |
Assignee | Eric Merriman |
Created | 2012-06-20T15:24:53.000+0000 |
Updated | 2017-05-22T22:14:32.000+0000 |
Description
Test cases:
1. Anvil: start --suite=ui/ui --test=windowOrientation
2. App test:
var w = Ti.UI.createWindow();
Ti.API.info("w.orientation="+w.orientation);
Ti.API.info("should be one of "+[Ti.UI.PORTRAIT, Ti.UI.LANDSCAPE_LEFT]);
Expected result:
[INFO] w.orientation=1 or 4
[INFO] should be one of 1,4
Actual result:
[INFO] w.orientation=undefined
[INFO] should be one of 1,4
Nothing about this bug report indicates this as a Anvil bug versus platform bug. The failure should be verified with a test case that uses require.
Closing ticket as "Won't Fix" as Anvil is no longer supported.