{ "id": "169081", "key": "TIMOB-25012", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-09-01T05:01:07.000+0000", "created": "2017-07-24T10:43:12.000+0000", "epic": { "id": 169441, "key": "TIMOB-25087", "name": "Mocha test failures", "summary": "Mocha test: Address unit test failures", "color": { "key": "color_4" }, "done": false }, "priority": { "name": "High", "id": "2" }, "labels": [ "failure-reviewed" ], "versions": [ { "id": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-02T22:20:05.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description \r\n\r\nWhen running the mocha suite, the ti.blob - constructed from image test crashes the application,\r\nit crashes on the {{should(blob).be.an.instanceof(Ti.Blob);}} check\r\n\r\nYou can use https://github.com/ewanharris/mocha-test to test this, just paste the code from the test suite it and it _should_ work\r\n\r\nInterestingly, this is what the .instanceof assertion boils down to {{ Object(this.obj) instanceof constructor}} so I think this crash might happen in the should.js lib somewhere\r\n\r\nh5.Steps to reproduce\r\n\r\n# Grab the code from the link in environment\r\n# Add to the test app provided at the git repo above\r\n# Build for any Windows target\r\n\r\nh5.Actual\r\n\r\nApp crashes\r\n\r\nh5.Expected\r\n\r\nApp should not crash", "attachment": [], "flagged": false, "summary": "Windows: Crash in mocha suite when checking instanceof against a blob", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Ti SDK: 7.0.0.v20170722000101\r\nTest: https://github.com/ewanharris/titanium-mobile-mocha-suite/blob/TIMOB-24816/Resources/ti.blob.test.js#L23-L44\r\nWindows 10 Pro 10.0.15063\r\nLumia 550 10.0", "closedSprints": [ { "id": 1058, "state": "closed", "name": "2018 Sprint 16 SDK", "startDate": "2018-07-29T22:26:06.486Z", "endDate": "2018-08-12T22:26:00.000Z", "completeDate": "2018-08-13T17:38:16.757Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "427471", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "So even when I create {{Ti.Blob}} instance from {{new Ti.Blob()}}, {{blob instanceof Ti.Blob}} fails. I think it's something to do in HAL implementation.\r\n\r\n{code}\r\nvar blob = new Ti.Blob();\r\nalert(blob instanceof Ti.Blob);\r\n{code}\r\n\r\nInterestingly this code does not work with iOS too. As we think iOS as reference platform, I would think we can skip this test for now.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'green' });\r\nvar blob = Ti.Filesystem.getFile('app.js').read();\r\nwin.addEventListener('open', function () {\r\n alert((blob instanceof Ti.Blob));\r\n});\r\n\r\nwin.open();\r\n{code}\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-09-01T05:01:07.000+0000", "updated": "2017-09-01T05:01:07.000+0000" }, { "id": "439734", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing old \"Won't fix\" tickets. If you disagree, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-02T22:20:05.000+0000", "updated": "2018-08-02T22:20:05.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }