diff options
author | Ms2ger <Ms2ger@gmail.com> | 2017-02-16 15:34:53 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2017-02-16 15:34:53 +0100 |
commit | fb8eb1db650e0902ee6909b4142c0e942a12943d (patch) | |
tree | f3176f2e89d66cfaf4dcb64415bbdc9c4bbeee59 /components/script | |
parent | d5f8b35a5f65549615c2c574e479aa4596bd06f8 (diff) | |
download | servo-fb8eb1db650e0902ee6909b4142c0e942a12943d.tar.gz servo-fb8eb1db650e0902ee6909b4142c0e942a12943d.zip |
Add a object-in-union test.
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/testbinding.rs | 2 | ||||
-rw-r--r-- | components/script/dom/webidls/TestBinding.webidl | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs index 3be8597ed41..d9defc53770 100644 --- a/components/script/dom/testbinding.rs +++ b/components/script/dom/testbinding.rs @@ -436,6 +436,8 @@ impl TestBindingMethods for TestBinding { fn PassUnion7(&self, _: StringSequenceOrUnsignedLong) {} fn PassUnion8(&self, _: ByteStringSequenceOrLong) {} fn PassUnion9(&self, _: RootedTraceableBox<UnionTypes::TestDictionaryOrLong>) {} + #[allow(unsafe_code)] + unsafe fn PassUnion10(&self, _: *mut JSContext, _: RootedTraceableBox<UnionTypes::StringOrObject>) {} fn PassUnionWithTypedef(&self, _: DocumentOrTestTypedef) {} fn PassUnionWithTypedef2(&self, _: LongSequenceOrTestTypedef) {} #[allow(unsafe_code)] diff --git a/components/script/dom/webidls/TestBinding.webidl b/components/script/dom/webidls/TestBinding.webidl index fc6d4771366..74216947917 100644 --- a/components/script/dom/webidls/TestBinding.webidl +++ b/components/script/dom/webidls/TestBinding.webidl @@ -246,6 +246,7 @@ interface TestBinding { void passUnion7((sequence<DOMString> or unsigned long) arg); void passUnion8((sequence<ByteString> or long) arg); void passUnion9((TestDictionary or long) arg); + void passUnion10((DOMString or object) arg); void passUnionWithTypedef((Document or TestTypedef) arg); void passUnionWithTypedef2((sequence<long> or TestTypedef) arg); void passAny(any arg); |