commit 6a4748b20b895c81f7a60578f8853b472df4d788
parent 9a22cfff7d18a4b03639e2348ebb73a0a2f7202e
Author: Chris Cuellar <58723+ChrisC@users.noreply.github.com>
Date: Fri, 9 Jan 2026 08:36:34 +0000
Bug 2001754 [wpt PR 56201] - classifies "visibility" web feature, a=testonly
Automatic update from web-platform-tests
classifies "visibility" web feature (#56201)
--
wpt-commits: b35ebf36ea6b852af43ff0420f506b3c894fe412
wpt-pr: 56201
Diffstat:
3 files changed, 37 insertions(+), 40 deletions(-)
diff --git a/testing/web-platform/tests/css/CSS2/visufx/WEB_FEATURES.yml b/testing/web-platform/tests/css/CSS2/visufx/WEB_FEATURES.yml
@@ -12,3 +12,6 @@ features:
- clipping-016.xht
- clipping-017.xht
- shape-spaces-001.xht
+- name: visibility
+ files:
+ - 'visibility-*'
diff --git a/testing/web-platform/tests/css/css-box/parsing/WEB_FEATURES.yml b/testing/web-platform/tests/css/css-box/parsing/WEB_FEATURES.yml
@@ -14,3 +14,6 @@ features:
- name: padding
files:
- 'padding-*'
+- name: visibility
+ files:
+ - 'visibility-*'
diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-audioworklet-interface/audioworkletglobalscope-timing-info.https.html b/testing/web-platform/tests/webaudio/the-audio-api/the-audioworklet-interface/audioworkletglobalscope-timing-info.https.html
@@ -6,54 +6,45 @@
</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
- <script src="/webaudio/resources/audit.js"></script>
</head>
<body>
- <script id="layout-test-code">
- let audit = Audit.createTaskRunner();
+ <script>
+ promise_test(async () => {
+ const sampleRate = 48000;
+ const renderLength = 512;
+ const context = new OfflineAudioContext(1, renderLength, sampleRate);
- setup(() => {
- let sampleRate = 48000;
- let renderLength = 512;
- let context = new OfflineAudioContext(1, renderLength, sampleRate);
+ const filePath = 'processors/timing-info-processor.js';
- let filePath = 'processors/timing-info-processor.js';
+ await context.audioWorklet.addModule(filePath);
- audit.define(
- 'Check the timing information from AudioWorkletProcessor',
- (task, should) => {
- let portWorkletNode =
- new AudioWorkletNode(context, 'timing-info-processor');
- portWorkletNode.connect(context.destination);
+ const portWorkletNode =
+ new AudioWorkletNode(context, 'timing-info-processor');
+ portWorkletNode.connect(context.destination);
- // Suspend at render quantum boundary and check the timing
- // information between the main thread and the rendering thread.
- [0, 128, 256, 384].map((suspendFrame) => {
- context.suspend(suspendFrame/sampleRate).then(() => {
- portWorkletNode.port.onmessage = (event) => {
- should(event.data.currentFrame,
- 'currentFrame from the processor at ' + suspendFrame)
- .beEqualTo(suspendFrame);
- should(event.data.currentTime,
- 'currentTime from the processor at '
- + context.currentTime)
- .beEqualTo(context.currentTime);
- context.resume();
- };
+ // Suspend at render quantum boundary and check the timing
+ // information between the main thread and the rendering thread.
+ [0, 128, 256, 384].forEach(suspendFrame => {
+ context.suspend(suspendFrame / sampleRate).then(() => {
+ portWorkletNode.port.onmessage = (event) => {
+ assert_equals(
+ event.data.currentFrame,
+ suspendFrame,
+ 'currentFrame from the processor at ' + suspendFrame);
+ assert_equals(
+ event.data.currentTime,
+ context.currentTime,
+ 'currentTime from the processor at ' +
+ context.currentTime);
+ context.resume();
+ };
- portWorkletNode.port.postMessage('query-timing-info');
- });
- });
-
- context.startRendering().then(() => {
- task.done();
- });
- });
-
- context.audioWorklet.addModule(filePath).then(() => {
- audit.run();
+ portWorkletNode.port.postMessage('query-timing-info');
+ });
});
- });
+
+ await context.startRendering();
+ }, 'Check the timing information from AudioWorkletProcessor');
</script>
</body>
</html>