Implementing Close function and mark success tests.

This commit is contained in:
Morris Tseng 2016-07-19 15:50:16 +08:00
parent 701e678d8e
commit d23ef77645
7 changed files with 29 additions and 19 deletions

View file

@ -368,6 +368,12 @@ impl DedicatedWorkerGlobalScopeMethods for DedicatedWorkerGlobalScope {
Ok(())
}
// https://html.spec.whatwg.org/multipage/#dom-dedicatedworkerglobalscope-close
fn Close(&self) {
// Step 2
self.upcast::<WorkerGlobalScope>().close();
}
// https://html.spec.whatwg.org/multipage/#handler-dedicatedworkerglobalscope-onmessage
event_handler!(message, GetOnmessage, SetOnmessage);
}