aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbindingproxy.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-08-17 13:12:47 -0400
committerCorey Farwell <coreyf@rwell.org>2015-08-20 11:58:42 -0400
commitb11be4d25392561d6a396a4f54588f719de5ebad (patch)
treeb4c1682a5c3d81d1143bdb51230bd9523166240c /components/script/dom/testbindingproxy.rs
parenta5fbb2f2a6fa79755f975feff2435abb6a5dd0e9 (diff)
downloadservo-b11be4d25392561d6a396a4f54588f719de5ebad.tar.gz
servo-b11be4d25392561d6a396a4f54588f719de5ebad.zip
Initial implementation of ownPropertyKeys proxy handler
Generates `SupportedPropertyNames` on DOM structs that should implement it. Most of them are unimplemented now (which can be implemented in later PRs), with the exception of `HTMLCollection`. Also added a couple relevant WPT tests. Closes #6390 Closes #2215
Diffstat (limited to 'components/script/dom/testbindingproxy.rs')
-rw-r--r--components/script/dom/testbindingproxy.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/testbindingproxy.rs b/components/script/dom/testbindingproxy.rs
index 2d2434e5e38..57b925e8d55 100644
--- a/components/script/dom/testbindingproxy.rs
+++ b/components/script/dom/testbindingproxy.rs
@@ -16,7 +16,8 @@ pub struct TestBindingProxy {
}
impl<'a> TestBindingProxyMethods for &'a TestBindingProxy {
-
+ fn Length(self) -> u32 {0}
+ fn SupportedPropertyNames(self) -> Vec<DOMString> {vec![]}
fn GetNamedItem(self, _: DOMString) -> DOMString {"".to_owned()}
fn SetNamedItem(self, _: DOMString, _: DOMString) -> () {}
fn GetItem(self, _: u32) -> DOMString {"".to_owned()}