Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/index.html

Issue 29324564: Issue 2953 - [unit tests] Cleanup on unload is broken (Closed)
Patch Set: Created Aug. 25, 2015, 11:35 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld