diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-08-17 13:12:47 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-08-20 11:58:42 -0400 |
commit | b11be4d25392561d6a396a4f54588f719de5ebad (patch) | |
tree | b4c1682a5c3d81d1143bdb51230bd9523166240c /components/script/dom/testbindingproxy.rs | |
parent | a5fbb2f2a6fa79755f975feff2435abb6a5dd0e9 (diff) | |
download | servo-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.rs | 3 |
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()} |