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

Delta Between Two Patch Sets: test_runner.js

Issue 29367181: Issue 4726 - Add tests for the element hiding emulation content script (Closed) Base URL: https://bitbucket.org/fhd/adblockpluscore
Left Patch Set: Run browser tests via our test runner Created Jan. 10, 2017, 9:10 a.m.
Right Patch Set: Wrap and indent QUnit.test invocations consistently Created Jan. 19, 2017, 9:55 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « test/browser/elemHideEmulation.js ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 if (testPath.split(path.sep).includes("browser")) 44 if (testPath.split(path.sep).includes("browser"))
45 { 45 {
46 if (path.extname(testPath) == ".html") 46 if (path.extname(testPath) == ".html")
47 qunitFiles.push(testPath); 47 qunitFiles.push(testPath);
48 } 48 }
49 else if (path.extname(testPath) == ".js") 49 else if (path.extname(testPath) == ".js")
50 nodeunitFiles.push(testPath); 50 nodeunitFiles.push(testPath);
51 } 51 }
52 } 52 }
53 if (process.argv.length > 2) 53 if (process.argv.length > 2)
54 {
54 addTestPaths(process.argv.slice(2), true); 55 addTestPaths(process.argv.slice(2), true);
56 }
55 else 57 else
58 {
56 addTestPaths( 59 addTestPaths(
57 [path.join(__dirname, "test"), path.join(__dirname, "test", "browser")], 60 [path.join(__dirname, "test"), path.join(__dirname, "test", "browser")],
58 true); 61 true
62 );
63 }
59 64
60 if (nodeunitFiles.length) 65 if (nodeunitFiles.length)
61 nodeunit.reporters.default.run(nodeunitFiles); 66 nodeunit.reporters.default.run(nodeunitFiles);
62 qunitFiles.forEach(file => qunit(path.resolve(file))); 67 for (let file of qunitFiles)
68 qunit(file);
LEFTRIGHT

Powered by Google App Engine
This is Rietveld