mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 20:42:11 +02:00
Tests/LibWeb: Add text tests for navigation
This commit is contained in:
committed by
Andreas Kling
parent
ead311eac7
commit
351567a01f
Notes:
sideshowbarker
2024-07-17 05:06:13 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/351567a01f Pull-request: https://github.com/SerenityOS/serenity/pull/18219
@@ -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>
|
||||
Reference in New Issue
Block a user