fune/testing/web-platform/tests/js-self-profiling/resources/external-script.js
Andrew Comminos b03978edaa Bug 1720233 [wpt PR 29645] - Reattempt upstreaming of JS Self-Profiling API WPTs, a=testonly
Automatic update from web-platform-tests
Reattempt upstreaming of JS Self-Profiling API WPTs

Wait for a delay of SAMPLE_INTERVAL + 500ms to collect samples, ensuring that we're more robust to flakiness on Mac OS CI bots.

Bug: 956688
Change-Id: If39f1d59a09857d5bcb52c5c5d03782de4055b30
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3021557
Reviewed-by: Nicolás Peña Moreno <npm@chromium.org>
Commit-Queue: Andrew Comminos <acomminos@fb.com>
Cr-Commit-Position: refs/heads/master@{#901174}

--

wpt-commits: 9d6d7f8c5356ab9fc4b49656323ce196f1176613
wpt-pr: 29645
2021-07-19 15:59:40 +00:00

9 lines
300 B
JavaScript

// NOTE: Modifying the location of functions in this file will cause
// `external-script.html` to fail! Please update the following constants
// accordingly.
const EXTERNAL_SCRIPT_FUNCTION_LINE = 7;
const EXTERNAL_SCRIPT_FUNCTION_COLUMN = 32;
function externalScriptFunction(sample) {
sample();
}