{"action":"created","issue":{"url":"https://api.github.com/repos/angular/zone.js/issues/1144","repository_url":"https://api.github.com/repos/angular/zone.js","labels_url":"https://api.github.com/repos/angular/zone.js/issues/1144/labels{/name}","comments_url":"https://api.github.com/repos/angular/zone.js/issues/1144/comments","events_url":"https://api.github.com/repos/angular/zone.js/issues/1144/events","html_url":"https://github.com/angular/zone.js/issues/1144","id":365065916,"node_id":"MDU6SXNzdWUzNjUwNjU5MTY=","number":1144,"title":"ResizeObserver (and MutationObserver) not executed while in fakeAsync","user":{"login":"Goodwine","id":2022649,"node_id":"MDQ6VXNlcjIwMjI2NDk=","avatar_url":"https://avatars0.githubusercontent.com/u/2022649?v=4","gravatar_id":"","url":"https://api.github.com/users/Goodwine","html_url":"https://github.com/Goodwine","followers_url":"https://api.github.com/users/Goodwine/followers","following_url":"https://api.github.com/users/Goodwine/following{/other_user}","gists_url":"https://api.github.com/users/Goodwine/gists{/gist_id}","starred_url":"https://api.github.com/users/Goodwine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Goodwine/subscriptions","organizations_url":"https://api.github.com/users/Goodwine/orgs","repos_url":"https://api.github.com/users/Goodwine/repos","events_url":"https://api.github.com/users/Goodwine/events{/privacy}","received_events_url":"https://api.github.com/users/Goodwine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-28T22:53:00Z","updated_at":"2018-12-20T00:09:27Z","closed_at":null,"author_association":"NONE","body":"## Current behavior\r\nExample with delay (my use case) -\r\nhttps://stackblitz.com/edit/angular-f8evbx?file=src/app/app.component.spec.ts\r\nSimplified example -\r\nhttps://stackblitz.com/edit/angular-f8evbx-3ak8vv?file=src/app/app.component.spec.ts\r\nMutationObserver example -\r\nhttps://stackblitz.com/edit/angular-f8evbx-6wdpmj?file=src/app/app.component.ts\r\n\r\n1. Use ResizeObserver (or MutationObserver + window.onresize to polyfill) on an element\r\n2. (not relevant) Handle event into an observable with debouce or some other delay thingy\r\n3. Write test for it using fakeAsync\r\n\r\nTests using fakeAsync fail, I'm forced to use `setTimeout(expectations+done, delay)` which causes unexpected delays. I tried using `import 'zone.js/dist/zone-patch-resize-observer';` but it didn't work.\r\n\r\nOn top of that, the timeout is flaky unless a full extra second or so is added to the delay.\r\n\r\n## Expected behavior\r\n<!-- Describe what the desired behavior would be. -->\r\n`flush()` should trigger events from `ResizeObserver` and `MutationObserver`\r\n\r\n## Other things\r\n\"zone.js\": \"^0.8.26\"\r\n\"@angular/core\": \"^6.1.0\",\r\n\"rxjs\": \"^6.2.0\",\r\n\r\nRelevant: https://github.com/angular/zone.js/pull/1012"},"comment":{"url":"https://api.github.com/repos/angular/zone.js/issues/comments/448799769","html_url":"https://github.com/angular/zone.js/issues/1144#issuecomment-448799769","issue_url":"https://api.github.com/repos/angular/zone.js/issues/1144","id":448799769,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODc5OTc2OQ==","user":{"login":"Goodwine","id":2022649,"node_id":"MDQ6VXNlcjIwMjI2NDk=","avatar_url":"https://avatars0.githubusercontent.com/u/2022649?v=4","gravatar_id":"","url":"https://api.github.com/users/Goodwine","html_url":"https://github.com/Goodwine","followers_url":"https://api.github.com/users/Goodwine/followers","following_url":"https://api.github.com/users/Goodwine/following{/other_user}","gists_url":"https://api.github.com/users/Goodwine/gists{/gist_id}","starred_url":"https://api.github.com/users/Goodwine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Goodwine/subscriptions","organizations_url":"https://api.github.com/users/Goodwine/orgs","repos_url":"https://api.github.com/users/Goodwine/repos","events_url":"https://api.github.com/users/Goodwine/events{/privacy}","received_events_url":"https://api.github.com/users/Goodwine/received_events","type":"User","site_admin":false},"created_at":"2018-12-20T00:09:27Z","updated_at":"2018-12-20T00:09:27Z","author_association":"NONE","body":"Hiya, I was wondering if this is something I could try to work on, do you have an example commit showing how a patch like this is done?"}}
{"actor":{"display_login":"Goodwine"}}