Merge branch 'upstream' into simplify-native-core

This commit is contained in:
Evan Almloff committed 2023-01-28 18:49:19 -06:00
commit d53bfb6c56
57 files changed
+1553 -368

No files matched your search

+6 -6
View File
@@ -316,7 +316,7 @@ fn creation() {
tree.add_child(parent_id, child_id);
println!("Tree: {:#?}", tree);
println!("Tree: {tree:#?}");
assert_eq!(tree.size(), 2);
assert_eq!(tree.height(parent_id), Some(0));
assert_eq!(tree.height(child_id), Some(1));
@@ -346,7 +346,7 @@ fn insertion() {
let after = after.id();
tree.insert_after(child, after);
println!("Tree: {:#?}", tree);
println!("Tree: {tree:#?}");
assert_eq!(tree.size(), 4);
assert_eq!(tree.height(parent), Some(0));
assert_eq!(tree.height(child), Some(1));
@@ -381,7 +381,7 @@ fn deletion() {
let after = after.id();
tree.insert_after(child, after);
println!("Tree: {:#?}", tree);
println!("Tree: {tree:#?}");
assert_eq!(tree.size(), 4);
assert_eq!(tree.height(parent), Some(0));
assert_eq!(tree.height(child), Some(1));
@@ -399,7 +399,7 @@ fn deletion() {
tree.remove(child);
println!("Tree: {:#?}", tree);
println!("Tree: {tree:#?}");
assert_eq!(tree.size(), 3);
assert_eq!(tree.height(parent), Some(0));
assert_eq!(tree.height(before), Some(1));
@@ -415,7 +415,7 @@ fn deletion() {
tree.remove(before);
println!("Tree: {:#?}", tree);
println!("Tree: {tree:#?}");
assert_eq!(tree.size(), 2);
assert_eq!(tree.height(parent), Some(0));
assert_eq!(tree.height(after), Some(1));
@@ -428,7 +428,7 @@ fn deletion() {
tree.remove(after);
println!("Tree: {:#?}", tree);
println!("Tree: {tree:#?}");
assert_eq!(tree.size(), 1);
assert_eq!(tree.height(parent), Some(0));
assert_eq!(tree.children_ids(parent).unwrap(), &[]);
@@ -361,7 +361,7 @@ fn persist_removes() {
let mut rdom: RealDom = RealDom::new(Box::new([]));
let build = vdom.rebuild();
println!("{:#?}", build);
println!("{build:#?}");
let _to_update = rdom.apply_mutations(build);
// this will end on the node that is removed
@@ -393,7 +393,7 @@ fn persist_removes() {
vdom.mark_dirty(ScopeId(0));
let update = vdom.render_immediate();
println!("{:#?}", update);
println!("{update:#?}");
iter1.prune(&update, &rdom);
iter2.prune(&update, &rdom);
let _to_update = rdom.apply_mutations(update);