* This is a non-standard method that allows you to queue a mutation. * * @param {!Object} mutation * @return {!Promise}
(mutation)
| 751 | * @return {!Promise} |
| 752 | */ |
| 753 | __mutate(mutation) { |
| 754 | this.mutations_.push(mutation); |
| 755 | if (this.scheduled_) { |
| 756 | return this.scheduled_; |
| 757 | } |
| 758 | return (this.scheduled_ = Promise.resolve().then(() => { |
| 759 | this.scheduled_ = null; |
| 760 | this.callback_(this.takeRecords_()); |
| 761 | })); |
| 762 | } |
| 763 | } |
| 764 | |
| 765 | export class FakePerformance { |
no test coverage detected