{"action":"created","comment":{"url":"https://api.github.com/repos/mipengine/mip2/pulls/comments/211129982","pull_request_review_id":147487686,"id":211129982,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTEyOTk4Mg==","diff_hunk":"@@ -110,6 +110,34 @@ describe('mip-video', function () {\n       let videoEl = mipVideo.querySelector('video')\n       expect(videoEl.currentTime).to.equal(2)\n     })\n+    // 由于谷歌浏览器对video播放有严格的限制（只能人为play，不能js模拟），所以跳过测试。\n+    it.skip('should pause when the pause button is clicked', function () {\n+      let button = document.createElement('button')\n+      button.setAttribute('on', 'click:mip-video-test.pause')\n+      button.textContent = 'click to pause the video'\n+      document.body.appendChild(button)\n+\n+      let videoEl = mipVideo.querySelector('video')\n+      videoEl.play()\n+      let event = document.createEvent('MouseEvents')\n+      event.initEvent('click', true, true)\n+      button.dispatchEvent(event)\n+      expect(videoEl.paused).to.be.true\n+    })\n+\n+    it.skip('should play when the play button is clicked', function () {\n+      let button = document.createElement('button')\n+      button.setAttribute('on', 'click:mip-video-test.play')\n+      button.textContent = 'click to play the video'\n+      document.body.appendChild(button)\n+\n+      let videoEl = mipVideo.querySelector('video')\n+      videoEl.pause()\n+      let event = document.creaźeEvent('MouseEvents')","path":"packages/mip/test/specs/components/mip-video.spec.js","position":27,"original_position":27,"commit_id":"8782c55ed4125ae6df434f1d978de1b0e4da1d55","original_commit_id":"8782c55ed4125ae6df434f1d978de1b0e4da1d55","user":{"login":"PengXing","id":527244,"node_id":"MDQ6VXNlcjUyNzI0NA==","avatar_url":"https://avatars3.githubusercontent.com/u/527244?v=4","gravatar_id":"","url":"https://api.github.com/users/PengXing","html_url":"https://github.com/PengXing","followers_url":"https://api.github.com/users/PengXing/followers","following_url":"https://api.github.com/users/PengXing/following{/other_user}","gists_url":"https://api.github.com/users/PengXing/gists{/gist_id}","starred_url":"https://api.github.com/users/PengXing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PengXing/subscriptions","organizations_url":"https://api.github.com/users/PengXing/orgs","repos_url":"https://api.github.com/users/PengXing/repos","events_url":"https://api.github.com/users/PengXing/events{/privacy}","received_events_url":"https://api.github.com/users/PengXing/received_events","type":"User","site_admin":false},"body":"`creaźeEvent ` 这个是乱码，还是写错了？","created_at":"2018-08-20T02:43:40Z","updated_at":"2018-08-20T02:44:21Z","html_url":"https://github.com/mipengine/mip2/pull/196#discussion_r211129982","pull_request_url":"https://api.github.com/repos/mipengine/mip2/pulls/196","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mipengine/mip2/pulls/comments/211129982"},"html":{"href":"https://github.com/mipengine/mip2/pull/196#discussion_r211129982"},"pull_request":{"href":"https://api.github.com/repos/mipengine/mip2/pulls/196"}}},"pull_request":{"url":"https://api.github.com/repos/mipengine/mip2/pulls/196","id":209396104,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5Mzk2MTA0","html_url":"https://github.com/mipengine/mip2/pull/196","diff_url":"https://github.com/mipengine/mip2/pull/196.diff","patch_url":"https://github.com/mipengine/mip2/pull/196.patch","issue_url":"https://api.github.com/repos/mipengine/mip2/issues/196","number":196,"state":"open","locked":false,"title":"[提测] mip video支持play和pause方法","user":{"login":"craigchencc","id":41358202,"node_id":"MDQ6VXNlcjQxMzU4MjAy","avatar_url":"https://avatars3.githubusercontent.com/u/41358202?v=4","gravatar_id":"","url":"https://api.github.com/users/craigchencc","html_url":"https://github.com/craigchencc","followers_url":"https://api.github.com/users/craigchencc/followers","following_url":"https://api.github.com/users/craigchencc/following{/other_user}","gists_url":"https://api.github.com/users/craigchencc/gists{/gist_id}","starred_url":"https://api.github.com/users/craigchencc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigchencc/subscriptions","organizations_url":"https://api.github.com/users/craigchencc/orgs","repos_url":"https://api.github.com/users/craigchencc/repos","events_url":"https://api.github.com/users/craigchencc/events{/privacy}","received_events_url":"https://api.github.com/users/craigchencc/received_events","type":"User","site_admin":false},"body":"**相关 ISSUE:** （ISSUE 链接地址）\r\n#160 \r\n**1、升级点** （清晰准确的描述升级的功能点）\r\n\r\nmip-video支持play和pause方法\r\n\r\n**2、影响范围** （描述该需求上线会影响什么功能）\r\n\r\n新增功能，不会影响线上功能\r\n\r\n**3、自测 Checklist**\r\n\r\nexamples/builtin-components下的mip-video.html中有个视频下方具有播放、暂停和跳转按钮。\r\n\r\n**4、需要覆盖的场景和 Case**\r\n- [x] 是否覆盖了 sf 打开 MIP 页\r\n- [x] 是否验证了极速服务 MIP 页面效果\r\n\r\n**5、自测机型和浏览器**\r\n- [x] 是否覆盖了 iOS 系统手机\r\n- [x] 是否覆盖了 Android 系统手机\r\n- [x] 是否覆盖了 iPhone 版式浏览器（比如 QQ、UC、Chrome、Safari、安卓自带浏览器）\r\n- [x] 是否覆盖了手百\r\n","created_at":"2018-08-20T02:19:25Z","updated_at":"2018-08-20T02:44:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6837fae142dd306edaf3c130905ac857e55e265","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mipengine/mip2/pulls/196/commits","review_comments_url":"https://api.github.com/repos/mipengine/mip2/pulls/196/comments","review_comment_url":"https://api.github.com/repos/mipengine/mip2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mipengine/mip2/issues/196/comments","statuses_url":"https://api.github.com/repos/mipengine/mip2/statuses/8782c55ed4125ae6df434f1d978de1b0e4da1d55","head":{"label":"mipengine:dev-mip-video","ref":"dev-mip-video","sha":"8782c55ed4125ae6df434f1d978de1b0e4da1d55","user":{"login":"mipengine","id":19966931,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5OTY2OTMx","avatar_url":"https://avatars0.githubusercontent.com/u/19966931?v=4","gravatar_id":"","url":"https://api.github.com/users/mipengine","html_url":"https://github.com/mipengine","followers_url":"https://api.github.com/users/mipengine/followers","following_url":"https://api.github.com/users/mipengine/following{/other_user}","gists_url":"https://api.github.com/users/mipengine/gists{/gist_id}","starred_url":"https://api.github.com/users/mipengine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mipengine/subscriptions","organizations_url":"https://api.github.com/users/mipengine/orgs","repos_url":"https://api.github.com/users/mipengine/repos","events_url":"https://api.github.com/users/mipengine/events{/privacy}","received_events_url":"https://api.github.com/users/mipengine/received_events","type":"Organization","site_admin":false},"repo":{"id":135113299,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUxMTMyOTk=","name":"mip2","full_name":"mipengine/mip2","owner":{"login":"mipengine","id":19966931,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5OTY2OTMx","avatar_url":"https://avatars0.githubusercontent.com/u/19966931?v=4","gravatar_id":"","url":"https://api.github.com/users/mipengine","html_url":"https://github.com/mipengine","followers_url":"https://api.github.com/users/mipengine/followers","following_url":"https://api.github.com/users/mipengine/following{/other_user}","gists_url":"https://api.github.com/users/mipengine/gists{/gist_id}","starred_url":"https://api.github.com/users/mipengine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mipengine/subscriptions","organizations_url":"https://api.github.com/users/mipengine/orgs","repos_url":"https://api.github.com/users/mipengine/repos","events_url":"https://api.github.com/users/mipengine/events{/privacy}","received_events_url":"https://api.github.com/users/mipengine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mipengine/mip2","description":"mip2 ","fork":false,"url":"https://api.github.com/repos/mipengine/mip2","forks_url":"https://api.github.com/repos/mipengine/mip2/forks","keys_url":"https://api.github.com/repos/mipengine/mip2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mipengine/mip2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mipengine/mip2/teams","hooks_url":"https://api.github.com/repos/mipengine/mip2/hooks","issue_events_url":"https://api.github.com/repos/mipengine/mip2/issues/events{/number}","events_url":"https://api.github.com/repos/mipengine/mip2/events","assignees_url":"https://api.github.com/repos/mipengine/mip2/assignees{/user}","branches_url":"https://api.github.com/repos/mipengine/mip2/branches{/branch}","tags_url":"https://api.github.com/repos/mipengine/mip2/tags","blobs_url":"https://api.github.com/repos/mipengine/mip2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mipengine/mip2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mipengine/mip2/git/refs{/sha}","trees_url":"https://api.github.com/repos/mipengine/mip2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mipengine/mip2/statuses/{sha}","languages_url":"https://api.github.com/repos/mipengine/mip2/languages","stargazers_url":"https://api.github.com/repos/mipengine/mip2/stargazers","contributors_url":"https://api.github.com/repos/mipengine/mip2/contributors","subscribers_url":"https://api.github.com/repos/mipengine/mip2/subscribers","subscription_url":"https://api.github.com/repos/mipengine/mip2/subscription","commits_url":"https://api.github.com/repos/mipengine/mip2/commits{/sha}","git_commits_url":"https://api.github.com/repos/mipengine/mip2/git/commits{/sha}","comments_url":"https://api.github.com/repos/mipengine/mip2/comments{/number}","issue_comment_url":"https://api.github.com/repos/mipengine/mip2/issues/comments{/number}","contents_url":"https://api.github.com/repos/mipengine/mip2/contents/{+path}","compare_url":"https://api.github.com/repos/mipengine/mip2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mipengine/mip2/merges","archive_url":"https://api.github.com/repos/mipengine/mip2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mipengine/mip2/downloads","issues_url":"https://api.github.com/repos/mipengine/mip2/issues{/number}","pulls_url":"https://api.github.com/repos/mipengine/mip2/pulls{/number}","milestones_url":"https://api.github.com/repos/mipengine/mip2/milestones{/number}","notifications_url":"https://api.github.com/repos/mipengine/mip2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mipengine/mip2/labels{/name}","releases_url":"https://api.github.com/repos/mipengine/mip2/releases{/id}","deployments_url":"https://api.github.com/repos/mipengine/mip2/deployments","created_at":"2018-05-28T05:28:42Z","updated_at":"2018-08-18T21:46:38Z","pushed_at":"2018-08-20T02:30:38Z","git_url":"git://github.com/mipengine/mip2.git","ssh_url":"git@github.com:mipengine/mip2.git","clone_url":"https://github.com/mipengine/mip2.git","svn_url":"https://github.com/mipengine/mip2","homepage":null,"size":12358,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":14,"open_issues":21,"watchers":21,"default_branch":"dev"}},"base":{"label":"mipengine:dev","ref":"dev","sha":"29d037813ab9e20ec0241d7f3485d93787e233e5","user":{"login":"mipengine","id":19966931,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5OTY2OTMx","avatar_url":"https://avatars0.githubusercontent.com/u/19966931?v=4","gravatar_id":"","url":"https://api.github.com/users/mipengine","html_url":"https://github.com/mipengine","followers_url":"https://api.github.com/users/mipengine/followers","following_url":"https://api.github.com/users/mipengine/following{/other_user}","gists_url":"https://api.github.com/users/mipengine/gists{/gist_id}","starred_url":"https://api.github.com/users/mipengine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mipengine/subscriptions","organizations_url":"https://api.github.com/users/mipengine/orgs","repos_url":"https://api.github.com/users/mipengine/repos","events_url":"https://api.github.com/users/mipengine/events{/privacy}","received_events_url":"https://api.github.com/users/mipengine/received_events","type":"Organization","site_admin":false},"repo":{"id":135113299,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUxMTMyOTk=","name":"mip2","full_name":"mipengine/mip2","owner":{"login":"mipengine","id":19966931,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5OTY2OTMx","avatar_url":"https://avatars0.githubusercontent.com/u/19966931?v=4","gravatar_id":"","url":"https://api.github.com/users/mipengine","html_url":"https://github.com/mipengine","followers_url":"https://api.github.com/users/mipengine/followers","following_url":"https://api.github.com/users/mipengine/following{/other_user}","gists_url":"https://api.github.com/users/mipengine/gists{/gist_id}","starred_url":"https://api.github.com/users/mipengine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mipengine/subscriptions","organizations_url":"https://api.github.com/users/mipengine/orgs","repos_url":"https://api.github.com/users/mipengine/repos","events_url":"https://api.github.com/users/mipengine/events{/privacy}","received_events_url":"https://api.github.com/users/mipengine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mipengine/mip2","description":"mip2 ","fork":false,"url":"https://api.github.com/repos/mipengine/mip2","forks_url":"https://api.github.com/repos/mipengine/mip2/forks","keys_url":"https://api.github.com/repos/mipengine/mip2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mipengine/mip2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mipengine/mip2/teams","hooks_url":"https://api.github.com/repos/mipengine/mip2/hooks","issue_events_url":"https://api.github.com/repos/mipengine/mip2/issues/events{/number}","events_url":"https://api.github.com/repos/mipengine/mip2/events","assignees_url":"https://api.github.com/repos/mipengine/mip2/assignees{/user}","branches_url":"https://api.github.com/repos/mipengine/mip2/branches{/branch}","tags_url":"https://api.github.com/repos/mipengine/mip2/tags","blobs_url":"https://api.github.com/repos/mipengine/mip2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mipengine/mip2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mipengine/mip2/git/refs{/sha}","trees_url":"https://api.github.com/repos/mipengine/mip2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mipengine/mip2/statuses/{sha}","languages_url":"https://api.github.com/repos/mipengine/mip2/languages","stargazers_url":"https://api.github.com/repos/mipengine/mip2/stargazers","contributors_url":"https://api.github.com/repos/mipengine/mip2/contributors","subscribers_url":"https://api.github.com/repos/mipengine/mip2/subscribers","subscription_url":"https://api.github.com/repos/mipengine/mip2/subscription","commits_url":"https://api.github.com/repos/mipengine/mip2/commits{/sha}","git_commits_url":"https://api.github.com/repos/mipengine/mip2/git/commits{/sha}","comments_url":"https://api.github.com/repos/mipengine/mip2/comments{/number}","issue_comment_url":"https://api.github.com/repos/mipengine/mip2/issues/comments{/number}","contents_url":"https://api.github.com/repos/mipengine/mip2/contents/{+path}","compare_url":"https://api.github.com/repos/mipengine/mip2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mipengine/mip2/merges","archive_url":"https://api.github.com/repos/mipengine/mip2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mipengine/mip2/downloads","issues_url":"https://api.github.com/repos/mipengine/mip2/issues{/number}","pulls_url":"https://api.github.com/repos/mipengine/mip2/pulls{/number}","milestones_url":"https://api.github.com/repos/mipengine/mip2/milestones{/number}","notifications_url":"https://api.github.com/repos/mipengine/mip2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mipengine/mip2/labels{/name}","releases_url":"https://api.github.com/repos/mipengine/mip2/releases{/id}","deployments_url":"https://api.github.com/repos/mipengine/mip2/deployments","created_at":"2018-05-28T05:28:42Z","updated_at":"2018-08-18T21:46:38Z","pushed_at":"2018-08-20T02:30:38Z","git_url":"git://github.com/mipengine/mip2.git","ssh_url":"git@github.com:mipengine/mip2.git","clone_url":"https://github.com/mipengine/mip2.git","svn_url":"https://github.com/mipengine/mip2","homepage":null,"size":12358,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":14,"open_issues":21,"watchers":21,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/mipengine/mip2/pulls/196"},"html":{"href":"https://github.com/mipengine/mip2/pull/196"},"issue":{"href":"https://api.github.com/repos/mipengine/mip2/issues/196"},"comments":{"href":"https://api.github.com/repos/mipengine/mip2/issues/196/comments"},"review_comments":{"href":"https://api.github.com/repos/mipengine/mip2/pulls/196/comments"},"review_comment":{"href":"https://api.github.com/repos/mipengine/mip2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mipengine/mip2/pulls/196/commits"},"statuses":{"href":"https://api.github.com/repos/mipengine/mip2/statuses/8782c55ed4125ae6df434f1d978de1b0e4da1d55"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"PengXing"}}