michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: function runTests() { michael@0: yield setLinks("0,1,2,3,4,5,6,7,8"); michael@0: setPinnedLinks(""); michael@0: michael@0: yield addNewTabPageTab(); michael@0: checkGrid("0,1,2,3,4,5,6,7,8"); michael@0: michael@0: let receivedError = false; michael@0: let block = getContentDocument().querySelector(".newtab-control-block"); michael@0: michael@0: function onError() { michael@0: receivedError = true; michael@0: } michael@0: michael@0: let cw = getContentWindow(); michael@0: cw.addEventListener("error", onError); michael@0: michael@0: for (let i = 0; i < 3; i++) michael@0: EventUtils.synthesizeMouseAtCenter(block, {}, cw); michael@0: michael@0: yield whenPagesUpdated(); michael@0: ok(!receivedError, "we got here without any errors"); michael@0: cw.removeEventListener("error", onError); michael@0: }