aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbinding.rs
diff options
context:
space:
mode:
authorNgo Iok Ui (Wu Yu Wei) <yuweiwu@pm.me>2024-06-19 01:00:14 +0900
committerGitHub <noreply@github.com>2024-06-18 16:00:14 +0000
commit63889b732f59a0cfe1271c9340aca4d4c565575b (patch)
tree76fc59553764abda415d0172865c7ec7e7fdba4f /components/script/dom/testbinding.rs
parentd4db08113dc945e4094f7e545d4a0119d386f152 (diff)
downloadservo-63889b732f59a0cfe1271c9340aca4d4c565575b.tar.gz
servo-63889b732f59a0cfe1271c9340aca4d4c565575b.zip
fix: codegen on callback (#32537)
* Fix codegen on callback * Add test callbacks to testbinding.rs
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r--components/script/dom/testbinding.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs
index 388af65e23c..b3ddf5fd91b 100644
--- a/components/script/dom/testbinding.rs
+++ b/components/script/dom/testbinding.rs
@@ -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) {}