Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9670] TiAPI: Anvil: Default value of TiWindow.orientation should not be undefined

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-05-01T22:21:28.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsTiAPI
Labelsanvil, api, linvalid, parity
ReporterMax Stepanov
AssigneeEric Merriman
Created2012-06-20T15:24:53.000+0000
Updated2017-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

Comments

  1. Opie Cyrus 2012-08-06

    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.
  2. Lee Morris 2017-05-01

    Closing ticket as "Won't Fix" as Anvil is no longer supported.

JSON Source