script/dom/testing/
testns.rs1use js::context::JSContext;
8
9use crate::dom::bindings::codegen::Bindings::TestBindingBinding::TestNS_Binding;
10use crate::dom::bindings::root::DomRoot;
11use crate::dom::globalscope::GlobalScope;
12use crate::dom::testbinding::TestBinding;
13
14#[cfg_attr(crown, crown::unrooted_must_root_lint::must_root)]
15pub(crate) struct TestNS(());
16
17impl TestNS_Binding::TestNSMethods<crate::DomTypeHolder> for TestNS {
18 fn TestAttribute(cx: &mut JSContext, global_scope: &GlobalScope) -> DomRoot<TestBinding> {
19 TestBinding::new(cx, global_scope, None)
20 }
21}