mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-13 18:37:37 +02:00
This should fix (at least) the last two remaining WPT test failures in FileAPI/unicode.html. (cherry picked from commit 55f0dc823ff266aeb29fd6f7d47d5e7f89a50ee6)
17 lines
536 B
HTML
17 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>
|