{"action":"created","comment":{"url":"https://api.github.com/repos/zulip/zulip/pulls/comments/125660287","pull_request_review_id":48071301,"id":125660287,"diff_hunk":"@@ -131,3 +131,27 @@ IterationProfiler.prototype = {\n         }\n     },\n };\n+\n+export function test_send_many_messages(stream, subject, count) {\n+    var num_sent = 0;\n+\n+    function do_send_one() {\n+        var message = {};\n+        num_sent += 1;\n+\n+        message.type = \"stream\";\n+        message.to = stream;\n+        message.subject = subject;\n+        message.content = num_sent.toString();\n+\n+        compose.send_message(message);","path":"static/js/debug.js","position":17,"original_position":17,"commit_id":"943ffbe7bb076988936439aa9465a73bc7f270ce","original_commit_id":"5a0e6e275aa48a0037b56ec50d6b4e58d2389ffa","user":{"login":"showell","id":142908,"avatar_url":"https://avatars1.githubusercontent.com/u/142908?v=3","gravatar_id":"","url":"https://api.github.com/users/showell","html_url":"https://github.com/showell","followers_url":"https://api.github.com/users/showell/followers","following_url":"https://api.github.com/users/showell/following{/other_user}","gists_url":"https://api.github.com/users/showell/gists{/gist_id}","starred_url":"https://api.github.com/users/showell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/showell/subscriptions","organizations_url":"https://api.github.com/users/showell/orgs","repos_url":"https://api.github.com/users/showell/repos","events_url":"https://api.github.com/users/showell/events{/privacy}","received_events_url":"https://api.github.com/users/showell/received_events","type":"User","site_admin":false},"body":"You have to export `send_message` in `compose.js for this to work.  I think it's fine to just do something like this in `compose.js`:\r\n\r\n~~~ js\r\nexports.send_test_message = send_message\r\n~~~\r\n\r\nThat way we're not exposing send_message directly to the outside world, and it would be a smaller diff.  You'll want to test this manually, obviously.","created_at":"2017-07-05T14:34:08Z","updated_at":"2017-07-05T14:34:09Z","html_url":"https://github.com/zulip/zulip/pull/5616#discussion_r125660287","pull_request_url":"https://api.github.com/repos/zulip/zulip/pulls/5616","_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip/pulls/comments/125660287"},"html":{"href":"https://github.com/zulip/zulip/pull/5616#discussion_r125660287"},"pull_request":{"href":"https://api.github.com/repos/zulip/zulip/pulls/5616"}}},"pull_request":{"url":"https://api.github.com/repos/zulip/zulip/pulls/5616","id":128140881,"html_url":"https://github.com/zulip/zulip/pull/5616","diff_url":"https://github.com/zulip/zulip/pull/5616.diff","patch_url":"https://github.com/zulip/zulip/pull/5616.patch","issue_url":"https://api.github.com/repos/zulip/zulip/issues/5616","number":5616,"state":"open","locked":false,"title":"Add Node test coverage to compose.js","user":{"login":"adnrs96","id":17237412,"avatar_url":"https://avatars0.githubusercontent.com/u/17237412?v=3","gravatar_id":"","url":"https://api.github.com/users/adnrs96","html_url":"https://github.com/adnrs96","followers_url":"https://api.github.com/users/adnrs96/followers","following_url":"https://api.github.com/users/adnrs96/following{/other_user}","gists_url":"https://api.github.com/users/adnrs96/gists{/gist_id}","starred_url":"https://api.github.com/users/adnrs96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adnrs96/subscriptions","organizations_url":"https://api.github.com/users/adnrs96/orgs","repos_url":"https://api.github.com/users/adnrs96/repos","events_url":"https://api.github.com/users/adnrs96/events{/privacy}","received_events_url":"https://api.github.com/users/adnrs96/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-29T12:38:13Z","updated_at":"2017-07-05T14:34:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6bd5a117fb787be86ab2105fb71dccffa3345ad5","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/zulip/zulip/pulls/5616/commits","review_comments_url":"https://api.github.com/repos/zulip/zulip/pulls/5616/comments","review_comment_url":"https://api.github.com/repos/zulip/zulip/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zulip/zulip/issues/5616/comments","statuses_url":"https://api.github.com/repos/zulip/zulip/statuses/943ffbe7bb076988936439aa9465a73bc7f270ce","head":{"label":"adnrs96:node-coverage","ref":"node-coverage","sha":"943ffbe7bb076988936439aa9465a73bc7f270ce","user":{"login":"adnrs96","id":17237412,"avatar_url":"https://avatars0.githubusercontent.com/u/17237412?v=3","gravatar_id":"","url":"https://api.github.com/users/adnrs96","html_url":"https://github.com/adnrs96","followers_url":"https://api.github.com/users/adnrs96/followers","following_url":"https://api.github.com/users/adnrs96/following{/other_user}","gists_url":"https://api.github.com/users/adnrs96/gists{/gist_id}","starred_url":"https://api.github.com/users/adnrs96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adnrs96/subscriptions","organizations_url":"https://api.github.com/users/adnrs96/orgs","repos_url":"https://api.github.com/users/adnrs96/repos","events_url":"https://api.github.com/users/adnrs96/events{/privacy}","received_events_url":"https://api.github.com/users/adnrs96/received_events","type":"User","site_admin":false},"repo":{"id":77789582,"name":"zulip","full_name":"adnrs96/zulip","owner":{"login":"adnrs96","id":17237412,"avatar_url":"https://avatars0.githubusercontent.com/u/17237412?v=3","gravatar_id":"","url":"https://api.github.com/users/adnrs96","html_url":"https://github.com/adnrs96","followers_url":"https://api.github.com/users/adnrs96/followers","following_url":"https://api.github.com/users/adnrs96/following{/other_user}","gists_url":"https://api.github.com/users/adnrs96/gists{/gist_id}","starred_url":"https://api.github.com/users/adnrs96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adnrs96/subscriptions","organizations_url":"https://api.github.com/users/adnrs96/orgs","repos_url":"https://api.github.com/users/adnrs96/repos","events_url":"https://api.github.com/users/adnrs96/events{/privacy}","received_events_url":"https://api.github.com/users/adnrs96/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adnrs96/zulip","description":"Zulip server - powerful open source group chat","fork":true,"url":"https://api.github.com/repos/adnrs96/zulip","forks_url":"https://api.github.com/repos/adnrs96/zulip/forks","keys_url":"https://api.github.com/repos/adnrs96/zulip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adnrs96/zulip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adnrs96/zulip/teams","hooks_url":"https://api.github.com/repos/adnrs96/zulip/hooks","issue_events_url":"https://api.github.com/repos/adnrs96/zulip/issues/events{/number}","events_url":"https://api.github.com/repos/adnrs96/zulip/events","assignees_url":"https://api.github.com/repos/adnrs96/zulip/assignees{/user}","branches_url":"https://api.github.com/repos/adnrs96/zulip/branches{/branch}","tags_url":"https://api.github.com/repos/adnrs96/zulip/tags","blobs_url":"https://api.github.com/repos/adnrs96/zulip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adnrs96/zulip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adnrs96/zulip/git/refs{/sha}","trees_url":"https://api.github.com/repos/adnrs96/zulip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adnrs96/zulip/statuses/{sha}","languages_url":"https://api.github.com/repos/adnrs96/zulip/languages","stargazers_url":"https://api.github.com/repos/adnrs96/zulip/stargazers","contributors_url":"https://api.github.com/repos/adnrs96/zulip/contributors","subscribers_url":"https://api.github.com/repos/adnrs96/zulip/subscribers","subscription_url":"https://api.github.com/repos/adnrs96/zulip/subscription","commits_url":"https://api.github.com/repos/adnrs96/zulip/commits{/sha}","git_commits_url":"https://api.github.com/repos/adnrs96/zulip/git/commits{/sha}","comments_url":"https://api.github.com/repos/adnrs96/zulip/comments{/number}","issue_comment_url":"https://api.github.com/repos/adnrs96/zulip/issues/comments{/number}","contents_url":"https://api.github.com/repos/adnrs96/zulip/contents/{+path}","compare_url":"https://api.github.com/repos/adnrs96/zulip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adnrs96/zulip/merges","archive_url":"https://api.github.com/repos/adnrs96/zulip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adnrs96/zulip/downloads","issues_url":"https://api.github.com/repos/adnrs96/zulip/issues{/number}","pulls_url":"https://api.github.com/repos/adnrs96/zulip/pulls{/number}","milestones_url":"https://api.github.com/repos/adnrs96/zulip/milestones{/number}","notifications_url":"https://api.github.com/repos/adnrs96/zulip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adnrs96/zulip/labels{/name}","releases_url":"https://api.github.com/repos/adnrs96/zulip/releases{/id}","deployments_url":"https://api.github.com/repos/adnrs96/zulip/deployments","created_at":"2017-01-01T17:46:19Z","updated_at":"2017-01-01T17:46:29Z","pushed_at":"2017-07-05T13:34:13Z","git_url":"git://github.com/adnrs96/zulip.git","ssh_url":"git@github.com:adnrs96/zulip.git","clone_url":"https://github.com/adnrs96/zulip.git","svn_url":"https://github.com/adnrs96/zulip","homepage":"","size":162715,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zulip:master","ref":"master","sha":"77dc5df56a1dba07f495dcfd81fa84476d5643a2","user":{"login":"zulip","id":4921959,"avatar_url":"https://avatars1.githubusercontent.com/u/4921959?v=3","gravatar_id":"","url":"https://api.github.com/users/zulip","html_url":"https://github.com/zulip","followers_url":"https://api.github.com/users/zulip/followers","following_url":"https://api.github.com/users/zulip/following{/other_user}","gists_url":"https://api.github.com/users/zulip/gists{/gist_id}","starred_url":"https://api.github.com/users/zulip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zulip/subscriptions","organizations_url":"https://api.github.com/users/zulip/orgs","repos_url":"https://api.github.com/users/zulip/repos","events_url":"https://api.github.com/users/zulip/events{/privacy}","received_events_url":"https://api.github.com/users/zulip/received_events","type":"Organization","site_admin":false},"repo":{"id":43160685,"name":"zulip","full_name":"zulip/zulip","owner":{"login":"zulip","id":4921959,"avatar_url":"https://avatars1.githubusercontent.com/u/4921959?v=3","gravatar_id":"","url":"https://api.github.com/users/zulip","html_url":"https://github.com/zulip","followers_url":"https://api.github.com/users/zulip/followers","following_url":"https://api.github.com/users/zulip/following{/other_user}","gists_url":"https://api.github.com/users/zulip/gists{/gist_id}","starred_url":"https://api.github.com/users/zulip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zulip/subscriptions","organizations_url":"https://api.github.com/users/zulip/orgs","repos_url":"https://api.github.com/users/zulip/repos","events_url":"https://api.github.com/users/zulip/events{/privacy}","received_events_url":"https://api.github.com/users/zulip/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zulip/zulip","description":"Zulip server - powerful open source group chat","fork":false,"url":"https://api.github.com/repos/zulip/zulip","forks_url":"https://api.github.com/repos/zulip/zulip/forks","keys_url":"https://api.github.com/repos/zulip/zulip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zulip/zulip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zulip/zulip/teams","hooks_url":"https://api.github.com/repos/zulip/zulip/hooks","issue_events_url":"https://api.github.com/repos/zulip/zulip/issues/events{/number}","events_url":"https://api.github.com/repos/zulip/zulip/events","assignees_url":"https://api.github.com/repos/zulip/zulip/assignees{/user}","branches_url":"https://api.github.com/repos/zulip/zulip/branches{/branch}","tags_url":"https://api.github.com/repos/zulip/zulip/tags","blobs_url":"https://api.github.com/repos/zulip/zulip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zulip/zulip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zulip/zulip/git/refs{/sha}","trees_url":"https://api.github.com/repos/zulip/zulip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zulip/zulip/statuses/{sha}","languages_url":"https://api.github.com/repos/zulip/zulip/languages","stargazers_url":"https://api.github.com/repos/zulip/zulip/stargazers","contributors_url":"https://api.github.com/repos/zulip/zulip/contributors","subscribers_url":"https://api.github.com/repos/zulip/zulip/subscribers","subscription_url":"https://api.github.com/repos/zulip/zulip/subscription","commits_url":"https://api.github.com/repos/zulip/zulip/commits{/sha}","git_commits_url":"https://api.github.com/repos/zulip/zulip/git/commits{/sha}","comments_url":"https://api.github.com/repos/zulip/zulip/comments{/number}","issue_comment_url":"https://api.github.com/repos/zulip/zulip/issues/comments{/number}","contents_url":"https://api.github.com/repos/zulip/zulip/contents/{+path}","compare_url":"https://api.github.com/repos/zulip/zulip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zulip/zulip/merges","archive_url":"https://api.github.com/repos/zulip/zulip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zulip/zulip/downloads","issues_url":"https://api.github.com/repos/zulip/zulip/issues{/number}","pulls_url":"https://api.github.com/repos/zulip/zulip/pulls{/number}","milestones_url":"https://api.github.com/repos/zulip/zulip/milestones{/number}","notifications_url":"https://api.github.com/repos/zulip/zulip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zulip/zulip/labels{/name}","releases_url":"https://api.github.com/repos/zulip/zulip/releases{/id}","deployments_url":"https://api.github.com/repos/zulip/zulip/deployments","created_at":"2015-09-25T16:37:25Z","updated_at":"2017-07-05T05:26:43Z","pushed_at":"2017-07-05T13:34:15Z","git_url":"git://github.com/zulip/zulip.git","ssh_url":"git@github.com:zulip/zulip.git","clone_url":"https://github.com/zulip/zulip.git","svn_url":"https://github.com/zulip/zulip","homepage":"","size":162422,"stargazers_count":4969,"watchers_count":4969,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1380,"mirror_url":null,"open_issues_count":871,"forks":1380,"open_issues":871,"watchers":4969,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip/pulls/5616"},"html":{"href":"https://github.com/zulip/zulip/pull/5616"},"issue":{"href":"https://api.github.com/repos/zulip/zulip/issues/5616"},"comments":{"href":"https://api.github.com/repos/zulip/zulip/issues/5616/comments"},"review_comments":{"href":"https://api.github.com/repos/zulip/zulip/pulls/5616/comments"},"review_comment":{"href":"https://api.github.com/repos/zulip/zulip/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zulip/zulip/pulls/5616/commits"},"statuses":{"href":"https://api.github.com/repos/zulip/zulip/statuses/943ffbe7bb076988936439aa9465a73bc7f270ce"}}}}
{"actor":{"display_login":"showell"}}