-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Azure Pipelines] Enable experimental Server Timing in Safari TP
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
parameters: | ||
channel: preview | ||
|
||
# Should match https://web-platform-tests.org/running-tests/safari.html | ||
steps: | ||
- ${{ if eq(parameters.channel, 'preview') }}: | ||
- script: | | ||
# This is equivalent to `Homebrew/homebrew-cask-versions/safari-technology-preview`, | ||
# but the raw URL is used to bypass caching. | ||
HOMEBREW_NO_AUTO_UPDATE=1 brew cask install https://raw.githubusercontent.com/Homebrew/homebrew-cask-versions/master/Casks/safari-technology-preview.rb | ||
# https://web-platform-tests.org/running-tests/safari.html | ||
sudo "/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver" --enable | ||
defaults write com.apple.Safari WebKitJavaScriptCanOpenWindowsAutomatically 1 | ||
defaults write com.apple.Safari ExperimentalServerTimingEnabled -bool true | ||
displayName: 'Install Safari Technology Preview' | ||
- ${{ if eq(parameters.channel, 'stable') }}: | ||
- script: | | ||
# https://web-platform-tests.org/running-tests/safari.html | ||
sudo safaridriver --enable | ||
defaults write com.apple.Safari WebKitJavaScriptCanOpenWindowsAutomatically 1 | ||
displayName: 'Configure Safari' |