mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
bindings generator: support default ByteString values in dictionary
This commit is contained in:
parent
8cd4b772e9
commit
7fd65affab
4 changed files with 34 additions and 4 deletions
|
@ -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>) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue