Bug 455227 - Add a |removeEventListener()| to browser-test.js; Av1b; r=gavin.sharp

This commit is contained in:
Serge Gautherie 2008-09-15 14:38:09 +02:00
Родитель 4847a58d1e
Коммит 81f8b2d96e
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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);