{"action":"closed","issue":{"url":"https://api.github.com/repos/AlexanderMoskovkin/qunit-harness/issues/14","labels_url":"https://api.github.com/repos/AlexanderMoskovkin/qunit-harness/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/AlexanderMoskovkin/qunit-harness/issues/14/comments","events_url":"https://api.github.com/repos/AlexanderMoskovkin/qunit-harness/issues/14/events","html_url":"https://github.com/AlexanderMoskovkin/qunit-harness/issues/14","id":120955525,"number":14,"title":"WaitForIframe must to remove 'load' event listener on promise resolving","user":{"login":"miherlosev","id":4133518,"avatar_url":"https://avatars.githubusercontent.com/u/4133518?v=3","gravatar_id":"","url":"https://api.github.com/users/miherlosev","html_url":"https://github.com/miherlosev","followers_url":"https://api.github.com/users/miherlosev/followers","following_url":"https://api.github.com/users/miherlosev/following{/other_user}","gists_url":"https://api.github.com/users/miherlosev/gists{/gist_id}","starred_url":"https://api.github.com/users/miherlosev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miherlosev/subscriptions","organizations_url":"https://api.github.com/users/miherlosev/orgs","repos_url":"https://api.github.com/users/miherlosev/repos","events_url":"https://api.github.com/users/miherlosev/events{/privacy}","received_events_url":"https://api.github.com/users/miherlosev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-08T08:02:18Z","updated_at":"2015-12-08T11:22:04Z","closed_at":"2015-12-08T11:22:04Z","body":"It needs for the following scenario:\r\n```javascript\r\nasyncTest('valid resource type for iframe.contentWindow.location must be calculated', function () {\r\n        var iframe = document.createElement('iframe');\r\n\r\n        iframe.id = 'testT260697';\r\n\r\n        var loadHandler = function () {\r\n            iframe.removeEventListener('load', loadHandler);\r\n\r\n            iframe.addEventListener('load', function () {\r\n                strictEqual(urlUtils.parseProxyUrl(iframe.contentWindow.location).resourceType, 'iframe');\r\n                iframe.parentNode.removeChild(iframe);\r\n                start();\r\n            });\r\n\r\n            eval(processScript('iframe.contentWindow.location = \"/test.html\";'));\r\n        };\r\n\r\n        iframe.addEventListener('load', loadHandler);\r\n        document.body.appendChild(iframe);\r\n    });\r\n```"}}