From c6cc7e18744938acde8769f77b94f5616a3126bb Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Thu, 19 Jun 2025 07:52:23 +0100 Subject: [PATCH] Tests: Update `dom/nodes/attributes.html` WPT test --- .../wpt-import/dom/nodes/attributes.txt | 12 ++-- .../wpt-import/dom/nodes/attributes.html | 61 ++++--------------- .../input/wpt-import/dom/nodes/productions.js | 6 +- 3 files changed, 20 insertions(+), 59 deletions(-) diff --git a/Tests/LibWeb/Text/expected/wpt-import/dom/nodes/attributes.txt b/Tests/LibWeb/Text/expected/wpt-import/dom/nodes/attributes.txt index ccaeb55f2ed..d8e4f2771d8 100644 --- a/Tests/LibWeb/Text/expected/wpt-import/dom/nodes/attributes.txt +++ b/Tests/LibWeb/Text/expected/wpt-import/dom/nodes/attributes.txt @@ -1,29 +1,27 @@ Harness status: OK -Found 70 tests +Found 67 tests -70 Pass +65 Pass +2 Fail Pass When qualifiedName does not match the Name production, an INVALID_CHARACTER_ERR exception is to be thrown. (toggleAttribute) -Pass When qualifiedName does not match the Name production, an INVALID_CHARACTER_ERR exception is to be thrown, even if the attribute is already present. (toggleAttribute) Pass toggleAttribute should lowercase its name argument (upper case attribute) Pass toggleAttribute should lowercase its name argument (mixed case attribute) Pass toggleAttribute should not throw even when qualifiedName starts with 'xmlns' -Pass Basic functionality should be intact. (toggleAttribute) +Fail Basic functionality should be intact. (toggleAttribute) Pass toggleAttribute should not change the order of previously set attributes. Pass toggleAttribute should set the first attribute with the given name Pass toggleAttribute should set the attribute with the given qualified name Pass Toggling element with inline style should make inline style disappear Pass When qualifiedName does not match the Name production, an INVALID_CHARACTER_ERR exception is to be thrown. (setAttribute) -Pass When qualifiedName does not match the Name production, an INVALID_CHARACTER_ERR exception is to be thrown, even if the attribute is already present. (setAttribute) Pass setAttribute should lowercase its name argument (upper case attribute) Pass setAttribute should lowercase its name argument (mixed case attribute) Pass setAttribute should not throw even when qualifiedName starts with 'xmlns' -Pass Basic functionality should be intact. +Fail Basic functionality should be intact. Pass setAttribute should not change the order of previously set attributes. Pass setAttribute should set the first attribute with the given name Pass setAttribute should set the attribute with the given qualified name Pass When qualifiedName does not match the Name production, an INVALID_CHARACTER_ERR exception is to be thrown. (setAttributeNS) -Pass When qualifiedName does not match the Name production, an INVALID_CHARACTER_ERR exception is to be thrown, even if the attribute is already present. (setAttributeNS) Pass When qualifiedName does not match the QName production, an INVALID_CHARACTER_ERR exception is to be thrown. Pass null and the empty string should result in a null namespace. Pass A namespace is required to use a prefix. diff --git a/Tests/LibWeb/Text/input/wpt-import/dom/nodes/attributes.html b/Tests/LibWeb/Text/input/wpt-import/dom/nodes/attributes.html index 0a7c1abb77c..05478007007 100644 --- a/Tests/LibWeb/Text/input/wpt-import/dom/nodes/attributes.html +++ b/Tests/LibWeb/Text/input/wpt-import/dom/nodes/attributes.html @@ -11,11 +11,6 @@
- - - - -