(function() {
    var jasmineEnv = jasmine.getEnv();
    var reporter = new jasmine.HtmlReporter();
    jasmineEnv.addReporter(reporter);
    document.addEventListener("DOMContentLoaded", function() {
        var ctx = document.l10nCtx;
        ctx.onReady = function() {
            jasmineEnv.execute();
        };
    });
})();

(function() {
    var jasmineEnv = jasmine.getEnv();
    var reporter = new jasmine.HtmlReporter();
    jasmineEnv.addReporter(reporter);
    document.addEventListener("LocalizationReady", function() {
        jasmineEnv.execute();
    });
})();

update runtests to work with new event dispatcher