mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
fix: codegen on callback (#32537)
* Fix codegen on callback * Add test callbacks to testbinding.rs
This commit is contained in:
parent
d4db08113d
commit
63889b732f
3 changed files with 24 additions and 8 deletions
|
@ -612,14 +612,18 @@ impl TestBindingMethods for TestBinding {
|
|||
unsignedShortValue: None,
|
||||
usvstringValue: None,
|
||||
nonRequiredNullable: None,
|
||||
nonRequiredNullable2: Some(None), // null
|
||||
nonRequiredNullable2: Some(None),
|
||||
noCallbackImport: None,
|
||||
noCallbackImport2: None,
|
||||
})
|
||||
}
|
||||
|
||||
fn DictMatchesPassedValues(&self, arg: RootedTraceableBox<TestDictionary>) -> bool {
|
||||
arg.type_.as_ref().map(|s| s == "success").unwrap_or(false) &&
|
||||
arg.nonRequiredNullable.is_none() &&
|
||||
arg.nonRequiredNullable2 == Some(None)
|
||||
arg.nonRequiredNullable2 == Some(None) &&
|
||||
arg.noCallbackImport == None &&
|
||||
arg.noCallbackImport2 == None
|
||||
}
|
||||
|
||||
fn PassBoolean(&self, _: bool) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue