aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorIgor Matuszewski <Xanewok@gmail.com>2018-03-23 18:38:39 +0100
committerIgor Matuszewski <Xanewok@gmail.com>2018-03-23 19:25:20 +0100
commitfbfcc762e12d5be050334b172e27bb33966fe2f3 (patch)
tree6e5ad904cfbd1a182dfc38cf601b54c0397be420 /components/script
parent2437a8472e3c2f9201fa4fc3fca06537ebf52d62 (diff)
downloadservo-fbfcc762e12d5be050334b172e27bb33966fe2f3.tar.gz
servo-fbfcc762e12d5be050334b172e27bb33966fe2f3.zip
Add codegen test for function overloads taking typed array args
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/testbinding.rs3
-rw-r--r--components/script/dom/webidls/TestBinding.webidl3
2 files changed, 6 insertions, 0 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs
index a5bb29a7e76..2beaa4d8897 100644
--- a/components/script/dom/testbinding.rs
+++ b/components/script/dom/testbinding.rs
@@ -472,6 +472,9 @@ impl TestBindingMethods for TestBinding {
fn PassStringSequence(&self, _: Vec<DOMString>) {}
fn PassInterfaceSequence(&self, _: Vec<DomRoot<Blob>>) {}
+ fn PassOverloaded(&self, _: CustomAutoRooterGuard<typedarray::ArrayBuffer>) {}
+ fn PassOverloaded_(&self, _: DOMString) {}
+
fn PassNullableBoolean(&self, _: Option<bool>) {}
fn PassNullableByte(&self, _: Option<i8>) {}
fn PassNullableOctet(&self, _: Option<u8>) {}
diff --git a/components/script/dom/webidls/TestBinding.webidl b/components/script/dom/webidls/TestBinding.webidl
index 1a1c86293cb..f95f4505ffb 100644
--- a/components/script/dom/webidls/TestBinding.webidl
+++ b/components/script/dom/webidls/TestBinding.webidl
@@ -275,6 +275,9 @@ interface TestBinding {
void passStringSequence(sequence<DOMString> seq);
void passInterfaceSequence(sequence<Blob> seq);
+ void passOverloaded(ArrayBuffer arg);
+ void passOverloaded(DOMString arg);
+
void passNullableBoolean(boolean? arg);
void passNullableByte(byte? arg);
void passNullableOctet(octet? arg);