diff options
author | Malisa Smith <malisa.tsmith@gmail.com> | 2016-08-09 17:51:17 -0700 |
---|---|---|
committer | Malisa Smith <malisa.tsmith@gmail.com> | 2016-08-10 10:50:36 -0700 |
commit | 7fd65affabd9ab49b254fefce968a9eafabf1fbf (patch) | |
tree | 36b40bf2690eec82b1ac9ce653e29438ef58a89d /components/script/dom/testbinding.rs | |
parent | 8cd4b772e90224b344010cc6c38cebe47ce10c48 (diff) | |
download | servo-7fd65affabd9ab49b254fefce968a9eafabf1fbf.tar.gz servo-7fd65affabd9ab49b254fefce968a9eafabf1fbf.zip |
bindings generator: support default ByteString values in dictionary
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r-- | components/script/dom/testbinding.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs index 372055483c7..9143c8b0188 100644 --- a/components/script/dom/testbinding.rs +++ b/components/script/dom/testbinding.rs @@ -312,6 +312,7 @@ impl TestBindingMethods for TestBinding { UnrestrictedDoubleValue: 0.0, anyValue: NullValue(), booleanValue: false, + bytestringValue: ByteString::new(vec![]), byteValue: 0, doubleValue: Finite::new(1.0).unwrap(), enumValue: TestEnum::Foo, @@ -319,6 +320,7 @@ impl TestBindingMethods for TestBinding { longLongValue: 54, longValue: 12, nullableBooleanValue: None, + nullableBytestringValue: None, nullableByteValue: None, nullableDoubleValue: None, nullableFloatValue: None, @@ -506,6 +508,7 @@ impl TestBindingMethods for TestBinding { fn PassOptionalUnsignedLongLongWithDefault(&self, _: u64) {} fn PassOptionalStringWithDefault(&self, _: DOMString) {} fn PassOptionalUsvstringWithDefault(&self, _: USVString) {} + fn PassOptionalBytestringWithDefault(&self, _: ByteString) {} fn PassOptionalEnumWithDefault(&self, _: TestEnum) {} fn PassOptionalNullableBooleanWithDefault(&self, _: Option<bool>) {} |