Skip to content

Commit ee87864

Browse files
committed
add another test
1 parent afac4fc commit ee87864

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/tests/dom/node.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,20 @@
226226
</script>
227227

228228
<span id=token class="token" style="color:#ce9178">&quot;puppeteer &quot;</span>
229+
<h3 id=name>Leto
230+
<!-- -->
231+
<!-- -->
232+
Atreides</h3>
229233
<script id=normalize>
230234
const token = $('#token');
231-
testing.expectEqual('"puppeteer "', token.firstChild.nodeValue)
235+
testing.expectEqual('"puppeteer "', token.firstChild.nodeValue);
236+
237+
const name = $('#name');
238+
testing.expectEqual([
239+
"Leto\n ",
240+
" ",
241+
"\n ",
242+
" ",
243+
"\n Atreides"
244+
], Array.from(name.childNodes).map((n) => n.nodeValue));
232245
</script>

0 commit comments

Comments
 (0)