{"action":"created","comment":{"url":"https://api.github.com/repos/18F/web-design-standards/pulls/comments/133043265","pull_request_review_id":56182376,"id":133043265,"diff_hunk":"@@ -0,0 +1,114 @@\n+'use strict';\n+\n+const os = require('os');\n+const urlParse = require('url').parse;\n+const chromeLauncher = require('chrome-launcher');\n+const CDP = require('chrome-remote-interface');\n+const fractal = require('../fractal');\n+\n+const HOSTNAME = os.hostname().toLowerCase();\n+const REMOTE_CHROME_URL = process.env[ 'REMOTE_CHROME_URL' ];\n+\n+function launchChromeLocally (headless=true) {\n+  return chromeLauncher.launch({\n+    chromeFlags: [\n+      '--disable-gpu',\n+      headless ? '--headless' : '',\n+    ],\n+  });\n+}\n+\n+function getRemoteChrome () {\n+  const info = urlParse(REMOTE_CHROME_URL);\n+  if (info.protocol !== 'http:')\n+    throw new Error(`Unsupported protocol: ${info.protocol}`);\n+  return new Promise(resolve => {","path":"spec/chrome-fractal-tester.js","position":25,"original_position":25,"commit_id":"ca8b78efdd02ff043342a8cd54e13692e15db98b","original_commit_id":"ca8b78efdd02ff043342a8cd54e13692e15db98b","user":{"login":"toolness","id":124687,"avatar_url":"https://avatars2.githubusercontent.com/u/124687?v=4","gravatar_id":"","url":"https://api.github.com/users/toolness","html_url":"https://github.com/toolness","followers_url":"https://api.github.com/users/toolness/followers","following_url":"https://api.github.com/users/toolness/following{/other_user}","gists_url":"https://api.github.com/users/toolness/gists{/gist_id}","starred_url":"https://api.github.com/users/toolness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toolness/subscriptions","organizations_url":"https://api.github.com/users/toolness/orgs","repos_url":"https://api.github.com/users/toolness/repos","events_url":"https://api.github.com/users/toolness/events{/privacy}","received_events_url":"https://api.github.com/users/toolness/received_events","type":"User","site_admin":false},"body":"Hmm, this is just old code that's been moved to a new file, but that's a good point, I'm not sure why this isn't just a `Promise.resolve`! I'll change it.","created_at":"2017-08-14T19:44:49Z","updated_at":"2017-08-14T19:44:49Z","html_url":"https://github.com/18F/web-design-standards/pull/2100#discussion_r133043265","pull_request_url":"https://api.github.com/repos/18F/web-design-standards/pulls/2100","_links":{"self":{"href":"https://api.github.com/repos/18F/web-design-standards/pulls/comments/133043265"},"html":{"href":"https://github.com/18F/web-design-standards/pull/2100#discussion_r133043265"},"pull_request":{"href":"https://api.github.com/repos/18F/web-design-standards/pulls/2100"}}},"pull_request":{"url":"https://api.github.com/repos/18F/web-design-standards/pulls/2100","id":135171445,"html_url":"https://github.com/18F/web-design-standards/pull/2100","diff_url":"https://github.com/18F/web-design-standards/pull/2100.diff","patch_url":"https://github.com/18F/web-design-standards/pull/2100.patch","issue_url":"https://api.github.com/repos/18F/web-design-standards/issues/2100","number":2100,"state":"open","locked":false,"title":"Better headless chrome tests","user":{"login":"toolness","id":124687,"avatar_url":"https://avatars2.githubusercontent.com/u/124687?v=4","gravatar_id":"","url":"https://api.github.com/users/toolness","html_url":"https://github.com/toolness","followers_url":"https://api.github.com/users/toolness/followers","following_url":"https://api.github.com/users/toolness/following{/other_user}","gists_url":"https://api.github.com/users/toolness/gists{/gist_id}","starred_url":"https://api.github.com/users/toolness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toolness/subscriptions","organizations_url":"https://api.github.com/users/toolness/orgs","repos_url":"https://api.github.com/users/toolness/repos","events_url":"https://api.github.com/users/toolness/events{/privacy}","received_events_url":"https://api.github.com/users/toolness/received_events","type":"User","site_admin":false},"body":"This adds some neat stuff to our aXe and visual regression tests like:\r\n\r\n* Running the visual regression tests on both small and large desktop sizes (until now, we ran them only on small desktops)\r\n* Factoring out some of the code into separate modules to make everything more understandable and less spaghetti-like\r\n* Making `spec/visual-regression-tester.js` an executable script that can be used to directly execute visual regression tests, rather than requiring developers to run `mocha` with special environment variables\r\n* Actually documented how to use the tester in `CONTRIBUTING.md`.","created_at":"2017-08-10T16:43:34Z","updated_at":"2017-08-14T19:44:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"460ea3132af59d02f76ed36ee7c36fc0cabfab8c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/18F/web-design-standards/pulls/2100/commits","review_comments_url":"https://api.github.com/repos/18F/web-design-standards/pulls/2100/comments","review_comment_url":"https://api.github.com/repos/18F/web-design-standards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/18F/web-design-standards/issues/2100/comments","statuses_url":"https://api.github.com/repos/18F/web-design-standards/statuses/ca8b78efdd02ff043342a8cd54e13692e15db98b","head":{"label":"18F:better-headless-chrome-tests","ref":"better-headless-chrome-tests","sha":"ca8b78efdd02ff043342a8cd54e13692e15db98b","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars0.githubusercontent.com/u/6233994?v=4","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":35968578,"name":"web-design-standards","full_name":"18F/web-design-standards","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars0.githubusercontent.com/u/6233994?v=4","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/web-design-standards","description":"Open source UI components and visual style guide for U.S. government websites.","fork":false,"url":"https://api.github.com/repos/18F/web-design-standards","forks_url":"https://api.github.com/repos/18F/web-design-standards/forks","keys_url":"https://api.github.com/repos/18F/web-design-standards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/web-design-standards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/web-design-standards/teams","hooks_url":"https://api.github.com/repos/18F/web-design-standards/hooks","issue_events_url":"https://api.github.com/repos/18F/web-design-standards/issues/events{/number}","events_url":"https://api.github.com/repos/18F/web-design-standards/events","assignees_url":"https://api.github.com/repos/18F/web-design-standards/assignees{/user}","branches_url":"https://api.github.com/repos/18F/web-design-standards/branches{/branch}","tags_url":"https://api.github.com/repos/18F/web-design-standards/tags","blobs_url":"https://api.github.com/repos/18F/web-design-standards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/web-design-standards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/web-design-standards/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/web-design-standards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/web-design-standards/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/web-design-standards/languages","stargazers_url":"https://api.github.com/repos/18F/web-design-standards/stargazers","contributors_url":"https://api.github.com/repos/18F/web-design-standards/contributors","subscribers_url":"https://api.github.com/repos/18F/web-design-standards/subscribers","subscription_url":"https://api.github.com/repos/18F/web-design-standards/subscription","commits_url":"https://api.github.com/repos/18F/web-design-standards/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/web-design-standards/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/web-design-standards/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/web-design-standards/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/web-design-standards/contents/{+path}","compare_url":"https://api.github.com/repos/18F/web-design-standards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/web-design-standards/merges","archive_url":"https://api.github.com/repos/18F/web-design-standards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/web-design-standards/downloads","issues_url":"https://api.github.com/repos/18F/web-design-standards/issues{/number}","pulls_url":"https://api.github.com/repos/18F/web-design-standards/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/web-design-standards/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/web-design-standards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/web-design-standards/labels{/name}","releases_url":"https://api.github.com/repos/18F/web-design-standards/releases{/id}","deployments_url":"https://api.github.com/repos/18F/web-design-standards/deployments","created_at":"2015-05-20T19:10:10Z","updated_at":"2017-08-11T21:02:13Z","pushed_at":"2017-08-14T14:58:01Z","git_url":"git://github.com/18F/web-design-standards.git","ssh_url":"git@github.com:18F/web-design-standards.git","clone_url":"https://github.com/18F/web-design-standards.git","svn_url":"https://github.com/18F/web-design-standards","homepage":"https://standards.usa.gov","size":55356,"stargazers_count":4116,"watchers_count":4116,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":569,"mirror_url":null,"open_issues_count":251,"forks":569,"open_issues":251,"watchers":4116,"default_branch":"develop"}},"base":{"label":"18F:develop","ref":"develop","sha":"c7871cf373e4d7b6158ff6b2a45ead93b5f528c8","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars0.githubusercontent.com/u/6233994?v=4","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":35968578,"name":"web-design-standards","full_name":"18F/web-design-standards","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars0.githubusercontent.com/u/6233994?v=4","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/web-design-standards","description":"Open source UI components and visual style guide for U.S. government websites.","fork":false,"url":"https://api.github.com/repos/18F/web-design-standards","forks_url":"https://api.github.com/repos/18F/web-design-standards/forks","keys_url":"https://api.github.com/repos/18F/web-design-standards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/web-design-standards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/web-design-standards/teams","hooks_url":"https://api.github.com/repos/18F/web-design-standards/hooks","issue_events_url":"https://api.github.com/repos/18F/web-design-standards/issues/events{/number}","events_url":"https://api.github.com/repos/18F/web-design-standards/events","assignees_url":"https://api.github.com/repos/18F/web-design-standards/assignees{/user}","branches_url":"https://api.github.com/repos/18F/web-design-standards/branches{/branch}","tags_url":"https://api.github.com/repos/18F/web-design-standards/tags","blobs_url":"https://api.github.com/repos/18F/web-design-standards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/web-design-standards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/web-design-standards/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/web-design-standards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/web-design-standards/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/web-design-standards/languages","stargazers_url":"https://api.github.com/repos/18F/web-design-standards/stargazers","contributors_url":"https://api.github.com/repos/18F/web-design-standards/contributors","subscribers_url":"https://api.github.com/repos/18F/web-design-standards/subscribers","subscription_url":"https://api.github.com/repos/18F/web-design-standards/subscription","commits_url":"https://api.github.com/repos/18F/web-design-standards/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/web-design-standards/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/web-design-standards/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/web-design-standards/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/web-design-standards/contents/{+path}","compare_url":"https://api.github.com/repos/18F/web-design-standards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/web-design-standards/merges","archive_url":"https://api.github.com/repos/18F/web-design-standards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/web-design-standards/downloads","issues_url":"https://api.github.com/repos/18F/web-design-standards/issues{/number}","pulls_url":"https://api.github.com/repos/18F/web-design-standards/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/web-design-standards/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/web-design-standards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/web-design-standards/labels{/name}","releases_url":"https://api.github.com/repos/18F/web-design-standards/releases{/id}","deployments_url":"https://api.github.com/repos/18F/web-design-standards/deployments","created_at":"2015-05-20T19:10:10Z","updated_at":"2017-08-11T21:02:13Z","pushed_at":"2017-08-14T14:58:01Z","git_url":"git://github.com/18F/web-design-standards.git","ssh_url":"git@github.com:18F/web-design-standards.git","clone_url":"https://github.com/18F/web-design-standards.git","svn_url":"https://github.com/18F/web-design-standards","homepage":"https://standards.usa.gov","size":55356,"stargazers_count":4116,"watchers_count":4116,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":569,"mirror_url":null,"open_issues_count":251,"forks":569,"open_issues":251,"watchers":4116,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/18F/web-design-standards/pulls/2100"},"html":{"href":"https://github.com/18F/web-design-standards/pull/2100"},"issue":{"href":"https://api.github.com/repos/18F/web-design-standards/issues/2100"},"comments":{"href":"https://api.github.com/repos/18F/web-design-standards/issues/2100/comments"},"review_comments":{"href":"https://api.github.com/repos/18F/web-design-standards/pulls/2100/comments"},"review_comment":{"href":"https://api.github.com/repos/18F/web-design-standards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/18F/web-design-standards/pulls/2100/commits"},"statuses":{"href":"https://api.github.com/repos/18F/web-design-standards/statuses/ca8b78efdd02ff043342a8cd54e13692e15db98b"}}}}
{"actor":{"display_login":"toolness"}}