fune/testing/web-platform/tests/js-self-profiling/function-anonymous-names.https.html
Corentin Pescheloche dd24dda5fb Bug 1751449 [wpt PR 32497] - Split jssp wpt tests into single test files, a=testonly
Automatic update from web-platform-tests
Split jssp wpt tests into single test files

Runtimes on linux-rel ranges from 4s to 12s rendering the test
flaky on default timeouts.
Due to the nature of the tests busy waiting to ensure a sample
is captured, breaking JSSP wpt tests into single test files should help.

Bug: chromium:1226936
Change-Id: Ib113f85510a4c9b0bcdcdc10c540565a41d300f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3406580
Auto-Submit: Corentin Pescheloche <cpescheloche@fb.com>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Commit-Queue: Nicolás Peña <npm@chromium.org>
Cr-Commit-Position: refs/heads/main@{#962169}

--

wpt-commits: 45db93f2d470ba0155eb15ca50ea2fab24f46862
wpt-pr: 32497
2022-02-05 11:50:16 +00:00

24 lines
483 B
HTML

<!DOCTYPE html>
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/profile-utils.js"></script>
</head>
<body>
<script>
promise_test(async t => {
const f = function (sample) {
sample();
};
await ProfileUtils.testFunction(f, {
name: '',
});
}, 'anonymous function expression names are logged correctly');
</script>
</body>
</html>