| OLD | NEW |
| 1 importScripts('/resources/testharness.js'); | 1 importScripts('/resources/testharness.js'); |
| 2 importScripts('/resources/testharness-helpers.js'); | |
| 3 | 2 |
| 4 test(function() { | 3 test(function() { |
| 5 assert_own_property(self, 'SyncManager', 'SyncManager needs to be exposed as
a global.'); | 4 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.'); | 5 assert_idl_attribute(registration, 'sync', 'One-shot SyncManager needs to be
exposed on the registration.'); |
| 7 | 6 |
| 8 assert_inherits(registration.sync, 'register'); | 7 assert_inherits(registration.sync, 'register'); |
| 9 assert_inherits(registration.sync, 'getTags'); | 8 assert_inherits(registration.sync, 'getTags'); |
| 10 | 9 |
| 11 }, 'SyncManager should be exposed and have the expected interface.'); | 10 }, 'SyncManager should be exposed and have the expected interface.'); |
| 12 | 11 |
| 13 test(function() { | 12 test(function() { |
| 14 assert_own_property(self, 'SyncEvent'); | 13 assert_own_property(self, 'SyncEvent'); |
| 15 | 14 |
| 16 assert_will_be_idl_attribute(SyncEvent.prototype, 'tag'); | 15 var instance = new SyncEvent('dummy', {tag: ''}); |
| 16 assert_idl_attribute(instance, 'tag'); |
| 17 assert_idl_attribute(instance, 'lastChance'); |
| 17 | 18 |
| 18 // SyncEvent should be extending ExtendableEvent. | 19 // SyncEvent should be extending ExtendableEvent. |
| 19 assert_inherits(SyncEvent.prototype, 'waitUntil'); | 20 assert_inherits(SyncEvent.prototype, 'waitUntil'); |
| 20 | 21 |
| 21 }, 'SyncEvent should be exposed and have the expected interface.'); | 22 }, 'SyncEvent should be exposed and have the expected interface.'); |
| 22 | |
| OLD | NEW |