mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b544277 patch for window_focus.xul
This commit is contained in:
parent
53ce892306
commit
d57ebf49ba
@ -154,13 +154,18 @@ function expectFocusShift(callback, expectedWindow, expectedElement, focusChange
|
|||||||
if (testid == "mouse on html label with content inside")
|
if (testid == "mouse on html label with content inside")
|
||||||
expectedEvents += " commandupdate: cu";
|
expectedEvents += " commandupdate: cu";
|
||||||
|
|
||||||
if (expectedElement && expectedElement.id != "t" + kChildDocumentRootIndex &&
|
if (expectedElement &&
|
||||||
(!gNewExpectedWindow || gNewExpectedWindow.document.documentElement != expectedElement)) {
|
(!gNewExpectedWindow || gNewExpectedWindow.document.documentElement != expectedElement)) {
|
||||||
if (expectedEvents)
|
if (!gNewExpectedWindow) {
|
||||||
expectedEvents += " ";
|
if (expectedEvents)
|
||||||
if (!gNewExpectedWindow)
|
expectedEvents += " ";
|
||||||
expectedEvents += "commandupdate: cu ";
|
expectedEvents += "commandupdate: cu";
|
||||||
expectedEvents += "focus: " + expectedElement.id;
|
}
|
||||||
|
if (expectedElement.id != "t" + kChildDocumentRootIndex) {
|
||||||
|
if (expectedEvents)
|
||||||
|
expectedEvents += " ";
|
||||||
|
expectedEvents += "focus: " + expectedElement.id;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (expectedWindow && gLastFocusWindow != expectedWindow &&
|
else if (expectedWindow && gLastFocusWindow != expectedWindow &&
|
||||||
!expectedElement) {
|
!expectedElement) {
|
||||||
|
Loading…
Reference in New Issue
Block a user