mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
IDLGenerators: Set reflected unsigned long value according to spec
Setting an unsigned long attribute with IDL to a value outside the range 0 to 2147483647, the value should be set to the default value.
This commit is contained in:
parent
601eae47f2
commit
e5c99b475a
Notes:
github-actions[bot]
2024-11-27 10:04:07 +00:00
Author: https://github.com/tcl3
Commit: e5c99b475a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2599
3 changed files with 59 additions and 0 deletions
16
Tests/LibWeb/Text/expected/HTML/unsigned-long-reflection.txt
Normal file
16
Tests/LibWeb/Text/expected/HTML/unsigned-long-reflection.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
img.getAttribute("hspace") after img.setAttribute("hspace", "1"): 1
|
||||
img.hspace after img.setAttribute("hspace", "1"): 1
|
||||
img.getAttribute("hspace") after img.hspace = 1: 1
|
||||
img.hspace after img.hspace = 1: 1
|
||||
img.getAttribute("hspace") after img.setAttribute("hspace", "2147483647"): 2147483647
|
||||
img.hspace after img.setAttribute("hspace", "2147483647"): 2147483647
|
||||
img.getAttribute("hspace") after img.hspace = 2147483647: 2147483647
|
||||
img.hspace after img.hspace = 2147483647: 2147483647
|
||||
img.getAttribute("hspace") after img.setAttribute("hspace", "2147483648"): 2147483648
|
||||
img.hspace after img.setAttribute("hspace", "2147483648"): 0
|
||||
img.getAttribute("hspace") after img.hspace = 2147483648: 0
|
||||
img.hspace after img.hspace = 2147483648: 0
|
||||
img.getAttribute("hspace") after img.setAttribute("hspace", "4294967295"): 4294967295
|
||||
img.hspace after img.setAttribute("hspace", "4294967295"): 0
|
||||
img.getAttribute("hspace") after img.hspace = 4294967295: 0
|
||||
img.hspace after img.hspace = 4294967295: 0
|
Loading…
Add table
Add a link
Reference in a new issue