{"action":"created","comment":{"url":"https://api.github.com/repos/devtools-html/debugger.html/pulls/comments/87205010","pull_request_review_id":7825380,"id":87205010,"diff_hunk":"@@ -0,0 +1,58 @@\n+/* Any copyright is dedicated to the Public Domain.\n+ * http://creativecommons.org/publicdomain/zero/1.0/ */\n+\n+// Tests that the source tree works.\n+\n+function* waitForSourceCount(dbg, i) {\n+  // We are forced to wait until the DOM nodes appear because the\n+  // source tree batches its rendering.\n+  yield waitUntil(() => {\n+    return findAllElements(dbg, \"sourceNodes\").length === i;\n+  });","path":"public/js/test/mochitest/browser_dbg-sources.js","position":11,"original_position":11,"commit_id":"c65bdcf153623abbe238d4c03c5fb34b6242e82b","original_commit_id":"c65bdcf153623abbe238d4c03c5fb34b6242e82b","user":{"login":"jlongster","id":17031,"avatar_url":"https://avatars.githubusercontent.com/u/17031?v=3","gravatar_id":"","url":"https://api.github.com/users/jlongster","html_url":"https://github.com/jlongster","followers_url":"https://api.github.com/users/jlongster/followers","following_url":"https://api.github.com/users/jlongster/following{/other_user}","gists_url":"https://api.github.com/users/jlongster/gists{/gist_id}","starred_url":"https://api.github.com/users/jlongster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlongster/subscriptions","organizations_url":"https://api.github.com/users/jlongster/orgs","repos_url":"https://api.github.com/users/jlongster/repos","events_url":"https://api.github.com/users/jlongster/events{/privacy}","received_events_url":"https://api.github.com/users/jlongster/received_events","type":"User","site_admin":false},"body":"I can't use that because I need to wait until a specific number of nodes exists. I don't know which specific node to wait for. I hate it, but there's no away around the throttling of the tree rendering.","created_at":"2016-11-09T14:46:39Z","updated_at":"2016-11-09T14:46:39Z","html_url":"https://github.com/devtools-html/debugger.html/pull/1152#discussion_r87205010","pull_request_url":"https://api.github.com/repos/devtools-html/debugger.html/pulls/1152","_links":{"self":{"href":"https://api.github.com/repos/devtools-html/debugger.html/pulls/comments/87205010"},"html":{"href":"https://github.com/devtools-html/debugger.html/pull/1152#discussion_r87205010"},"pull_request":{"href":"https://api.github.com/repos/devtools-html/debugger.html/pulls/1152"}}},"pull_request":{"url":"https://api.github.com/repos/devtools-html/debugger.html/pulls/1152","id":92867682,"html_url":"https://github.com/devtools-html/debugger.html/pull/1152","diff_url":"https://github.com/devtools-html/debugger.html/pull/1152.diff","patch_url":"https://github.com/devtools-html/debugger.html/pull/1152.patch","issue_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/1152","number":1152,"state":"open","locked":false,"title":"Add mochitest for source tree (fixes #648)","user":{"login":"jlongster","id":17031,"avatar_url":"https://avatars.githubusercontent.com/u/17031?v=3","gravatar_id":"","url":"https://api.github.com/users/jlongster","html_url":"https://github.com/jlongster","followers_url":"https://api.github.com/users/jlongster/followers","following_url":"https://api.github.com/users/jlongster/following{/other_user}","gists_url":"https://api.github.com/users/jlongster/gists{/gist_id}","starred_url":"https://api.github.com/users/jlongster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlongster/subscriptions","organizations_url":"https://api.github.com/users/jlongster/orgs","repos_url":"https://api.github.com/users/jlongster/repos","events_url":"https://api.github.com/users/jlongster/events{/privacy}","received_events_url":"https://api.github.com/users/jlongster/received_events","type":"User","site_admin":false},"body":"Been trying to do this for a while, sorry. Kept getting distracted, and took a while to decide the right way to do this. This covers the core cases from the previous mochitests. This doesn't test the specific nesting, but we have a lot of unit tests for that kind of stuff.","created_at":"2016-11-08T22:00:07Z","updated_at":"2016-11-09T14:46:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"490f7c14ca14cfc1275bf09f9db29de3ee3ba14b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/devtools-html/debugger.html/pulls/1152/commits","review_comments_url":"https://api.github.com/repos/devtools-html/debugger.html/pulls/1152/comments","review_comment_url":"https://api.github.com/repos/devtools-html/debugger.html/pulls/comments{/number}","comments_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/1152/comments","statuses_url":"https://api.github.com/repos/devtools-html/debugger.html/statuses/c65bdcf153623abbe238d4c03c5fb34b6242e82b","head":{"label":"jlongster:master","ref":"master","sha":"c65bdcf153623abbe238d4c03c5fb34b6242e82b","user":{"login":"jlongster","id":17031,"avatar_url":"https://avatars.githubusercontent.com/u/17031?v=3","gravatar_id":"","url":"https://api.github.com/users/jlongster","html_url":"https://github.com/jlongster","followers_url":"https://api.github.com/users/jlongster/followers","following_url":"https://api.github.com/users/jlongster/following{/other_user}","gists_url":"https://api.github.com/users/jlongster/gists{/gist_id}","starred_url":"https://api.github.com/users/jlongster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlongster/subscriptions","organizations_url":"https://api.github.com/users/jlongster/orgs","repos_url":"https://api.github.com/users/jlongster/repos","events_url":"https://api.github.com/users/jlongster/events{/privacy}","received_events_url":"https://api.github.com/users/jlongster/received_events","type":"User","site_admin":false},"repo":{"id":68834533,"name":"debugger.html","full_name":"jlongster/debugger.html","owner":{"login":"jlongster","id":17031,"avatar_url":"https://avatars.githubusercontent.com/u/17031?v=3","gravatar_id":"","url":"https://api.github.com/users/jlongster","html_url":"https://github.com/jlongster","followers_url":"https://api.github.com/users/jlongster/followers","following_url":"https://api.github.com/users/jlongster/following{/other_user}","gists_url":"https://api.github.com/users/jlongster/gists{/gist_id}","starred_url":"https://api.github.com/users/jlongster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlongster/subscriptions","organizations_url":"https://api.github.com/users/jlongster/orgs","repos_url":"https://api.github.com/users/jlongster/repos","events_url":"https://api.github.com/users/jlongster/events{/privacy}","received_events_url":"https://api.github.com/users/jlongster/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlongster/debugger.html","description":"The Firefox debugger that works anywhere","fork":true,"url":"https://api.github.com/repos/jlongster/debugger.html","forks_url":"https://api.github.com/repos/jlongster/debugger.html/forks","keys_url":"https://api.github.com/repos/jlongster/debugger.html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlongster/debugger.html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlongster/debugger.html/teams","hooks_url":"https://api.github.com/repos/jlongster/debugger.html/hooks","issue_events_url":"https://api.github.com/repos/jlongster/debugger.html/issues/events{/number}","events_url":"https://api.github.com/repos/jlongster/debugger.html/events","assignees_url":"https://api.github.com/repos/jlongster/debugger.html/assignees{/user}","branches_url":"https://api.github.com/repos/jlongster/debugger.html/branches{/branch}","tags_url":"https://api.github.com/repos/jlongster/debugger.html/tags","blobs_url":"https://api.github.com/repos/jlongster/debugger.html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlongster/debugger.html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlongster/debugger.html/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlongster/debugger.html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlongster/debugger.html/statuses/{sha}","languages_url":"https://api.github.com/repos/jlongster/debugger.html/languages","stargazers_url":"https://api.github.com/repos/jlongster/debugger.html/stargazers","contributors_url":"https://api.github.com/repos/jlongster/debugger.html/contributors","subscribers_url":"https://api.github.com/repos/jlongster/debugger.html/subscribers","subscription_url":"https://api.github.com/repos/jlongster/debugger.html/subscription","commits_url":"https://api.github.com/repos/jlongster/debugger.html/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlongster/debugger.html/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlongster/debugger.html/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlongster/debugger.html/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlongster/debugger.html/contents/{+path}","compare_url":"https://api.github.com/repos/jlongster/debugger.html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlongster/debugger.html/merges","archive_url":"https://api.github.com/repos/jlongster/debugger.html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlongster/debugger.html/downloads","issues_url":"https://api.github.com/repos/jlongster/debugger.html/issues{/number}","pulls_url":"https://api.github.com/repos/jlongster/debugger.html/pulls{/number}","milestones_url":"https://api.github.com/repos/jlongster/debugger.html/milestones{/number}","notifications_url":"https://api.github.com/repos/jlongster/debugger.html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlongster/debugger.html/labels{/name}","releases_url":"https://api.github.com/repos/jlongster/debugger.html/releases{/id}","deployments_url":"https://api.github.com/repos/jlongster/debugger.html/deployments","created_at":"2016-09-21T16:07:05Z","updated_at":"2016-09-21T16:07:06Z","pushed_at":"2016-11-08T22:01:16Z","git_url":"git://github.com/jlongster/debugger.html.git","ssh_url":"git@github.com:jlongster/debugger.html.git","clone_url":"https://github.com/jlongster/debugger.html.git","svn_url":"https://github.com/jlongster/debugger.html","homepage":"","size":4822,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"devtools-html:master","ref":"master","sha":"e26fb83302cfd76a4ffff39fb05d8880aedec6e8","user":{"login":"devtools-html","id":19979421,"avatar_url":"https://avatars.githubusercontent.com/u/19979421?v=3","gravatar_id":"","url":"https://api.github.com/users/devtools-html","html_url":"https://github.com/devtools-html","followers_url":"https://api.github.com/users/devtools-html/followers","following_url":"https://api.github.com/users/devtools-html/following{/other_user}","gists_url":"https://api.github.com/users/devtools-html/gists{/gist_id}","starred_url":"https://api.github.com/users/devtools-html/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devtools-html/subscriptions","organizations_url":"https://api.github.com/users/devtools-html/orgs","repos_url":"https://api.github.com/users/devtools-html/repos","events_url":"https://api.github.com/users/devtools-html/events{/privacy}","received_events_url":"https://api.github.com/users/devtools-html/received_events","type":"Organization","site_admin":false},"repo":{"id":54585418,"name":"debugger.html","full_name":"devtools-html/debugger.html","owner":{"login":"devtools-html","id":19979421,"avatar_url":"https://avatars.githubusercontent.com/u/19979421?v=3","gravatar_id":"","url":"https://api.github.com/users/devtools-html","html_url":"https://github.com/devtools-html","followers_url":"https://api.github.com/users/devtools-html/followers","following_url":"https://api.github.com/users/devtools-html/following{/other_user}","gists_url":"https://api.github.com/users/devtools-html/gists{/gist_id}","starred_url":"https://api.github.com/users/devtools-html/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devtools-html/subscriptions","organizations_url":"https://api.github.com/users/devtools-html/orgs","repos_url":"https://api.github.com/users/devtools-html/repos","events_url":"https://api.github.com/users/devtools-html/events{/privacy}","received_events_url":"https://api.github.com/users/devtools-html/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/devtools-html/debugger.html","description":"The Firefox debugger that works anywhere","fork":false,"url":"https://api.github.com/repos/devtools-html/debugger.html","forks_url":"https://api.github.com/repos/devtools-html/debugger.html/forks","keys_url":"https://api.github.com/repos/devtools-html/debugger.html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devtools-html/debugger.html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devtools-html/debugger.html/teams","hooks_url":"https://api.github.com/repos/devtools-html/debugger.html/hooks","issue_events_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/events{/number}","events_url":"https://api.github.com/repos/devtools-html/debugger.html/events","assignees_url":"https://api.github.com/repos/devtools-html/debugger.html/assignees{/user}","branches_url":"https://api.github.com/repos/devtools-html/debugger.html/branches{/branch}","tags_url":"https://api.github.com/repos/devtools-html/debugger.html/tags","blobs_url":"https://api.github.com/repos/devtools-html/debugger.html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devtools-html/debugger.html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devtools-html/debugger.html/git/refs{/sha}","trees_url":"https://api.github.com/repos/devtools-html/debugger.html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devtools-html/debugger.html/statuses/{sha}","languages_url":"https://api.github.com/repos/devtools-html/debugger.html/languages","stargazers_url":"https://api.github.com/repos/devtools-html/debugger.html/stargazers","contributors_url":"https://api.github.com/repos/devtools-html/debugger.html/contributors","subscribers_url":"https://api.github.com/repos/devtools-html/debugger.html/subscribers","subscription_url":"https://api.github.com/repos/devtools-html/debugger.html/subscription","commits_url":"https://api.github.com/repos/devtools-html/debugger.html/commits{/sha}","git_commits_url":"https://api.github.com/repos/devtools-html/debugger.html/git/commits{/sha}","comments_url":"https://api.github.com/repos/devtools-html/debugger.html/comments{/number}","issue_comment_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/comments{/number}","contents_url":"https://api.github.com/repos/devtools-html/debugger.html/contents/{+path}","compare_url":"https://api.github.com/repos/devtools-html/debugger.html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devtools-html/debugger.html/merges","archive_url":"https://api.github.com/repos/devtools-html/debugger.html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devtools-html/debugger.html/downloads","issues_url":"https://api.github.com/repos/devtools-html/debugger.html/issues{/number}","pulls_url":"https://api.github.com/repos/devtools-html/debugger.html/pulls{/number}","milestones_url":"https://api.github.com/repos/devtools-html/debugger.html/milestones{/number}","notifications_url":"https://api.github.com/repos/devtools-html/debugger.html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devtools-html/debugger.html/labels{/name}","releases_url":"https://api.github.com/repos/devtools-html/debugger.html/releases{/id}","deployments_url":"https://api.github.com/repos/devtools-html/debugger.html/deployments","created_at":"2016-03-23T18:55:36Z","updated_at":"2016-11-09T09:52:39Z","pushed_at":"2016-11-09T00:42:31Z","git_url":"git://github.com/devtools-html/debugger.html.git","ssh_url":"git@github.com:devtools-html/debugger.html.git","clone_url":"https://github.com/devtools-html/debugger.html.git","svn_url":"https://github.com/devtools-html/debugger.html","homepage":"","size":19468,"stargazers_count":2254,"watchers_count":2254,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":159,"mirror_url":null,"open_issues_count":78,"forks":159,"open_issues":78,"watchers":2254,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/devtools-html/debugger.html/pulls/1152"},"html":{"href":"https://github.com/devtools-html/debugger.html/pull/1152"},"issue":{"href":"https://api.github.com/repos/devtools-html/debugger.html/issues/1152"},"comments":{"href":"https://api.github.com/repos/devtools-html/debugger.html/issues/1152/comments"},"review_comments":{"href":"https://api.github.com/repos/devtools-html/debugger.html/pulls/1152/comments"},"review_comment":{"href":"https://api.github.com/repos/devtools-html/debugger.html/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/devtools-html/debugger.html/pulls/1152/commits"},"statuses":{"href":"https://api.github.com/repos/devtools-html/debugger.html/statuses/c65bdcf153623abbe238d4c03c5fb34b6242e82b"}}}}
{"actor":{"display_login":"jlongster"}}