зеркало из https://github.com/mozilla/gecko-dev.git
Bug 648137 - Intermittent timeout in browser/base/content/test/tabview/browser_tabview_bug618816.js | application timed out after 330 seconds with no output [f=raymond, r=ian]
This commit is contained in:
Родитель
998ac342ff
Коммит
9b08dae850
|
@ -3,24 +3,11 @@
|
||||||
|
|
||||||
function test() {
|
function test() {
|
||||||
let cw;
|
let cw;
|
||||||
|
let win;
|
||||||
let createGroupItem = function () {
|
|
||||||
let bounds = new cw.Rect(20, 20, 400, 200);
|
|
||||||
let groupItem = new cw.GroupItem([], {bounds: bounds, immediately: true});
|
|
||||||
|
|
||||||
let groupItemId = groupItem.id;
|
|
||||||
registerCleanupFunction(function() {
|
|
||||||
let groupItem = cw.GroupItems.groupItem(groupItemId);
|
|
||||||
if (groupItem)
|
|
||||||
groupItem.close();
|
|
||||||
});
|
|
||||||
|
|
||||||
return groupItem;
|
|
||||||
}
|
|
||||||
|
|
||||||
let testFocusTitle = function () {
|
let testFocusTitle = function () {
|
||||||
let title = 'title';
|
let title = 'title';
|
||||||
let groupItem = createGroupItem();
|
let groupItem = cw.GroupItems.groupItems[0];
|
||||||
groupItem.setTitle(title);
|
groupItem.setTitle(title);
|
||||||
|
|
||||||
let target = groupItem.$titleShield[0];
|
let target = groupItem.$titleShield[0];
|
||||||
|
@ -34,14 +21,21 @@ function test() {
|
||||||
is(input.selectionStart, title.length, 'caret is at the rightmost position and no text is selected');
|
is(input.selectionStart, title.length, 'caret is at the rightmost position and no text is selected');
|
||||||
is(input.selectionEnd, title.length, 'caret is at the rightmost position and no text is selected');
|
is(input.selectionEnd, title.length, 'caret is at the rightmost position and no text is selected');
|
||||||
|
|
||||||
groupItem.close();
|
win.close();
|
||||||
hideTabView(finish);
|
finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
waitForExplicitFinish();
|
waitForExplicitFinish();
|
||||||
|
|
||||||
showTabView(function () {
|
newWindowWithTabView(function (tvwin) {
|
||||||
cw = TabView.getContentWindow();
|
win = tvwin;
|
||||||
testFocusTitle();
|
|
||||||
|
registerCleanupFunction(function () {
|
||||||
|
if (!win.closed)
|
||||||
|
win.close();
|
||||||
|
});
|
||||||
|
|
||||||
|
cw = win.TabView.getContentWindow();
|
||||||
|
SimpleTest.waitForFocus(testFocusTitle, cw);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче