|
@@ -43,11 +43,11 @@ fn attrs_cycle() {
|
|
);
|
|
);
|
|
|
|
|
|
dom.mark_dirty_scope(ScopeId(0));
|
|
dom.mark_dirty_scope(ScopeId(0));
|
|
- dbg!(
|
|
|
|
- dom.render_immediate().santize(),
|
|
|
|
|
|
+ assert_eq!(
|
|
|
|
+ dom.render_immediate().santize().edits,
|
|
[
|
|
[
|
|
- LoadTemplate { name: "template", index: 0, id: ElementId(1,) },
|
|
|
|
- ReplaceWith { id: ElementId(2,), m: 1 },
|
|
|
|
|
|
+ LoadTemplate { name: "template", index: 0, id: ElementId(3) },
|
|
|
|
+ ReplaceWith { id: ElementId(2), m: 1 }
|
|
]
|
|
]
|
|
);
|
|
);
|
|
|
|
|
|
@@ -62,4 +62,14 @@ fn attrs_cycle() {
|
|
ReplaceWith { id: ElementId(3), m: 1 }
|
|
ReplaceWith { id: ElementId(3), m: 1 }
|
|
]
|
|
]
|
|
);
|
|
);
|
|
|
|
+
|
|
|
|
+ // we take the node taken by attributes since we reused it
|
|
|
|
+ dom.mark_dirty_scope(ScopeId(0));
|
|
|
|
+ assert_eq!(
|
|
|
|
+ dom.render_immediate().santize().edits,
|
|
|
|
+ [
|
|
|
|
+ LoadTemplate { name: "template", index: 0, id: ElementId(1) },
|
|
|
|
+ ReplaceWith { id: ElementId(2), m: 1 }
|
|
|
|
+ ]
|
|
|
|
+ );
|
|
}
|
|
}
|