summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/tests/wasm/slot_element.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/web-sys/tests/wasm/slot_element.rs')
-rw-r--r--vendor/web-sys/tests/wasm/slot_element.rs11
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'."
+ );
}