aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/testbinding.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-04-06 19:51:12 +0200
committerMs2ger <ms2ger@gmail.com>2014-04-06 19:51:12 +0200
commita52cffebebd3607900200b46ac70f03de7062418 (patch)
treefd088b923d2a466bc007b03ad879d09f31259d0e /src/components/script/dom/testbinding.rs
parentccaa46e4a31a76d9f8faffd57c48c83ddbfd9fe5 (diff)
downloadservo-a52cffebebd3607900200b46ac70f03de7062418.tar.gz
servo-a52cffebebd3607900200b46ac70f03de7062418.zip
Use ToJSValConvertible to convert nullable enums to JSVal.
Diffstat (limited to 'src/components/script/dom/testbinding.rs')
-rw-r--r--src/components/script/dom/testbinding.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/script/dom/testbinding.rs b/src/components/script/dom/testbinding.rs
index 7f05fd5f183..c391c44b181 100644
--- a/src/components/script/dom/testbinding.rs
+++ b/src/components/script/dom/testbinding.rs
@@ -74,6 +74,7 @@ impl TestBinding {
pub fn SetDoubleAttributeNullable(&self, _: Option<f64>) {}
pub fn GetStringAttributeNullable(&self) -> Option<DOMString> { Some(~"") }
pub fn SetStringAttributeNullable(&self, _: Option<DOMString>) {}
+ pub fn GetEnumAttributeNullable(&self) -> Option<TestEnum> { Some(_empty) }
pub fn GetInterfaceAttributeNullable(&self) -> Option<JS<Blob>> { Some(Blob::new(&self.window)) }
pub fn SetInterfaceAttributeNullable(&self, _: Option<JS<Blob>>) {}