Return a boolean from DOMTokenList::replace to match the spec

Fixes #25129
This commit is contained in:
Bastien Orivel 2019-12-07 13:22:10 +01:00
parent cfa50b8222
commit 0bdab6bb50
3 changed files with 5 additions and 333 deletions

View file

@ -75,333 +75,3 @@
[classList.replace("c", "a") with attribute value "c b a" (foo node)]
expected: FAIL
[classList.replace("a", "b") with attribute value "a" (HTML node)]
expected: FAIL
[classList.replace("A", "b") with attribute value "a" (HTML node)]
expected: FAIL
[classList.replace("b", "A") with attribute value "a b" (HTML node)]
expected: FAIL
[classList.replace("c", "a") with attribute value "a b" (HTML node)]
expected: FAIL
[classList.replace("d", "e") with attribute value "a b c" (HTML node)]
expected: FAIL
[classList.replace("c", "d") with attribute value "a a a b" (HTML node)]
expected: FAIL
[classList.replace("a", "b") with attribute value null (HTML node)]
expected: FAIL
[classList.replace("a", "b") with attribute value "" (HTML node)]
expected: FAIL
[classList.replace("a", "b") with attribute value " " (HTML node)]
expected: FAIL
[classList.replace("a", "b") with attribute value " a \\f" (HTML node)]
expected: FAIL
[classList.replace("b", "d") with attribute value "a b c" (HTML node)]
expected: FAIL
[classList.replace("c", "a") with attribute value "a b c" (HTML node)]
expected: FAIL
[classList.replace("a", "c") with attribute value "a b a" (HTML node)]
expected: FAIL
[classList.replace("b", "c") with attribute value "a b a" (HTML node)]
expected: FAIL
[classList.replace("a", "c") with attribute value " a a b" (HTML node)]
expected: FAIL
[classList.replace("b", "c") with attribute value " a a b" (HTML node)]
expected: FAIL
[classList.replace("a", "c") with attribute value "\\t\\n\\f\\r a\\t\\n\\f\\r b\\t\\n\\f\\r " (HTML node)]
expected: FAIL
[classList.replace("b", "c") with attribute value "\\t\\n\\f\\r a\\t\\n\\f\\r b\\t\\n\\f\\r " (HTML node)]
expected: FAIL
[classList.replace(null, "b") with attribute value "a null" (HTML node)]
expected: FAIL
[classList.replace("a", null) with attribute value "a b" (HTML node)]
expected: FAIL
[classList.replace(undefined, "b") with attribute value "a undefined" (HTML node)]
expected: FAIL
[classList.replace("a", undefined) with attribute value "a b" (HTML node)]
expected: FAIL
[classList.replace("a", "b") with attribute value "a" (XHTML node)]
expected: FAIL
[classList.replace("A", "b") with attribute value "a" (XHTML node)]
expected: FAIL
[classList.replace("b", "A") with attribute value "a b" (XHTML node)]
expected: FAIL
[classList.replace("c", "a") with attribute value "a b" (XHTML node)]
expected: FAIL
[classList.replace("d", "e") with attribute value "a b c" (XHTML node)]
expected: FAIL
[classList.replace("c", "d") with attribute value "a a a b" (XHTML node)]
expected: FAIL
[classList.replace("a", "b") with attribute value null (XHTML node)]
expected: FAIL
[classList.replace("a", "b") with attribute value "" (XHTML node)]
expected: FAIL
[classList.replace("a", "b") with attribute value " " (XHTML node)]
expected: FAIL
[classList.replace("a", "b") with attribute value " a \\f" (XHTML node)]
expected: FAIL
[classList.replace("b", "d") with attribute value "a b c" (XHTML node)]
expected: FAIL
[classList.replace("c", "a") with attribute value "a b c" (XHTML node)]
expected: FAIL
[classList.replace("a", "c") with attribute value "a b a" (XHTML node)]
expected: FAIL
[classList.replace("b", "c") with attribute value "a b a" (XHTML node)]
expected: FAIL
[classList.replace("a", "c") with attribute value " a a b" (XHTML node)]
expected: FAIL
[classList.replace("b", "c") with attribute value " a a b" (XHTML node)]
expected: FAIL
[classList.replace("a", "c") with attribute value "\\t\\n\\f\\r a\\t\\n\\f\\r b\\t\\n\\f\\r " (XHTML node)]
expected: FAIL
[classList.replace("b", "c") with attribute value "\\t\\n\\f\\r a\\t\\n\\f\\r b\\t\\n\\f\\r " (XHTML node)]
expected: FAIL
[classList.replace(null, "b") with attribute value "a null" (XHTML node)]
expected: FAIL
[classList.replace("a", null) with attribute value "a b" (XHTML node)]
expected: FAIL
[classList.replace(undefined, "b") with attribute value "a undefined" (XHTML node)]
expected: FAIL
[classList.replace("a", undefined) with attribute value "a b" (XHTML node)]
expected: FAIL
[classList.replace("a", "b") with attribute value "a" (MathML node)]
expected: FAIL
[classList.replace("A", "b") with attribute value "a" (MathML node)]
expected: FAIL
[classList.replace("b", "A") with attribute value "a b" (MathML node)]
expected: FAIL
[classList.replace("c", "a") with attribute value "a b" (MathML node)]
expected: FAIL
[classList.replace("d", "e") with attribute value "a b c" (MathML node)]
expected: FAIL
[classList.replace("c", "d") with attribute value "a a a b" (MathML node)]
expected: FAIL
[classList.replace("a", "b") with attribute value null (MathML node)]
expected: FAIL
[classList.replace("a", "b") with attribute value "" (MathML node)]
expected: FAIL
[classList.replace("a", "b") with attribute value " " (MathML node)]
expected: FAIL
[classList.replace("a", "b") with attribute value " a \\f" (MathML node)]
expected: FAIL
[classList.replace("b", "d") with attribute value "a b c" (MathML node)]
expected: FAIL
[classList.replace("c", "a") with attribute value "a b c" (MathML node)]
expected: FAIL
[classList.replace("a", "c") with attribute value "a b a" (MathML node)]
expected: FAIL
[classList.replace("b", "c") with attribute value "a b a" (MathML node)]
expected: FAIL
[classList.replace("a", "c") with attribute value " a a b" (MathML node)]
expected: FAIL
[classList.replace("b", "c") with attribute value " a a b" (MathML node)]
expected: FAIL
[classList.replace("a", "c") with attribute value "\\t\\n\\f\\r a\\t\\n\\f\\r b\\t\\n\\f\\r " (MathML node)]
expected: FAIL
[classList.replace("b", "c") with attribute value "\\t\\n\\f\\r a\\t\\n\\f\\r b\\t\\n\\f\\r " (MathML node)]
expected: FAIL
[classList.replace(null, "b") with attribute value "a null" (MathML node)]
expected: FAIL
[classList.replace("a", null) with attribute value "a b" (MathML node)]
expected: FAIL
[classList.replace(undefined, "b") with attribute value "a undefined" (MathML node)]
expected: FAIL
[classList.replace("a", undefined) with attribute value "a b" (MathML node)]
expected: FAIL
[classList.replace("a", "b") with attribute value "a" (XML node with null namespace)]
expected: FAIL
[classList.replace("A", "b") with attribute value "a" (XML node with null namespace)]
expected: FAIL
[classList.replace("b", "A") with attribute value "a b" (XML node with null namespace)]
expected: FAIL
[classList.replace("c", "a") with attribute value "a b" (XML node with null namespace)]
expected: FAIL
[classList.replace("d", "e") with attribute value "a b c" (XML node with null namespace)]
expected: FAIL
[classList.replace("c", "d") with attribute value "a a a b" (XML node with null namespace)]
expected: FAIL
[classList.replace("a", "b") with attribute value null (XML node with null namespace)]
expected: FAIL
[classList.replace("a", "b") with attribute value "" (XML node with null namespace)]
expected: FAIL
[classList.replace("a", "b") with attribute value " " (XML node with null namespace)]
expected: FAIL
[classList.replace("a", "b") with attribute value " a \\f" (XML node with null namespace)]
expected: FAIL
[classList.replace("b", "d") with attribute value "a b c" (XML node with null namespace)]
expected: FAIL
[classList.replace("c", "a") with attribute value "a b c" (XML node with null namespace)]
expected: FAIL
[classList.replace("a", "c") with attribute value "a b a" (XML node with null namespace)]
expected: FAIL
[classList.replace("b", "c") with attribute value "a b a" (XML node with null namespace)]
expected: FAIL
[classList.replace("a", "c") with attribute value " a a b" (XML node with null namespace)]
expected: FAIL
[classList.replace("b", "c") with attribute value " a a b" (XML node with null namespace)]
expected: FAIL
[classList.replace("a", "c") with attribute value "\\t\\n\\f\\r a\\t\\n\\f\\r b\\t\\n\\f\\r " (XML node with null namespace)]
expected: FAIL
[classList.replace("b", "c") with attribute value "\\t\\n\\f\\r a\\t\\n\\f\\r b\\t\\n\\f\\r " (XML node with null namespace)]
expected: FAIL
[classList.replace(null, "b") with attribute value "a null" (XML node with null namespace)]
expected: FAIL
[classList.replace("a", null) with attribute value "a b" (XML node with null namespace)]
expected: FAIL
[classList.replace(undefined, "b") with attribute value "a undefined" (XML node with null namespace)]
expected: FAIL
[classList.replace("a", undefined) with attribute value "a b" (XML node with null namespace)]
expected: FAIL
[classList.replace("a", "b") with attribute value "a" (foo node)]
expected: FAIL
[classList.replace("A", "b") with attribute value "a" (foo node)]
expected: FAIL
[classList.replace("b", "A") with attribute value "a b" (foo node)]
expected: FAIL
[classList.replace("c", "a") with attribute value "a b" (foo node)]
expected: FAIL
[classList.replace("d", "e") with attribute value "a b c" (foo node)]
expected: FAIL
[classList.replace("c", "d") with attribute value "a a a b" (foo node)]
expected: FAIL
[classList.replace("a", "b") with attribute value null (foo node)]
expected: FAIL
[classList.replace("a", "b") with attribute value "" (foo node)]
expected: FAIL
[classList.replace("a", "b") with attribute value " " (foo node)]
expected: FAIL
[classList.replace("a", "b") with attribute value " a \\f" (foo node)]
expected: FAIL
[classList.replace("b", "d") with attribute value "a b c" (foo node)]
expected: FAIL
[classList.replace("c", "a") with attribute value "a b c" (foo node)]
expected: FAIL
[classList.replace("a", "c") with attribute value "a b a" (foo node)]
expected: FAIL
[classList.replace("b", "c") with attribute value "a b a" (foo node)]
expected: FAIL
[classList.replace("a", "c") with attribute value " a a b" (foo node)]
expected: FAIL
[classList.replace("b", "c") with attribute value " a a b" (foo node)]
expected: FAIL
[classList.replace("a", "c") with attribute value "\\t\\n\\f\\r a\\t\\n\\f\\r b\\t\\n\\f\\r " (foo node)]
expected: FAIL
[classList.replace("b", "c") with attribute value "\\t\\n\\f\\r a\\t\\n\\f\\r b\\t\\n\\f\\r " (foo node)]
expected: FAIL
[classList.replace(null, "b") with attribute value "a null" (foo node)]
expected: FAIL
[classList.replace("a", null) with attribute value "a b" (foo node)]
expected: FAIL
[classList.replace(undefined, "b") with attribute value "a undefined" (foo node)]
expected: FAIL
[classList.replace("a", undefined) with attribute value "a b" (foo node)]
expected: FAIL