@@ -16,9 +16,9 @@ fn render_initial_text() {
1616#[wasm_bindgen_test]
1717fn render_initial_node() {
1818 let hello = Rc::new(RenderFn(|cx| {
19− div(cx.bump)
19+ div(&cx)
2020 .attr("id", "hello-world")
21− .children([text("Hello "), span(cx.bump).child(text("World!")).finish()])
21+ .children([text("Hello "), span(&cx).child(text("World!")).finish()])
2222 .finish()
2323 }));
2424
@@ -59,13 +59,13 @@ before_after! {
5959 text("before")
6060 }
6161 after(cx) {
62− div(cx.bump).finish()
62+ div(&cx).finish()
6363 }
6464 }
6565
6666 replace_elem_with_text {
6767 before(cx) {
68− div(cx.bump).finish()
68+ div(&cx).finish()
6969 }
7070 after(_cx) {
7171 text("before")
@@ -74,52 +74,52 @@ before_after! {
7474
7575 same_elem {
7676 before(cx) {
77− div(cx.bump).finish()
77+ div(&cx).finish()
7878 }
7979 after(cx) {
80− div(cx.bump).finish()
80+ div(&cx).finish()
8181 }
8282 }
8383
8484 elems_with_different_tag_names {
8585 before(cx) {
86− span(cx.bump).finish()
86+ span(&cx).finish()
8787 }
8888 after(cx) {
89− div(cx.bump).finish()
89+ div(&cx).finish()
9090 }
9191 }
9292
9393 same_tag_name_update_attribute {
9494 before(cx) {
95− div(cx.bump).attr("value", "1").finish()
95+ div(&cx).attr("value", "1").finish()
9696 }
9797 after(cx) {
98− div(cx.bump).attr("value", "2").finish()
98+ div(&cx).attr("value", "2").finish()
9999 }
100100 }
101101
102102 same_tag_name_remove_attribute {
103103 before(cx) {
104− div(cx.bump).attr("value", "1").finish()
104+ div(&cx).attr("value", "1").finish()
105105 }
106106 after(cx) {
107− div(cx.bump).finish()
107+ div(&cx).finish()
108108 }
109109 }
110110
111111 same_tag_name_add_attribute {
112112 before(cx) {
113− div(cx.bump).finish()
113+ div(&cx).finish()
114114 }
115115 after(cx) {
116− div(cx.bump).attr("value", "2").finish()
116+ div(&cx).attr("value", "2").finish()
117117 }
118118 }
119119
120120 same_tag_name_many_attributes {
121121 before(cx) {
122− div(cx.bump)
122+ div(&cx)
123123 .attr("before-1", "1")
124124 .attr("shared-1", "1")
125125 .attr("modified-1", "1")
@@ -132,7 +132,7 @@ before_after! {
132132 .finish()
133133 }
134134 after(cx) {
135− div(cx.bump)
135+ div(&cx)
136136 .attr("after-1", "1")
137137 .attr("shared-1", "1")
138138 .attr("modified-1", "100")
@@ -148,56 +148,56 @@ before_after! {
148148
149149 same_tag_same_children {
150150 before(cx) {
151− div(cx.bump).child(text("child")).finish()
151+ div(&cx).child(text("child")).finish()
152152 }
153153 after(cx) {
154− div(cx.bump).child(text("child")).finish()
154+ div(&cx).child(text("child")).finish()
155155 }
156156 }
157157
158158 same_tag_update_child {
159159 before(cx) {
160− div(cx.bump).child(text("before")).finish()
160+ div(&cx).child(text("before")).finish()
161161 }
162162 after(cx) {
163− div(cx.bump).child(text("after")).finish()
163+ div(&cx).child(text("after")).finish()
164164 }
165165 }
166166
167167 same_tag_add_child {
168168 before(cx) {
169− div(cx.bump).finish()
169+ div(&cx).finish()
170170 }
171171 after(cx) {
172− div(cx.bump).child(text("child")).finish()
172+ div(&cx).child(text("child")).finish()
173173 }
174174 }
175175
176176 same_tag_remove_child {
177177 before(cx) {
178− div(cx.bump).child(text("child")).finish()
178+ div(&cx).child(text("child")).finish()
179179 }
180180 after(cx) {
181− div(cx.bump).finish()
181+ div(&cx).finish()
182182 }
183183 }
184184
185185 same_tag_update_many_children {
186186 before(cx) {
187− div(cx.bump)
187+ div(&cx)
188188 .children([
189− div(cx.bump).finish(),
190− span(cx.bump).finish(),
191− p(cx.bump).finish(),
189+ div(&cx).finish(),
190+ span(&cx).finish(),
191+ p(&cx).finish(),
192192 ])
193193 .finish()
194194 }
195195 after(cx) {
196− div(cx.bump)
196+ div(&cx)
197197 .children([
198− span(cx.bump).finish(),
199− p(cx.bump).finish(),
200− div(cx.bump).finish(),
198+ span(&cx).finish(),
199+ p(&cx).finish(),
200+ div(&cx).finish(),
201201 ])
202202 .finish()
203203 }
@@ -205,18 +205,18 @@ before_after! {
205205
206206 same_tag_remove_many_children {
207207 before(cx) {
208− div(cx.bump)
208+ div(&cx)
209209 .children([
210− div(cx.bump).finish(),
211− span(cx.bump).finish(),
212− p(cx.bump).finish(),
210+ div(&cx).finish(),
211+ span(&cx).finish(),
212+ p(&cx).finish(),
213213 ])
214214 .finish()
215215 }
216216 after(cx) {
217− div(cx.bump)
217+ div(&cx)
218218 .children([
219− div(cx.bump).finish(),
219+ div(&cx).finish(),
220220 ])
221221 .finish()
222222 }
@@ -224,18 +224,18 @@ before_after! {
224224
225225 same_tag_add_many_children {
226226 before(cx) {
227− div(cx.bump)
227+ div(&cx)
228228 .children([
229− div(cx.bump).finish(),
229+ div(&cx).finish(),
230230 ])
231231 .finish()
232232 }
233233 after(cx) {
234− div(cx.bump)
234+ div(&cx)
235235 .children([
236− div(cx.bump).finish(),
237− span(cx.bump).finish(),
238− p(cx.bump).finish(),
236+ div(&cx).finish(),
237+ span(&cx).finish(),
238+ p(&cx).finish(),
239239 ])
240240 .finish()
241241 }
@@ -243,12 +243,12 @@ before_after! {
243243
244244 same_tag_different_namespace {
245245 before(cx) {
246− div(cx.bump)
246+ div(&cx)
247247 .namespace(Some("http://example.com"))
248248 .finish()
249249 }
250250 after(cx) {
251− div(cx.bump)
251+ div(&cx)
252252 .namespace(Some("http://example.net"))
253253 .finish()
254254 }