mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Implemented onerror event handler for AbstractWorker
This commit is contained in:
parent
67cbda4be3
commit
8d4ed7292d
3 changed files with 2 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue