зеркало из https://github.com/mozilla/pjs.git
Bug 455227 - Add a |removeEventListener()| to browser-test.js; Av1b; r=gavin.sharp
This commit is contained in:
Родитель
4847a58d1e
Коммит
81f8b2d96e
|
@ -5,6 +5,8 @@ if (Cc === undefined) {
|
|||
window.addEventListener("load", testOnLoad, false);
|
||||
|
||||
function testOnLoad() {
|
||||
window.removeEventListener("load", testOnLoad, false);
|
||||
|
||||
// Make sure to launch the test harness for the first opened window only
|
||||
var prefs = Cc["@mozilla.org/preferences-service;1"].
|
||||
getService(Ci.nsIPrefBranch);
|
||||
|
|
Загрузка…
Ссылка в новой задаче