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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="stylesheet" href="qunit.css"/> 4 <link rel="stylesheet" href="qunit.css"/>
5 <script src="jquery-1.7.1.min.js"></script> 5 <script src="jquery-1.7.1.min.js"></script>
6 <script src="qunit.js"></script> 6 <script src="qunit.js"></script>
7 <script src="common.js" type="text/javascript;version=1.7"></script> 7 <script src="common.js" type="text/javascript;version=1.7"></script>
8 <script src="httpd.js" type="text/javascript;version=1.7"></script> 8 <script src="httpd.js" type="text/javascript;version=1.7"></script>
9 <script type="text/javascript;version=1.7"> 9 <script type="text/javascript;version=1.7">
10 Cu.import("resource://gre/modules/Services.jsm"); 10 Cu.import("resource://gre/modules/Services.jsm");
(...skipping 26 matching lines...) Expand all
37 { 37 {
38 let script = document.createElement("script"); 38 let script = document.createElement("script");
39 script.setAttribute("src", file); 39 script.setAttribute("src", file);
40 script.setAttribute("type", "text/javascript;version=1.7"); 40 script.setAttribute("type", "text/javascript;version=1.7");
41 document.documentElement.appendChild(script); 41 document.documentElement.appendChild(script);
42 } 42 }
43 43
44 window.addEventListener("unload", function() 44 window.addEventListener("unload", function()
45 { 45 {
46 if (QUnit.config.current) 46 if (QUnit.config.current)
47 QUnit.config.current.testEnvironment.teardown(); 47 for (let callback of QUnit.config.current.hooks("afterEach").reverse() )
48 callback();
48 }, false); 49 }, false);
49 </script> 50 </script>
50 </head> 51 </head>
51 <body> 52 <body>
52 <h1 id="qunit-header">Adblock Plus unit tests</h1> 53 <h1 id="qunit-header">Adblock Plus unit tests</h1>
53 <h2 id="qunit-banner"></h2> 54 <h2 id="qunit-banner"></h2>
54 <div id="qunit-testrunner-toolbar"></div> 55 <div id="qunit-testrunner-toolbar"></div>
55 <h2 id="qunit-userAgent"></h2> 56 <h2 id="qunit-userAgent"></h2>
56 <ol id="qunit-tests"></ol> 57 <ol id="qunit-tests"></ol>
57 </body> 58 </body>
58 </html> 59 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld