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:
parent
ead311eac7
commit
351567a01f
10 changed files with 85 additions and 0 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue