mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
For example, in the following abbreviated test HTML: <span>some text</span> <script>println("whf")</script> We would have to craft the expectation file to include the "some text" segment, usually with some leading whitespace. This is a bit annoying, and makes it difficult to manually craft expectation files. So instead of comparing the expectation against the entire DOM inner text, we now send the inner text of just the <pre> element containing the test output when we invoke `internals.signalTextTestIsDone`.
11 lines
665 B
Text
11 lines
665 B
Text
color with no adopted style sheets: rgb(0, 0, 0)
|
|
document.adoptedStyleSheets.length=(1)
|
|
add style sheet using Array.prototype.push(): rgb(255, 0, 0)
|
|
document.adoptedStyleSheets.length=(0)
|
|
delete added style sheet using Array.prototype.pop(): rgb(0, 0, 0)
|
|
document.adoptedStyleSheets.length=(1)
|
|
add style by assigning array to document.adoptedStyleSheets: rgb(255, 0, 0)
|
|
document.adoptedStyleSheets.length=(1)
|
|
add style by assigning Set to document.adoptedStyleSheets: rgb(0, 128, 0)
|
|
assignment of non-iterable value to document.adoptedStyleSheets throws "1 is not iterable"
|
|
assignment of value that is not CSSStyleSheet throws "Not an object of type CSSStyleSheet"
|