зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1843878 - just wait for focus r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D219239
This commit is contained in:
Родитель
ba3041a7bd
Коммит
0db2cc0e57
|
@ -32,19 +32,17 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=829085
|
|||
<script type="application/javascript">
|
||||
|
||||
function startTest() {
|
||||
SimpleTest.waitForFocus(function() {
|
||||
disableNonTestMouseEvents(true);
|
||||
// Send a click
|
||||
synthesizeMouseExpectEvent($("svg"), 170, 100, { },
|
||||
$("line"), "click",
|
||||
"Testing mouse event on non-scaling-stroke");
|
||||
disableNonTestMouseEvents(false);
|
||||
SimpleTest.finish();
|
||||
});
|
||||
disableNonTestMouseEvents(true);
|
||||
// Send a click
|
||||
synthesizeMouseExpectEvent($("svg"), 170, 100, { },
|
||||
$("line"), "click",
|
||||
"Testing mouse event on non-scaling-stroke");
|
||||
disableNonTestMouseEvents(false);
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
addLoadEvent(startTest);
|
||||
SimpleTest.waitForFocus(startTest);
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
|
|
Загрузка…
Ссылка в новой задаче