[TIMOB-12932] BlackBerry: Window.title
GitHub Issue | n/a |
---|---|
Type | Sub-task |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-03-06T08:26:11.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.1.0, 2013 Sprint 05 BB, 2013 Sprint 05 |
Components | BlackBerry |
Labels | n/a |
Reporter | Josh Roesslein |
Assignee | Josh Roesslein |
Created | 2013-03-02T06:46:47.000+0000 |
Updated | 2017-03-09T00:48:46.000+0000 |
Description
Support setting a title on a window (both for tabs and standalone windows).
Acceptance Test
Standalone Window
var win = Ti.UI.createWindow({
title: 'A lonely window',
backgroundColor: 'blue'
});
win.open();
1. Verify a window opens (blue background).
2. There should be a title at the top.
Tab window
function createTab(color, title) {
var win = Ti.UI.createWindow({
title: title,
backgroundColor: color
});
return Ti.UI.createTab({
title: color,
window: win
});
}
var tabGroup = Ti.UI.createTabGroup();
tabGroup.addTab(createTab('blue', 'You take the blue pill.'));
tabGroup.addTab(createTab('red', 'You take the red pill.'));
tabGroup.open();
1. Verify the tab group opens with two tabs.
2. Verify each tab has a title (bottom) for each color.
3. Try selecting both tabs and verify title for window is displayed on top.
Closing ticket as fixed.