From 1dc87d99dbad41bb8acc149e152686118bfc0287 Mon Sep 17 00:00:00 2001 From: Brad Werth Date: Thu, 25 Jan 2024 23:52:24 +0000 Subject: [PATCH] Bug 1865921 Part 2: Add a test that awaits the device.lost promise. r=ErichDonGubler This also drive-by marks all WebGPU mochitests as failing on macos, to honor the current status of the blocklist. Differential Revision: https://phabricator.services.mozilla.com/D194311 --- dom/webgpu/mochitest/mochitest.toml | 10 ++++ dom/webgpu/mochitest/test_device_lost.html | 73 ++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 dom/webgpu/mochitest/test_device_lost.html diff --git a/dom/webgpu/mochitest/mochitest.toml b/dom/webgpu/mochitest/mochitest.toml index b1ff07e07186..f32d7a9a86da 100644 --- a/dom/webgpu/mochitest/mochitest.toml +++ b/dom/webgpu/mochitest/mochitest.toml @@ -32,6 +32,7 @@ fail-if = [ ["test_buffer_mapping_invalid_device.html"] fail-if = [ "os == 'linux' && os_version == '18.04'", + "os == 'mac'", ] ["test_command_buffer_creation.html"] @@ -43,6 +44,7 @@ fail-if = [ ["test_context_configure.html"] fail-if = [ "os == 'linux' && os_version == '18.04'", + "os == 'mac'", ] ["test_device_creation.html"] @@ -51,9 +53,16 @@ fail-if = [ "os == 'mac'", ] +["test_device_lost.html"] +fail-if = [ + "os == 'linux' && os_version == '18.04'", + "os == 'mac'", +] + ["test_double_encoder_finish.html"] fail-if = [ "os == 'linux' && os_version == '18.04'", + "os == 'mac'", ] ["test_enabled.html"] @@ -85,6 +94,7 @@ fail-if = [ ["test_queue_write_invalid_device.html"] fail-if = [ "os == 'linux' && os_version == '18.04'", + "os == 'mac'", ] ["test_submit_compute_empty.html"] diff --git a/dom/webgpu/mochitest/test_device_lost.html b/dom/webgpu/mochitest/test_device_lost.html new file mode 100644 index 000000000000..bc6614f0ef18 --- /dev/null +++ b/dom/webgpu/mochitest/test_device_lost.html @@ -0,0 +1,73 @@ + + + + + + + + + + + -- 2.11.4.GIT