Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: use existing is_linux function (#16509)
Yury Semikhatskyd9e8e1e92de8
diff --git a/browser_patches/webkit/build.sh b/browser_patches/webkit/build.shindex a0f105ced7..209c86d832 100755--- a/browser_patches/webkit/build.sh+++ b/browser_patches/webkit/build.sh@@ -7,19 +7,6 @@ cd "$(dirname "$0")"SCRIPT_FOLDER="$(pwd -P)"source "${SCRIPT_FOLDER}/../utils.sh"-is_ubuntu_18_04() {- local id version_id-- if [[ -f "/etc/os-release" ]]; then- id=$(cat /etc/os-release | sed -n -r "s|^ID=(.*)$|\1|p")- version_id=$(cat /etc/os-release | sed -n -r "s|^VERSION_ID=\"(.*)\"$|\1|p")-- [[ "$id" == "ubuntu" && "$version_id" == "18.04" ]]- else- return 1- fi-}-build_gtk() {if [[ ! -d "./WebKitBuild/GTK/DependenciesGTK" ]]; thenyes | WEBKIT_JHBUILD=1 \@@ -32,7 +19,7 @@ build_gtk() {--cmakeargs=-DENABLE_INTROSPECTION=OFF--cmakeargs=-DUSE_GSTREAMER_WEBRTC=FALSE)- if is_ubuntu_18_04; then+ if is_linux ubuntu 18.04; thenCMAKE_ARGS+=("--cmakeargs=-DUSE_SYSTEM_MALLOC=ON")fiif [[ -n "${EXPORT_COMPILE_COMMANDS}" ]]; then@@ -58,7 +45,7 @@ build_wpe() {--cmakeargs=-DENABLE_WEBXR=OFF--cmakeargs=-DUSE_GSTREAMER_WEBRTC=FALSE)- if is_ubuntu_18_04; then+ if is_linux ubuntu 18.04; thenCMAKE_ARGS+=("--cmakeargs=-DUSE_SYSTEM_MALLOC=ON")fiif [[ -n "${EXPORT_COMPILE_COMMANDS}" ]]; then