Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: fixes to helper scripts

Andrey Lushnikovf14e105051b8
diff --git a/browser_patches/chromium/mirror.sh b/browser_patches/chromium/mirror.sh
index 467db2d66b..168a8ec1b7 100755
--- a/browser_patches/chromium/mirror.sh
+++ b/browser_patches/chromium/mirror.sh
@@ -33,7 +33,7 @@ mirror_chromium() {
CHROMIUM_URL=""
PLATFORM="$1"
- if [[ -n "${PLATFORM}" ]]; then
+ if [[ -z "${PLATFORM}" ]]; then
CURRENT_HOST_OS="$(uname)"
if [[ "${CURRENT_HOST_OS}" == "Darwin" ]]; then
PLATFORM="--mac"
diff --git a/utils/check_chromium_cdn.js b/utils/check_chromium_cdn.js
index 90287e3f47..c509624152 100755
--- a/utils/check_chromium_cdn.js
+++ b/utils/check_chromium_cdn.js
@@ -82,7 +82,7 @@ async function checkOmahaProxyAvailability() {
* @param {boolean} stopWhenAllAvailable
*/
async function checkRangeAvailability(fromRevision, toRevision, stopWhenAllAvailable) {
- const table = new Table([15, 7, 7, 7, 7]);
+ const table = new Table([15, 7, 7, 7]);
table.drawRow([''].concat(SUPPORTER_PLATFORMS));
const inc = fromRevision < toRevision ? 1 : -1;
for (let revision = fromRevision; revision !== toRevision; revision += inc) {