{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/pulls/comments/24075136","id":24075136,"diff_hunk":"@@ -0,0 +1,277 @@\n+'use strict';\n+\n+require('js/config.js');\n+require('js/utils.js');\n+require('unit/utils/mock_mozL10n.js');\n+require('js/screens/conversation_detail.js');\n+\n+suite('Tests ConversationDetail', function() {\n+  var modal, rearCamera, frontCamera, cameraContainer, callButton, subjectInput,\n+      counter;\n+\n+  const MAX_SUBJECT_SIZE = 124;\n+\n+  suiteSetup(function() {\n+    requireElement('elements/conversation_detail.html', 'conversation-detail');\n+    modal = document.getElementById('conversation-detail');\n+    rearCamera = modal.querySelector('input[value=\"camera-back\"]');\n+    frontCamera = modal.querySelector('input[value=\"camera-front\"]');\n+    callButton = modal.querySelector('.call');\n+    cameraContainer = modal.querySelector('.camera-container');\n+    subjectInput = modal.querySelector('input');\n+    counter = modal.querySelector('.counter');\n+    sinon.stub(Utils, 'onForeground', () => {\n+      return {\n+        then: function(resolve) {\n+          resolve();\n+        }\n+      }\n+    });\n+  });\n+\n+  suiteTeardown(function() {\n+    document.body.innerHTML = '';\n+    Utils.onForeground.restore();\n+  });\n+\n+  function dispatchTransitionendEvent() {","path":"test/unit/test_conversation_detail.js","position":37,"original_position":37,"commit_id":"a8940542654c28210b30cda071b935e07a62080a","original_commit_id":"a8940542654c28210b30cda071b935e07a62080a","user":{"login":"AntonioMA","id":1955672,"avatar_url":"https://avatars.githubusercontent.com/u/1955672?v=3","gravatar_id":"","url":"https://api.github.com/users/AntonioMA","html_url":"https://github.com/AntonioMA","followers_url":"https://api.github.com/users/AntonioMA/followers","following_url":"https://api.github.com/users/AntonioMA/following{/other_user}","gists_url":"https://api.github.com/users/AntonioMA/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonioMA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonioMA/subscriptions","organizations_url":"https://api.github.com/users/AntonioMA/orgs","repos_url":"https://api.github.com/users/AntonioMA/repos","events_url":"https://api.github.com/users/AntonioMA/events{/privacy}","received_events_url":"https://api.github.com/users/AntonioMA/received_events","type":"User","site_admin":false},"body":"Shouldn't this be dispatchTransitionEndEvent?\r\nI wasn't seeing the end and reading transitioned all the time :)","created_at":"2015-02-04T10:47:05Z","updated_at":"2015-02-04T10:47:05Z","html_url":"https://github.com/mozilla-b2g/firefoxos-loop-client/pull/550#discussion_r24075136","pull_request_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/pulls/550","_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/pulls/comments/24075136"},"html":{"href":"https://github.com/mozilla-b2g/firefoxos-loop-client/pull/550#discussion_r24075136"},"pull_request":{"href":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/pulls/550"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/pulls/550","id":28624516,"html_url":"https://github.com/mozilla-b2g/firefoxos-loop-client/pull/550","diff_url":"https://github.com/mozilla-b2g/firefoxos-loop-client/pull/550.diff","patch_url":"https://github.com/mozilla-b2g/firefoxos-loop-client/pull/550.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/issues/550","number":550,"state":"open","locked":false,"title":"Bug 1129347 - Add tests for conversation detail module","user":{"login":"crdlc","id":1722741,"avatar_url":"https://avatars.githubusercontent.com/u/1722741?v=3","gravatar_id":"","url":"https://api.github.com/users/crdlc","html_url":"https://github.com/crdlc","followers_url":"https://api.github.com/users/crdlc/followers","following_url":"https://api.github.com/users/crdlc/following{/other_user}","gists_url":"https://api.github.com/users/crdlc/gists{/gist_id}","starred_url":"https://api.github.com/users/crdlc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdlc/subscriptions","organizations_url":"https://api.github.com/users/crdlc/orgs","repos_url":"https://api.github.com/users/crdlc/repos","events_url":"https://api.github.com/users/crdlc/events{/privacy}","received_events_url":"https://api.github.com/users/crdlc/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-04T09:42:09Z","updated_at":"2015-02-04T10:47:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7fd9942ff1369299364fec037f248e9d6f498779","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/pulls/550/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/pulls/550/comments","review_comment_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/issues/550/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/statuses/a8940542654c28210b30cda071b935e07a62080a","head":{"label":"crdlc:bug-1129347","ref":"bug-1129347","sha":"a8940542654c28210b30cda071b935e07a62080a","user":{"login":"crdlc","id":1722741,"avatar_url":"https://avatars.githubusercontent.com/u/1722741?v=3","gravatar_id":"","url":"https://api.github.com/users/crdlc","html_url":"https://github.com/crdlc","followers_url":"https://api.github.com/users/crdlc/followers","following_url":"https://api.github.com/users/crdlc/following{/other_user}","gists_url":"https://api.github.com/users/crdlc/gists{/gist_id}","starred_url":"https://api.github.com/users/crdlc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdlc/subscriptions","organizations_url":"https://api.github.com/users/crdlc/orgs","repos_url":"https://api.github.com/users/crdlc/repos","events_url":"https://api.github.com/users/crdlc/events{/privacy}","received_events_url":"https://api.github.com/users/crdlc/received_events","type":"User","site_admin":false},"repo":{"id":24716420,"name":"firefoxos-loop-client","full_name":"crdlc/firefoxos-loop-client","owner":{"login":"crdlc","id":1722741,"avatar_url":"https://avatars.githubusercontent.com/u/1722741?v=3","gravatar_id":"","url":"https://api.github.com/users/crdlc","html_url":"https://github.com/crdlc","followers_url":"https://api.github.com/users/crdlc/followers","following_url":"https://api.github.com/users/crdlc/following{/other_user}","gists_url":"https://api.github.com/users/crdlc/gists{/gist_id}","starred_url":"https://api.github.com/users/crdlc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdlc/subscriptions","organizations_url":"https://api.github.com/users/crdlc/orgs","repos_url":"https://api.github.com/users/crdlc/repos","events_url":"https://api.github.com/users/crdlc/events{/privacy}","received_events_url":"https://api.github.com/users/crdlc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crdlc/firefoxos-loop-client","description":"Firefox OS client for the Loop service","fork":true,"url":"https://api.github.com/repos/crdlc/firefoxos-loop-client","forks_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/forks","keys_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/teams","hooks_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/hooks","issue_events_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/issues/events{/number}","events_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/events","assignees_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/assignees{/user}","branches_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/branches{/branch}","tags_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/tags","blobs_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/statuses/{sha}","languages_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/languages","stargazers_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/stargazers","contributors_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/contributors","subscribers_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/subscribers","subscription_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/subscription","commits_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/issues/comments/{number}","contents_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/contents/{+path}","compare_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/merges","archive_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/downloads","issues_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/issues{/number}","pulls_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/pulls{/number}","milestones_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/milestones{/number}","notifications_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/labels{/name}","releases_url":"https://api.github.com/repos/crdlc/firefoxos-loop-client/releases{/id}","created_at":"2014-10-02T11:29:10Z","updated_at":"2014-09-28T17:26:13Z","pushed_at":"2015-02-04T09:42:02Z","git_url":"git://github.com/crdlc/firefoxos-loop-client.git","ssh_url":"git@github.com:crdlc/firefoxos-loop-client.git","clone_url":"https://github.com/crdlc/firefoxos-loop-client.git","svn_url":"https://github.com/crdlc/firefoxos-loop-client","homepage":null,"size":14062,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"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":"mozilla-b2g:master","ref":"master","sha":"882e733baaa327a2ffd4b6682701a6ce9185bb0e","user":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"repo":{"id":18225071,"name":"firefoxos-loop-client","full_name":"mozilla-b2g/firefoxos-loop-client","owner":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-b2g/firefoxos-loop-client","description":"Firefox OS client for the Loop service","fork":false,"url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client","forks_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/forks","keys_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/teams","hooks_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/hooks","issue_events_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/events","assignees_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/tags","blobs_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/languages","stargazers_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/stargazers","contributors_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/contributors","subscribers_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/subscribers","subscription_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/subscription","commits_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/merges","archive_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/downloads","issues_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/releases{/id}","created_at":"2014-03-28T20:10:24Z","updated_at":"2015-02-03T14:54:52Z","pushed_at":"2015-02-03T14:56:41Z","git_url":"git://github.com/mozilla-b2g/firefoxos-loop-client.git","ssh_url":"git@github.com:mozilla-b2g/firefoxos-loop-client.git","clone_url":"https://github.com/mozilla-b2g/firefoxos-loop-client.git","svn_url":"https://github.com/mozilla-b2g/firefoxos-loop-client","homepage":null,"size":17825,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":35,"forks":37,"open_issues":35,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/pulls/550"},"html":{"href":"https://github.com/mozilla-b2g/firefoxos-loop-client/pull/550"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/issues/550"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/issues/550/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/pulls/550/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/pulls/550/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/firefoxos-loop-client/statuses/a8940542654c28210b30cda071b935e07a62080a"}}}}