зеркало из https://github.com/mozilla/gecko-dev.git
work around bug 670053 to enable test_bug665540.html
--HG-- extra : transplant_source : i%28%14%00%1F%A9h%11%3F%DD%26%CF%C2e%11%DF%D8BM%26
This commit is contained in:
Родитель
a75f540e26
Коммит
734148d14d
|
@ -82,16 +82,9 @@ _TEST_FILES = test_bug231389.html \
|
|||
|
||||
_CHROME_FILES = \
|
||||
test_bug536567.html \
|
||||
$(NULL)
|
||||
|
||||
ifeq (WINNT,$(OS_ARCH))
|
||||
$(warning test_bug665540.html disabled due to bug 670053)
|
||||
else
|
||||
_CHROME_FILES += \
|
||||
test_bug665540.html \
|
||||
bug665540_window.xul \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
libs:: $(_TEST_FILES)
|
||||
$(INSTALL) $^ $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)
|
||||
|
|
|
@ -24,6 +24,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=665540
|
|||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
var win;
|
||||
var select;
|
||||
var optiona;
|
||||
var eventType = "mouseover";
|
||||
var timeoutID;
|
||||
|
@ -54,7 +55,7 @@ function childFocused() {
|
|||
}
|
||||
|
||||
function openSelect() {
|
||||
var select = win.document.getElementById("select");
|
||||
select = win.document.getElementById("select");
|
||||
synthesizeMouseAtCenter(select, {}, win);
|
||||
// A yield was required on X11 tinderbox machines.
|
||||
// (Wasn't required on other platforms nor on an X11 system with kwin.)
|
||||
|
@ -90,6 +91,13 @@ function eventReceived(event) {
|
|||
}
|
||||
|
||||
function finish() {
|
||||
if (select && navigator.platform.indexOf("Win") >= 0) {
|
||||
todo(false,
|
||||
"Should not have to close select before closing its window");
|
||||
// This avoids mochitest "Unable to restore focus" errors (bug 670053).
|
||||
synthesizeMouseAtCenter(select, {}, win);
|
||||
}
|
||||
|
||||
// bug 670026
|
||||
((navigator.platform.indexOf("Mac") < 0) ? is : todo_is)
|
||||
(win.windowState, win.STATE_FULLSCREEN,
|
||||
|
|
Загрузка…
Ссылка в новой задаче