Skip to content

Commit

Permalink
[TIMOB-25656] Add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Mathews committed Jan 24, 2018
1 parent a53539d commit 0cb48e6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/Resources/ti.ui.view.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -647,4 +647,27 @@ describe('Titanium.UI.View', function () {
});
win.open();
});

// TIMOB-25656: Android specific issue where getOrCreateView() could return null
it.android('getOrCreateView() should always return a View', function (finish) {
win = Ti.UI.createWindow();

var child = Ti.UI.createWindow();
child.addEventListener('open', function (e) {
var imageView = Ti.UI.createImageView();

child.addEventListener('close', function (e) {
try {
imageView.tintColor;
} catch (error) {
finish(error);
}
finish();
});
child.close();
});
child.open();

win.open();
});
});

0 comments on commit 0cb48e6

Please sign in to comment.