From f8387dea2689d564aff612bfd4ec5086393fac35 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 12 Dec 2021 18:06:07 +0000 Subject: LibWeb: Implement TextEncoder.prototype.encoding --- .../LibWeb/Tests/Encoding/TextEncoder.prototype.encoding.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Userland/Libraries/LibWeb/Tests/Encoding/TextEncoder.prototype.encoding.js (limited to 'Userland/Libraries/LibWeb/Tests/Encoding') 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(); +}); -- cgit v1.2.3