You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
el.setAttribute(camelName,'pretended to be camel');
232
227
233
-
root.appendChild(el);
234
-
assert.equal(
235
-
root.innerHTML,
236
-
`<x-prop-name-transform ${kebabName}="11/11/2011" ${lowerName}="pretended to be camel"><span>11/11/2011 pretended to be camel 11/11/2011</span></x-prop-name-transform>`
237
-
);
228
+
root.appendChild(el);
229
+
assert.equal(
230
+
root.innerHTML,
231
+
`<x-prop-name-transform ${kebabName}="11/11/2011" ${lowerName}="pretended to be camel"><span>11/11/2011 pretended to be camel 11/11/2011</span></x-prop-name-transform>`
232
+
);
238
233
239
-
el.setAttribute(kebabName,'01/01/2001');
240
-
assert.equal(
241
-
root.innerHTML,
242
-
`<x-prop-name-transform ${kebabName}="01/01/2001" ${lowerName}="pretended to be camel"><span>01/01/2001 pretended to be camel 01/01/2001</span></x-prop-name-transform>`
243
-
);
234
+
el.setAttribute(kebabName,'01/01/2001');
235
+
assert.equal(
236
+
root.innerHTML,
237
+
`<x-prop-name-transform ${kebabName}="01/01/2001" ${lowerName}="pretended to be camel"><span>01/01/2001 pretended to be camel 01/01/2001</span></x-prop-name-transform>`
238
+
);
239
+
});
244
240
});
245
241
246
242
describe('children',()=>{
243
+
/** @param {string} name */
244
+
functioncreateTestElement(name){
245
+
constel=document.createElement(name);
246
+
constchild1=document.createElement('p');
247
+
child1.textContent='Child 1';
248
+
constchild2=document.createElement('p');
249
+
child2.textContent='Child 2';
250
+
el.appendChild(child1);
251
+
el.appendChild(child2);
252
+
returnel;
253
+
}
254
+
247
255
it('supports controlling light DOM children',()=>{
0 commit comments