Bug 1322746 - Add common func addLoadEvent to mochi-to-testcase.py.

MozReview-Commit-ID: 2I7qdlZ6Po6
This commit is contained in:
Jeff Gilbert 2017-08-31 13:39:02 -07:00
parent 532ff52f0b
commit 084999fc2a

View File

@ -50,6 +50,10 @@ function todo(val, text) {
debug(status + text);
}
function addLoadEvent(func) {
window.addEventListener('load', func, false);
}
SimpleTest = {
waitForExplicitFinish: function() {},
finish: function() {},