Another attempt to fix an intermittent Mac-only test failure (bug 895426); r=me

This commit is contained in:
Panos Astithas 2013-07-23 09:47:47 +03:00
parent 0ae70a541b
commit 4cce6549cc
3 changed files with 6 additions and 5 deletions

View File

@ -68,7 +68,7 @@ function testBreakOnAll()
gThreadClient.resume(function() {
gInput.focus();
EventUtils.synthesizeKey("e", {}, content);
EventUtils.synthesizeKey("e", { shiftKey: 1 }, content);
});
});
});
@ -95,7 +95,7 @@ function testBreakOnDisabled()
}, false);
gInput.focus();
EventUtils.synthesizeKey("e", {}, content);
EventUtils.synthesizeKey("e", { shiftKey: 1 }, content);
});
}
@ -118,7 +118,7 @@ function testBreakOnNone()
}, false);
gInput.focus();
EventUtils.synthesizeKey("g", {}, content);
EventUtils.synthesizeKey("g", { shiftKey: 1 }, content);
});
}

View File

@ -31,7 +31,7 @@ function testEventListeners()
gClient.addOneTimeListener("paused", function(aEvent, aPacket) {
is(aPacket.why.type, "debuggerStatement", "debugger statement was hit.");
gThreadClient.eventListeners(function(aPacket) {
is(aPacket.listeners.length, 4, "Found all event listeners.");
is(aPacket.listeners.length, 3, "Found all event listeners.");
let types = [];
for (let l of aPacket.listeners) {
let node = l.node;

View File

@ -6,7 +6,8 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<script type="text/javascript">
window.addEventListener("load", function() {
window.addEventListener("load", function onload() {
window.removeEventListener("load", onload);
function initialSetup(event) {
debugger;
var button = document.querySelector("button");