aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbinding.rs
diff options
context:
space:
mode:
authorIgor Matuszewski <Xanewok@gmail.com>2018-03-13 02:35:25 +0100
committerIgor Matuszewski <Xanewok@gmail.com>2018-03-13 22:47:37 +0100
commit712812d44191bfb916ceaeeada5dc15c2f0dc83d (patch)
tree461c96b7c261291b5473fe831d7ad66d948b3fc4 /components/script/dom/testbinding.rs
parent17ecbaf8ff9ee6987f17cf00a243c136b1b0610e (diff)
downloadservo-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.rs8
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) }