Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9710] Android: stringFormatDate test in android/android_string test suite fails

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-07-16T15:43:24.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsanvil, core
ReporterAllen Yeung
AssigneeNeeraj Gupta
Created2012-06-21T15:31:37.000+0000
Updated2017-03-10T00:00:45.000+0000

Description

Run stringFormatDate in android/android_string test suite in anvil, and you get the following error:
TypeError: Cannot read property 'constructor' of null 

//Code snippet that produces the error
var newDate;
valueOf(testRun, function() {
	newDate = new Date(defaultValTest);
}).shouldNotThrowException();
valueOf(testRun, newDate).shouldNotBeUndefined();
valueOf(testRun, newDate).shouldNotBeNull();
valueOf(testRun, newDate.constructor).shouldBe(Date);

Comments

  1. Ping Wang 2012-07-16

    Can not reproduce with 2_1_X branch.
  2. Lee Morris 2017-03-10

    Closing this ticket as the issue cannot be reproduced.

JSON Source