mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Fix dictionary member conversion failure (fixes #7231)
This commit is contained in:
parent
a1b3f477aa
commit
47e76ff4ab
3 changed files with 81 additions and 2 deletions
|
@ -4694,7 +4694,6 @@ class CGDictionary(CGThing):
|
||||||
descriptorProvider,
|
descriptorProvider,
|
||||||
isMember="Dictionary",
|
isMember="Dictionary",
|
||||||
defaultValue=member.defaultValue,
|
defaultValue=member.defaultValue,
|
||||||
failureCode="return Err(());",
|
|
||||||
exceptionCode="return Err(());"))
|
exceptionCode="return Err(());"))
|
||||||
for member in dictionary.members]
|
for member in dictionary.members]
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,77 @@
|
||||||
[constructors.html]
|
[constructors.html]
|
||||||
type: testharness
|
type: testharness
|
||||||
disabled: issue 5340
|
[FocusEvent constructor (no argument)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[FocusEvent constructor (undefined argument)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[FocusEvent constructor (null argument)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[FocusEvent constructor (empty argument)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[FocusEvent constructor (argument with default values)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[FocusEvent constructor (argument with non-default values)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[MouseEvent constructor (no argument)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[MouseEvent constructor (undefined argument)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[MouseEvent constructor (null argument)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[MouseEvent constructor (empty argument)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[MouseEvent constructor (argument with default values)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[MouseEvent constructor (argument with non-default values)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WheelEvent constructor (no argument)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WheelEvent constructor (undefined argument)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WheelEvent constructor (null argument)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WheelEvent constructor (empty argument)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WheelEvent constructor (argument with default values)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[WheelEvent constructor (argument with non-default values)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[KeyboardEvent constructor (argument with non-default values)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[CompositionEvent constructor (no argument)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[CompositionEvent constructor (undefined argument)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[CompositionEvent constructor (null argument)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[CompositionEvent constructor (empty argument)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[CompositionEvent constructor (argument with default values)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[CompositionEvent constructor (argument with non-default values)]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -144,4 +144,10 @@ Object.keys(expected).forEach(function(iface) {
|
||||||
assert_props(iface, event, false);
|
assert_props(iface, event, false);
|
||||||
}, iface + " constructor (argument with non-default values)");
|
}, iface + " constructor (argument with non-default values)");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test(function () {
|
||||||
|
assert_throws(new TypeError(), function() {
|
||||||
|
new UIEvent("x", { view: 7 })
|
||||||
|
});
|
||||||
|
}, "UIEvent constructor (view argument with wrong type)")
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue