diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
commit | dc0db358abe19481e475e10c32149b53370f1a1c (patch) | |
tree | ab8ce99c4b255ce46f99ef402c27916055b899ee /vendor/web-sys/tests/wasm/slot_element.rs | |
parent | Releasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff) | |
download | rustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip |
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/tests/wasm/slot_element.rs')
-rw-r--r-- | vendor/web-sys/tests/wasm/slot_element.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/vendor/web-sys/tests/wasm/slot_element.rs b/vendor/web-sys/tests/wasm/slot_element.rs index d01ccc9fc..15a9908b5 100644 --- a/vendor/web-sys/tests/wasm/slot_element.rs +++ b/vendor/web-sys/tests/wasm/slot_element.rs @@ -9,8 +9,11 @@ extern "C" { #[wasm_bindgen_test] fn test_slot_element() { - let _slot = new_slot(); - // TODO: Test fails in Firefox, but not in Chrome. Error in Firefox is 'ReferenceError: HTMLSlotElement is not defined'. https://w3c-test.org/shadow-dom/HTMLSlotElement-interface.html - // slot.set_name("root_separator"); - // assert_eq!(slot.name(), "root_separator", "Slot name should 'root_separator'."); + let slot = new_slot(); + slot.set_name("root_separator"); + assert_eq!( + slot.name(), + "root_separator", + "Slot name should 'root_separator'." + ); } |