Skip to content

Commit

Permalink
Add tests for the messageerror IDL attribute in service workers
Browse files Browse the repository at this point in the history
Follows w3c/ServiceWorker#1130. The actual situations in which this will be called is being tested as part of #5003.
  • Loading branch information
domenic committed May 1, 2017
1 parent b65f333 commit 809ef9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion service-workers/service-worker/interfaces.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
{
register: 'function',
getRegistration: 'function',
oncontrollerchange: EVENT_HANDLER
oncontrollerchange: EVENT_HANDLER,
onmessage: EVENT_HANDLER,
onmessageerror: EVENT_HANDLER
});
}, 'Interfaces and attributes of ServiceWorkerContainer');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ test(function() {
onactivate: EVENT_HANDLER,
onfetch: EVENT_HANDLER,
oninstall: EVENT_HANDLER,
onmessage: EVENT_HANDLER
onmessage: EVENT_HANDLER,
onmessageerror: EVENT_HANDLER
});
}, 'ServiceWorkerGlobalScope');

Expand Down

0 comments on commit 809ef9b

Please sign in to comment.