Skip to content

Commit

Permalink
Bug 1379515 - Propagate testharness functions only if we use testharn…
Browse files Browse the repository at this point in the history
…ess.js. r=birtles

We are going to use SimpleTest.js in the sub window.

MozReview-Commit-ID: HAAMnY7xDNn

--HG--
extra : rebase_source : 3600376a992abf5e1e55baba99bff1a656afdaa6
  • Loading branch information
Hiroyuki Ikezoe committed Oct 30, 2017
1 parent 886e45f commit ddb1e94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dom/animation/test/testcommon.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ if (opener) {
"assert_class_string", "assert_throws",
"assert_unreached", "assert_regexp_match",
"promise_test", "test"]) {
window[funcName] = opener[funcName].bind(opener);
if (opener[funcName]) {
window[funcName] = opener[funcName].bind(opener);
}
}

window.EventWatcher = opener.EventWatcher;
Expand Down

0 comments on commit ddb1e94

Please sign in to comment.