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

Side by Side Diff: chrome/content/index.html

Issue 29333347: Issue 3495 - Error Running Tests - SyntaxError: missing ] after element list (Closed)
Patch Set: Created Jan. 9, 2016, 12:40 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");
11 11
12 function getTestFiles() 12 function getTestFiles()
13 { 13 {
14 function require(module) 14 function require(module)
15 { 15 {
16 let result = {}; 16 let result = {};
17 result.wrappedJSObject = result; 17 result.wrappedJSObject = result;
18 Services.obs.notifyObservers(result, "adblockplustests-require", modul e); 18 Services.obs.notifyObservers(result, "adblockplustests-require", modul e);
19 return result.exports; 19 return result.exports;
20 } 20 }
21 21
22 let result; 22 let result;
23 if ("test" in QUnit.urlParams) 23 if ("test" in QUnit.urlParams)
24 result = ["tests/" + QUnit.urlParams.test + ".js"]; 24 result = ["tests/" + QUnit.urlParams.test + ".js"];
25 else 25 else
26 { 26 {
27 let {getTests} = require("main"); 27 let {getTests} = require("main");
28 result = ["tests/" + test + ".js" for (test of getTests())]; 28 result = getTests().map(test => "tests/" + test + ".js");
29 } 29 }
30 30
31 result.sort(); 31 result.sort();
32 return result; 32 return result;
33 } 33 }
34 34
35 let files = getTestFiles(); 35 let files = getTestFiles();
36 for (let file of files) 36 for (let file of files)
37 { 37 {
38 let script = document.createElement("script"); 38 let script = document.createElement("script");
(...skipping 11 matching lines...) Expand all
50 </script> 50 </script>
51 </head> 51 </head>
52 <body> 52 <body>
53 <h1 id="qunit-header">Adblock Plus unit tests</h1> 53 <h1 id="qunit-header">Adblock Plus unit tests</h1>
54 <h2 id="qunit-banner"></h2> 54 <h2 id="qunit-banner"></h2>
55 <div id="qunit-testrunner-toolbar"></div> 55 <div id="qunit-testrunner-toolbar"></div>
56 <h2 id="qunit-userAgent"></h2> 56 <h2 id="qunit-userAgent"></h2>
57 <ol id="qunit-tests"></ol> 57 <ol id="qunit-tests"></ol>
58 </body> 58 </body>
59 </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