diff options
author | Igor Matuszewski <Xanewok@gmail.com> | 2018-03-13 02:35:25 +0100 |
---|---|---|
committer | Igor Matuszewski <Xanewok@gmail.com> | 2018-03-13 22:47:37 +0100 |
commit | 712812d44191bfb916ceaeeada5dc15c2f0dc83d (patch) | |
tree | 461c96b7c261291b5473fe831d7ad66d948b3fc4 /components/script/dom/testbinding.rs | |
parent | 17ecbaf8ff9ee6987f17cf00a243c136b1b0610e (diff) | |
download | servo-712812d44191bfb916ceaeeada5dc15c2f0dc83d.tar.gz servo-712812d44191bfb916ceaeeada5dc15c2f0dc83d.zip |
Add WPT test for WebIDL union conversion containing object values
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r-- | components/script/dom/testbinding.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs index 2dd77427590..11bcbfc5bd7 100644 --- a/components/script/dom/testbinding.rs +++ b/components/script/dom/testbinding.rs @@ -293,6 +293,14 @@ impl TestBindingMethods for TestBinding { fn ReceiveInterfaceSequence(&self) -> Vec<DomRoot<Blob>> { vec![Blob::new(&self.global(), BlobImpl::new_from_bytes(vec![]), "".to_owned())] } + #[allow(unsafe_code)] + unsafe fn ReceiveUnionIdentity( + &self, + _: *mut JSContext, + arg: UnionTypes::StringOrObject, + ) -> UnionTypes::StringOrObject { + arg + } fn ReceiveNullableBoolean(&self) -> Option<bool> { Some(false) } fn ReceiveNullableByte(&self) -> Option<i8> { Some(0) } |