mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 15:42:52 +00:00
This should fix (at least) the last two remaining WPT test failures in FileAPI/unicode.html.
16 lines
536 B
HTML
16 lines
536 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest(async (done) => {
|
|
const unpairedSurrogates = "hello\uDC00friends\uD800:)";
|
|
const replacedSurrogates = "hello\uFFFDfriends\uFFFD:)";
|
|
|
|
const blob = new Blob([unpairedSurrogates]);
|
|
println(await blob.text() === replacedSurrogates ? "PASS" : "FAIL")
|
|
|
|
const file = new File([unpairedSurrogates], "someFileName");
|
|
println(await file.text() === replacedSurrogates ? "PASS" : "FAIL")
|
|
|
|
done();
|
|
});
|
|
</script>
|