| OLD | NEW |
| 1 importScripts('/resources/testharness.js'); | 1 importScripts('/resources/testharness.js'); |
| 2 importScripts('/resources/testharness-helpers.js'); | 2 importScripts('/resources/testharness-helpers.js'); |
| 3 | 3 |
| 4 test(function() { | 4 test(function() { |
| 5 assert_own_property(self, 'SyncManager', 'SyncManager needs to be exposed as
a global.'); | 5 assert_own_property(self, 'SyncManager', 'SyncManager needs to be exposed as
a global.'); |
| 6 assert_idl_attribute(registration, 'sync', 'One-shot SyncManager needs to be
exposed on the registration.'); | 6 assert_idl_attribute(registration, 'sync', 'One-shot SyncManager needs to be
exposed on the registration.'); |
| 7 | 7 |
| 8 assert_inherits(registration.sync, 'register'); | 8 assert_inherits(registration.sync, 'register'); |
| 9 assert_inherits(registration.sync, 'getRegistration'); | 9 assert_inherits(registration.sync, 'getTags'); |
| 10 assert_inherits(registration.sync, 'getRegistrations'); | |
| 11 assert_inherits(registration.sync, 'permissionState'); | |
| 12 | 10 |
| 13 }, 'SyncManager should be exposed and have the expected interface.'); | 11 }, 'SyncManager should be exposed and have the expected interface.'); |
| 14 | 12 |
| 15 test(function() { | 13 test(function() { |
| 16 assert_own_property(self, 'SyncRegistration', 'SyncRegistration needs to be
exposed as a global.'); | |
| 17 | |
| 18 // FIXME: Assert existence of the attributes when they are properly | |
| 19 // exposed in the prototype chain. https://crbug.com/43394 | |
| 20 assert_own_property(SyncRegistration.prototype, 'finished'); | |
| 21 assert_own_property(SyncRegistration.prototype, 'unregister'); | |
| 22 assert_own_property(SyncRegistration.prototype, 'tag'); | |
| 23 | |
| 24 }, 'SyncRegistration should be exposed and have the expected interface.'); | |
| 25 | |
| 26 test(function() { | |
| 27 assert_own_property(self, 'SyncEvent'); | 14 assert_own_property(self, 'SyncEvent'); |
| 28 | 15 |
| 29 assert_will_be_idl_attribute(SyncEvent.prototype, 'registration'); | 16 assert_will_be_idl_attribute(SyncEvent.prototype, 'tag'); |
| 30 | 17 |
| 31 // SyncEvent should be extending ExtendableEvent. | 18 // SyncEvent should be extending ExtendableEvent. |
| 32 assert_inherits(SyncEvent.prototype, 'waitUntil'); | 19 assert_inherits(SyncEvent.prototype, 'waitUntil'); |
| 33 | 20 |
| 34 }, 'SyncEvent should be exposed and have the expected interface.'); | 21 }, 'SyncEvent should be exposed and have the expected interface.'); |
| 35 | 22 |
| OLD | NEW |