Skip to content

Commit

Permalink
Fix Ti.UI.Window.extendSafeArea test to use open listener, not focus …
Browse files Browse the repository at this point in the history
…listener
  • Loading branch information
sgtcoolguy committed Dec 18, 2017
1 parent 2d95814 commit f5ae7e5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/Resources/ti.ui.window.addontest.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ describe('Titanium.UI.Window', function () {
win = null;
});

it.ios('#ExtendSafeArea (safeAreaView exists)', function (finish) {
// TO DO: Add more unit tests related to top, bottom, left, right margins of win.safeAreaView.
it.ios('.extendSafeArea exists', function (finish) {
this.timeout(5000);
// TODO: Add more unit tests related to top, bottom, left, right margins of win.safeAreaView.
win = Ti.UI.createWindow({
backgroundColor: 'gray',
extendSafeArea: false
});

win.addEventListener('focus', function () {
win.addEventListener('open', function () {
try {
should(win.safeAreaView).be.a.Object;
finish();
Expand Down

0 comments on commit f5ae7e5

Please sign in to comment.