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
fix(scripts): do not depend on env in pw_run.sh for debug builds (#336)
Yury Semikhatsky508a7eb016f0
diff --git a/browser_patches/webkit/pw_run_debug.sh b/browser_patches/webkit/pw_run_debug.shnew file mode 100755index 0000000000..19f0431e98--- /dev/null+++ b/browser_patches/webkit/pw_run_debug.sh@@ -0,0 +1,45 @@+#!/bin/bash++function runOSX() {+ # if script is run as-is+ if [ -d $SCRIPT_PATH/checkout/WebKitBuild/Debug/MiniBrowser.app ]; then+ DYLIB_PATH="$SCRIPT_PATH/checkout/WebKitBuild/Debug"+ elif [ -d $SCRIPT_PATH/MiniBrowser.app ]; then+ DYLIB_PATH="$SCRIPT_PATH"+ elif [ -d $SCRIPT_PATH/WebKitBuild/Debug/MiniBrowser.app ]; then+ DYLIB_PATH="$SCRIPT_PATH/WebKitBuild/Debug"+ else+ echo "Cannot find a MiniBrowser.app in neither location" 1>&2+ exit 1+ fi+ MINIBROWSER="$DYLIB_PATH/MiniBrowser.app/Contents/MacOS/MiniBrowser"+ DYLD_FRAMEWORK_PATH=$DYLIB_PATH DYLD_LIBRARY_PATH=$DYLIB_PATH $MINIBROWSER "$@"+}++function runLinux() {+ # if script is run as-is+ if [ -d $SCRIPT_PATH/checkout/WebKitBuild ]; then+ LD_PATH="$SCRIPT_PATH/checkout/WebKitBuild/DependenciesGTK/Root/lib:$SCRIPT_PATH/checkout/WebKitBuild/Debug/bin"+ MINIBROWSER="$SCRIPT_PATH/checkout/WebKitBuild/Debug/bin/MiniBrowser"+ elif [ -f $SCRIPT_PATH/MiniBrowser ]; then+ LD_PATH="$SCRIPT_PATH"+ MINIBROWSER="$SCRIPT_PATH/MiniBrowser"+ elif [ -d $SCRIPT_PATH/WebKitBuild ]; then+ LD_PATH="$SCRIPT_PATH/WebKitBuild/DependenciesGTK/Root/lib:$SCRIPT_PATH/WebKitBuild/Debug/bin"+ MINIBROWSER="$SCRIPT_PATH/WebKitBuild/Debug/bin/MiniBrowser"+ else+ echo "Cannot find a MiniBrowser.app in neither location" 1>&2+ exit 1+ fi+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LD_PATH $MINIBROWSER "$@"+}++SCRIPT_PATH="$(cd "$(dirname "$0")" ; pwd -P)"+if [ "$(uname)" == "Darwin" ]; then+ runOSX "$@"+elif [ "$(uname)" == "Linux" ]; then+ runLinux "$@"+else+ echo "ERROR: cannot run on this platform!" 1>&2+ exit 1;+fi