Files
sousa-gecko/testing/web-platform/tests/long-animation-frame/performance-bind.html
T
Noam Rosenthal fe9ef89955 Bug 2000875 [wpt PR 56090] - Move LoAF WPTs out of /tentative, a=testonly
Automatic update from web-platform-tests
Move LoAF WPTs out of /tentative

This was shipped a couple of years ago, and missing this step
was an oversight.

Bug: 40247862
Change-Id: I7d04f89cd59c0fc0aa41048a3896d3f856aa8b45
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7166870
Reviewed-by: Yoav Weiss (@Shopify) <yoavweiss@chromium.org>
Commit-Queue: Noam Rosenthal <nrosenthal@google.com>
Reviewed-by: Dominic Farolino <dom@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1546493}

--

wpt-commits: b4590125690caea31ff21da8fc36d4b1aa72bdbe
wpt-pr: 56090
2025-11-19 16:53:52 +00:00

49 lines
1.6 KiB
HTML

<!DOCTYPE HTML>
<meta charset=utf-8>
<title>performance.bind()</title>
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/utils.js"></script>
<body>
<div id="log"></div>
<script>
test_loaf_script((t, busy_wait) => {
const wrapped = performance.bind(function internal_func() {
busy_wait();
});
t.step_timeout(() => wrapped());
}, "internal_func", "user-entry-point", "A user-defined entry point should appear in the list of scripts");
test_loaf_script((t, busy_wait) => {
const wrapped = performance.bind(function internal_func(arg) {
assert_equals(arg, 123);
assert_equals(this, globalThis);
busy_wait();
});
t.step_timeout(() => wrapped(123));
}, "internal_func", "user-entry-point", "A user-defined entry point should forward args");
test_loaf_script((t, busy_wait) => {
const wrapped = performance.bind(function internal_func(arg) {
assert_equals(arg, 123);
assert_equals(this, t);
busy_wait();
}, t);
t.step_timeout(() => wrapped(123));
}, "internal_func", "user-entry-point", "A user-defined entry point should bind thisArg");
test_loaf_script((t, busy_wait) => {
const wrapped = performance.bind(function internal_func(arg1, arg2) {
assert_equals(arg1, "bound");
assert_equals(arg2, 123);
assert_equals(this, t);
busy_wait();
}, t, "bound");
t.step_timeout(() => wrapped(123));
}, "internal_func", "user-entry-point", "A user-defined entry point should bind additional args");
</script>
</body>