Implemented onerror event handler for AbstractWorker

This commit is contained in:
erneyja 2015-08-29 14:39:50 -04:00
parent 67cbda4be3
commit 8d4ed7292d
3 changed files with 2 additions and 4 deletions

View file

@ -6,7 +6,7 @@
// https://www.whatwg.org/html/#abstractworker // https://www.whatwg.org/html/#abstractworker
[NoInterfaceObject/*, Exposed=Window,Worker*/] [NoInterfaceObject/*, Exposed=Window,Worker*/]
interface AbstractWorker { interface AbstractWorker {
// attribute EventHandler onerror; attribute EventHandler onerror;
}; };
// https://www.whatwg.org/html/#worker // https://www.whatwg.org/html/#worker

View file

@ -163,6 +163,7 @@ impl WorkerMethods for Worker {
} }
event_handler!(message, GetOnmessage, SetOnmessage); event_handler!(message, GetOnmessage, SetOnmessage);
event_handler!(error, GetOnerror, SetOnerror);
} }
pub struct WorkerMessageHandler { pub struct WorkerMessageHandler {

View file

@ -8430,9 +8430,6 @@
[Worker interface: operation terminate()] [Worker interface: operation terminate()]
expected: FAIL expected: FAIL
[Worker interface: attribute onerror]
expected: FAIL
[SharedWorker interface: existence and properties of interface object] [SharedWorker interface: existence and properties of interface object]
expected: FAIL expected: FAIL