blob: d183f40380d4671f3c89c114aa11f4ffadd46399 [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>Background Sync API: Verifies that the right Background Sync API interfaces get exposed.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="../serviceworker/resources/test-helpers.js"></script>
</head>
<body>
<script>
// Tests that the expected Background Sync API interfaces are being exposed on both
// the Service Worker and Document global scopes.
service_worker_test(
'resources/interfaces-worker.js',
'Exposure of interfaces in a Service Worker.');
test(function() {
assert_own_property(self, 'SyncManager', 'SyncManager needs to be exposed as a global.');
assert_own_property(SyncManager.prototype, 'register');
assert_own_property(SyncManager.prototype, 'getTags');
}, 'SyncManager should be exposed and have the expected interface in a Document.');
</script>
</body>
</html>