Macadamian/titanium_mobile — pull request #92 by alexandergalstyan (2012-07-03 11:38:47+00:00)
Title: TIMOB-9548: BlackBerry: Implement API elements needed for KitchenSink

Reviewers: DavidL, Harut

ChangeLog:
- Implemented info, log, error, warn, debug, methods from Ti.API namespace

Test Cases:
- Run tibbtest.
- Use the following app.js snippet to test Ti.API functionality:

////////////////////////////////////////
:app.js
//
// create root window
//
var win1 = Titanium.UI.createWindow({
backgroundColor:'#F00'
});

var label1 = Ti.UI.createLabel({
textAlign : 'center',
text:'Hello, world!',
color:'green',
top: 200
});

label1.text=new Date();

win1.add(label1);

var strBoy = new String('boy');
var strGirl = new String('girl');

Ti.API.log('debug', String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.log('warn', String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.log('undefined', String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.log(String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.debug(String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.info(String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.error(String.format('%s + %s = LOVE', strBoy, strGirl));
Ti.API.warn(String.format('%s + %s = LOVE', strBoy, strGirl));

// open window
win1.open();