We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 550b2cc commit f8c09d3Copy full SHA for f8c09d3
packages/yew/src/dom_bundle/position.rs
@@ -253,4 +253,15 @@ mod layout_tests {
253
"expected {target:#?} to point to the same position as {replacement:#?}"
254
);
255
}
256
+
257
+ #[test]
258
+ fn debug_printing() {
259
+ // basic tests that these don't panic. We don't enforce any specific format.
260
+ println!("At end: {:?}", DomSlot::at_end());
261
+ println!("Trapped: {:?}", DomSlot::new_debug_trapped());
262
+ println!(
263
+ "At element: {:?}",
264
+ DomSlot::at(document().create_element("p").unwrap().into())
265
+ );
266
+ }
267
0 commit comments