diff options
author | Timmy Willison <timmywil@users.noreply.github.com> | 2025-01-14 05:15:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-14 11:15:49 +0100 |
commit | b6857536606d5d0dd1b07ada519f845cdac5c96e (patch) | |
tree | c12edf53f44ae773bb3b95d8e727da888e2188e9 /tests/runner/lib/buildTestUrl.js | |
parent | 44b0b0af50999a86c30fb9a48214bf5a333527af (diff) | |
download | jquery-ui-b6857536606d5d0dd1b07ada519f845cdac5c96e.tar.gz jquery-ui-b6857536606d5d0dd1b07ada519f845cdac5c96e.zip |
Tests: Migrate test runner to jquery-test-runner
Closes gh-2325
Diffstat (limited to 'tests/runner/lib/buildTestUrl.js')
-rw-r--r-- | tests/runner/lib/buildTestUrl.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/runner/lib/buildTestUrl.js b/tests/runner/lib/buildTestUrl.js deleted file mode 100644 index 5eb3b049b..000000000 --- a/tests/runner/lib/buildTestUrl.js +++ /dev/null @@ -1,24 +0,0 @@ -export function buildTestUrl( suite, { browserstack, jquery, migrate, port, reportId } ) { - if ( !port ) { - throw new Error( "No port specified." ); - } - - const query = new URLSearchParams(); - - if ( jquery ) { - query.append( "jquery", jquery ); - } - - if ( migrate ) { - query.append( "migrate", "true" ); - } - - if ( reportId ) { - query.append( "reportId", reportId ); - } - - // BrowserStack supplies a custom domain for local testing, - // which is especially necessary for iOS testing. - const host = browserstack ? "bs-local.com" : "localhost"; - return `http://${ host }:${ port }/tests/unit/${ suite }/${ suite }.html?${ query }`; -} |