-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7085ca1
commit b403b56
Showing
6 changed files
with
47 additions
and
38 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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// file contains overloads for the web platform test, to make it work with k6 | ||
// javascript runtime. | ||
|
||
|
||
// this is a minimal implementation of the promise_test function | ||
// which used in many web platform tests | ||
function promise_test(fn, name) { | ||
try { | ||
fn(); | ||
} catch (e) { | ||
throw Error(`Error in test "${name}": ${e}`); | ||
} | ||
} | ||
|
||
// this is a minimal implementation of the done function | ||
// which used in many web platform tests | ||
function done() {} | ||
|
||
// this is a minimal implementation of the setup function | ||
function setup() {} | ||
|
||
// some tests use the self object, so we need to define it | ||
globalThis.self = globalThis; |
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