summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Tests
AgeCommit message (Collapse)Author
2022-09-21Everywhere: Rename WrapperGenerator to BindingsGeneratorLinus Groh
This code generator no longer creates JS wrappers for platform objects in the old sense, instead they're JS objects internally themselves. Most of what we generate now are prototypes - which can be seen as bindings for the internal C++ methods implementing getters, setters, and methods - as well as object constructors, i.e. bindings for the internal create_with_global_object() method. Also tweak the naming of various CMake glue code existing around this.
2021-12-21LibWeb: Capture <script> element's node document on executionLuke Wilde
Step 1 of the spec is to capture the <script> element's node document into a local variable. When I originally implemented this, I thought this was not necessary. However, I realised that the script that runs can adopt the current script element into a different document, meaning step 5.4 and 6 then operate on the incorrect document. Covered by this WPT: https://github.com/web-platform-tests/wpt/blob/7b0ebaccc62b566a1965396e5be7bb2bc06f841f/html/semantics/scripting-1/the-script-element/moving-between-documents-during-evaluation.html
2021-12-12LibWeb: Implement TextEncoder.prototype.encodingLinus Groh
2021-12-12LibWeb: Implement TextEncoder.prototype.encode()Linus Groh
2021-09-03LibWeb: Add support HTMLScriptElement.supportsLuke Wilde
See https://github.com/whatwg/html/commit/33ff054a6caa014f4cce2912c93a19547a2e2717
2021-09-02LibWeb: Add initial support for AbortController and AbortSignalLuke Wilde
The DOM specification says that the primary use case for these is to give Promises abort semantics. It is also a prerequisite for Fetch, as it is used to make Fetch abortable. a
2021-07-11LibWeb: Fix syntax for Table testAdam Hodgen
The parser fixes this by inserting the <tr> tags, but for this test it's better to have perfect syntax - we're not testing the parser here.
2021-05-18LibWeb: Implement test-web in terms of LibTest/JavaScriptTestRunnerAli Mohammad Pur
This deduplicates the test-js copy-ism :^)
2021-05-09LibWeb: Add tests for HTMLTableElement attributesAdam Hodgen
These tests aim to exercise all attributes on <html> elements, including all edge cases.
2021-05-09LibWeb: Fix nodeName attribute in testsAdam Hodgen
Commit 19731fc14c (#6864) made all nodeName attributes on HTML elements uppercased. This change fixes that in all HTML & DOM tests.
2021-04-18Everywhere: Fix a bunch of typosLinus Groh
2021-04-11LibWeb: Add implementation of Node.compareDocumentPosition()Brian Gianforcaro
While looking into getting Duck Duck Go loading further in the Browser, I noticed that it was complaining about the missing method Node.compareDocumentPosition. This change implements as much of the DOM spec as possible with the current implementation of the DOM to date. The implementation is validated by new tests in the Node.js.
2021-04-11LibWeb: Connect existing implementation of Node::is_connected to JS.Brian Gianforcaro
I was looking at implementing something else, and saw this was low hanging fruit, that brings the browser closer to standards conformance. Add a basic test as well to validate it's implementation.
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling