diff options
author | Linus Groh <mail@linusgroh.de> | 2021-12-12 18:06:07 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-12 20:58:36 +0100 |
commit | f8387dea2689d564aff612bfd4ec5086393fac35 (patch) | |
tree | bdb24dd10728376abea93d4949a523497e6d3328 /Userland/Libraries/LibWeb/Tests/Encoding | |
parent | f37d00c07b313c8a6821b8add97d803dbd049f58 (diff) | |
download | serenity-f8387dea2689d564aff612bfd4ec5086393fac35.zip |
LibWeb: Implement TextEncoder.prototype.encoding
Diffstat (limited to 'Userland/Libraries/LibWeb/Tests/Encoding')
-rw-r--r-- | Userland/Libraries/LibWeb/Tests/Encoding/TextEncoder.prototype.encoding.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Tests/Encoding/TextEncoder.prototype.encoding.js b/Userland/Libraries/LibWeb/Tests/Encoding/TextEncoder.prototype.encoding.js new file mode 100644 index 0000000000..50a61beff8 --- /dev/null +++ b/Userland/Libraries/LibWeb/Tests/Encoding/TextEncoder.prototype.encoding.js @@ -0,0 +1,12 @@ +describe("normal behavior", () => { + loadLocalPage("/res/html/misc/blank.html"); + + afterInitialPageLoad(page => { + test("Basic functionality", () => { + const textEncoder = new page.TextEncoder(); + + expect(textEncoder.encoding).toBe("utf-8"); + }); + }); + waitForPageToLoad(); +}); |