Commit f55f08c7 authored by Mugdha Lakhani's avatar Mugdha Lakhani Committed by Commit Bot

[Background Sync] Update idlharness test

to add a list of expected objects.

Bug: 996664
Change-Id: I8b13a849a82687ae2d2c9f41856569391c02a35d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1912206
Commit-Queue: Mike West <mkwst@chromium.org>
Auto-Submit: Mugdha Lakhani <nator@chromium.org>
Reviewed-by: default avatarMike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#715387}
parent 94c70fe4
......@@ -9,6 +9,16 @@ idl_test(
['BackgroundSync'],
['service-workers', 'html', 'dom'],
idlArray => {
// TODO: Objects
const isServiceWorker = location.pathname.includes('.serviceworker.');
if (isServiceWorker) {
idl_array.add_objects({
ServiceWorkerGlobalScope: ['self', 'onsync', 'onperiodicsync'],
ServiceWorkerRegistration: ['registration'],
SyncManager: ['registration.sync'],
PeriodicSyncManager: ['registration.periodicSync'],
SyncEevnt: ['new SyncEvent("tag", "lastChance")'],
PeriodicSyncEevnt: ['new PeriodicSyncEvent("tag")'],
});
}
}
);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment