forked from mirrors/gecko-dev
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
30 lines
764 B
HTML
30 lines
764 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>
|
|
// Getter methods should use `get ${label}` as the function/frame name. Source:
|
|
// https://www.ecma-international.org/ecma-262/#sec-method-definitions-runtime-semantics-propertydefinitionevaluation
|
|
promise_test(t => ProfileUtils.testFunction(sample => {
|
|
class SomeClass {
|
|
get someValue() {
|
|
sample();
|
|
}
|
|
}
|
|
let instance = new SomeClass();
|
|
instance.someValue;
|
|
}, {
|
|
name: 'get someValue',
|
|
}
|
|
), 'class getter names are logged correctly');
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|