| Index: chrome/content/index.html |
| =================================================================== |
| --- a/chrome/content/index.html |
| +++ b/chrome/content/index.html |
| @@ -39,17 +39,18 @@ |
| script.setAttribute("src", file); |
| script.setAttribute("type", "text/javascript;version=1.7"); |
| document.documentElement.appendChild(script); |
| } |
| window.addEventListener("unload", function() |
| { |
| if (QUnit.config.current) |
| - QUnit.config.current.testEnvironment.teardown(); |
| + for (let callback of QUnit.config.current.hooks("afterEach").reverse()) |
| + callback(); |
| }, false); |
| </script> |
| </head> |
| <body> |
| <h1 id="qunit-header">Adblock Plus unit tests</h1> |
| <h2 id="qunit-banner"></h2> |
| <div id="qunit-testrunner-toolbar"></div> |
| <h2 id="qunit-userAgent"></h2> |