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

Side by Side Diff: test/all.js

Issue 29890593: Noissue - Enable test runner to run on Windows and add documentation (Closed)
Patch Set: Use double quotes Created Sept. 24, 2018, 4:53 p.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 | « package.json ('k') | 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 /* 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-present eyeo GmbH 3 * Copyright (C) 2006-present 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 17 matching lines...) Expand all
28 describe(module.platform, function() 28 describe(module.platform, function()
29 { 29 {
30 this.timeout(0); 30 this.timeout(0);
31 31
32 before(function() 32 before(function()
33 { 33 {
34 return Promise.all([ 34 return Promise.all([
35 module.ensureBrowser(), 35 module.ensureBrowser(),
36 new Promise((resolve, reject) => 36 new Promise((resolve, reject) =>
37 { 37 {
38 exec(`python build.py devenv -t ${module.platform}`, 38 exec(
39 `bash -c "python build.py devenv -t ${module.platform}"`,
39 (error, stdout, stderr) => 40 (error, stdout, stderr) =>
40 { 41 {
41 if (error) 42 if (error)
42 { 43 {
43 console.error(stderr); 44 console.error(stderr);
44 reject(error); 45 reject(error);
45 } 46 }
46 else resolve(stdout); 47 else resolve(stdout);
47 }); 48 }
49 );
48 }) 50 })
49 ]).then(([browserBinary]) => 51 ]).then(([browserBinary]) =>
50 { 52 {
51 this.driver = module.getDriver( 53 this.driver = module.getDriver(
52 browserBinary, 54 browserBinary,
53 path.resolve(`./devenv.${module.platform}`) 55 path.resolve(`./devenv.${module.platform}`)
54 ); 56 );
55 return this.driver.wait(() => 57 return this.driver.wait(() =>
56 this.driver.getAllWindowHandles().then(handles => handles[1]) 58 this.driver.getAllWindowHandles().then(handles => handles[1])
57 ); 59 );
(...skipping 14 matching lines...) Expand all
72 delete require.cache[require.resolve(modulePath)]; 74 delete require.cache[require.resolve(modulePath)];
73 require(modulePath); 75 require(modulePath);
74 } 76 }
75 77
76 after(function() 78 after(function()
77 { 79 {
78 this.driver.quit(); 80 this.driver.quit();
79 }); 81 });
80 }); 82 });
81 } 83 }
OLDNEW
« no previous file with comments | « package.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld