[TIMOB-8201] Android Titanium.Utils - v8 :Runtime error on running the Application.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-03-22T20:26:54.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | n/a |
Components | Android |
Labels | qe-and031912 |
Reporter | Anshu Mittal |
Assignee | Marshall Culpepper |
Created | 2012-03-22T14:16:54.000+0000 |
Updated | 2017-03-10T19:15:16.000+0000 |
Description
Application throws runtime error on being run.
Steps to reproduce:
1. Run app.
Acceptance.js
(function() {
tpl.at = {};
/**
* Add the titles of the test cases to the list to get them loaded to the table view
*/
tpl.at.createData = function() {
var acceptanceData = [
{title:'TIMOB_3630', hasChild:true, level:"acceptance"},
{title:'TIMOB_3190', hasChild:true, level:"acceptance"}
]
return acceptanceData;
};
/**
* TIMOB_3630 is designed to test the correct functionality of Util
* when creating MD5 hash from blob on iOS.
*/
tpl.at.TIMOB_3630 = function(_window) {
var win = Ti.UI.createWindow({
backgroundColor : 'green'
});
Ti.Utils.md5HexDigest(win.toImage());
return _window;
}
/**
* TIMOB_3190 is designed to test the correct functionality of Util
* when base64 encoding images on iOS.
*/
tpl.at.TIMOB_3190 = function(_window) {
var f = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'KS_nav_ui.png');
var blob = f.read();
var encoded = Ti.Utils.base64encode(blob);
alert(encoded);
return _window;
}
})();
App.js
var tpl = {};
Ti.include('ui.js', 'smoke.js', 'acceptance.js', 'full.js');
var tabs = tpl.ui.createApplicationTabGroup();
tabs.open();
Expected results:
A white screen should be displayed and the app should not crash.
Actual:
Application throws runtime error(Please find the screenshots attached for v8(device-2012-03-22-164623.png) and rhino(3630_rhino.png)).
Attachments
File | Date | Size |
---|---|---|
3630_rhino.png | 2012-03-22T16:14:06.000+0000 | 38809 |
device-2012-03-22-164623.png | 2012-03-22T16:14:06.000+0000 | 37198 |
Closing ticket as duplicate.