[TIMOB-9710] Android: stringFormatDate test in android/android_string test suite fails
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2012-07-16T15:43:24.000+0000 |
| Affected Version/s | Release 2.1.0 |
| Fix Version/s | n/a |
| Components | Android |
| Labels | anvil, core |
| Reporter | Allen Yeung |
| Assignee | Neeraj Gupta |
| Created | 2012-06-21T15:31:37.000+0000 |
| Updated | 2017-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);
Can not reproduce with 2_1_X branch.
Closing this ticket as the issue cannot be reproduced.