1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:58:11 +00:00

Tests/LibWeb: Add text tests for navigation

This commit is contained in:
Aliaksandr Kalenik 2023-09-15 01:25:23 +02:00 committed by Andreas Kling
parent ead311eac7
commit 351567a01f
10 changed files with 85 additions and 0 deletions

View file

@ -0,0 +1,12 @@
<script src="../include.js"></script>
<script>
asyncTest((done) => {
const iframe = document.querySelector("iframe");
iframe.addEventListener("load", () => {
println(iframe.contentWindow.document.body.innerText);
done();
});
iframe.src = "javascript:'<body>Hello from iframe navigated using javascript url</body>'";
});
</script>
<iframe src="about:blank"></iframe>