mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
add another test
This commit is contained in:
@@ -226,7 +226,20 @@ let first_child = content.firstChild.nextSibling; // nextSibling because of line
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<span id=token class="token" style="color:#ce9178">"puppeteer "</span>
|
<span id=token class="token" style="color:#ce9178">"puppeteer "</span>
|
||||||
|
<h3 id=name>Leto
|
||||||
|
<!-- -->
|
||||||
|
<!-- -->
|
||||||
|
Atreides</h3>
|
||||||
<script id=normalize>
|
<script id=normalize>
|
||||||
const token = $('#token');
|
const token = $('#token');
|
||||||
testing.expectEqual('"puppeteer "', token.firstChild.nodeValue)
|
testing.expectEqual('"puppeteer "', token.firstChild.nodeValue);
|
||||||
|
|
||||||
|
const name = $('#name');
|
||||||
|
testing.expectEqual([
|
||||||
|
"Leto\n ",
|
||||||
|
" ",
|
||||||
|
"\n ",
|
||||||
|
" ",
|
||||||
|
"\n Atreides"
|
||||||
|
], Array.from(name.childNodes).map((n) => n.nodeValue));
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user