-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TIMOB-26300] (7_3_X) iOS: Fix crash when using (deprecated) kroll-th…
…read (#10255) * [TIMOB-26300] Fix crash when using kroll-thread * Add unit-test * Linting * Improve test-case
- Loading branch information
1 parent
d8486be
commit 0e4c581
Showing
3 changed files
with
73 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* Appcelerator Titanium Mobile | ||
* Copyright (c) 2011-Present by Appcelerator, Inc. All Rights Reserved. | ||
* Licensed under the terms of the Apache Public License | ||
* Please see the LICENSE included with this distribution for details. | ||
*/ | ||
/* eslint-env mocha */ | ||
/* global Ti, Titanium */ | ||
/* eslint no-unused-expressions: "off" */ | ||
'use strict'; | ||
|
||
describe('Titanium.UI.TextArea', function () { | ||
var win; | ||
|
||
afterEach(function () { | ||
if (win) { | ||
win.close(); | ||
} | ||
win = null; | ||
}); | ||
|
||
// Tests adding and removing a TextArea's focus. | ||
it('textArea in tabGroup', function (finish) { | ||
var windowA, windowB, tabA, tabB, tabGroup; | ||
|
||
this.timeout(7500); | ||
|
||
windowA = Ti.UI.createWindow(); | ||
windowB = Ti.UI.createWindow(); | ||
|
||
tabA = Ti.UI.createTab({ | ||
window: windowA, | ||
title: 'Tab A' | ||
}); | ||
|
||
tabB = Ti.UI.createTab({ | ||
window: windowB, | ||
title: 'Tab B' | ||
}); | ||
|
||
tabGroup = Titanium.UI.createTabGroup({ | ||
tabs: [ tabA, tabB ] | ||
}); | ||
|
||
windowA.addEventListener('open', function () { | ||
var subwin, typingView, keyboardMessageView, keyboardMessage; | ||
|
||
subwin = Ti.UI.createWindow({ backgroundColor: 'blur' }); | ||
|
||
subwin.addEventListener('open', function () { | ||
finish(); | ||
}); | ||
|
||
typingView = Ti.UI.createView(); | ||
keyboardMessageView = Ti.UI.createView(); | ||
keyboardMessage = Ti.UI.createTextArea(); | ||
|
||
keyboardMessageView.add(keyboardMessage); | ||
typingView.add(keyboardMessageView); | ||
subwin.add(typingView); | ||
|
||
setTimeout(function () { | ||
tabA.open(subwin); | ||
}, 1000); | ||
}); | ||
|
||
tabGroup.open(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters