{"action":"created","comment":{"url":"https://api.github.com/repos/DevExpress/testcafe/pulls/comments/54856334","id":54856334,"diff_hunk":"@@ -0,0 +1,42 @@\n+var expect = require('chai').expect;\r\n+\r\n+\r\n+describe('Upload', function () {\r\n+    it('Should upload a file', function () {\r\n+        return runTests('testcafe-fixtures/upload.test.js', 'Upload a file');\r\n+    });\r\n+\r\n+    it('Should upload multiple files', function () {\r\n+        return runTests('testcafe-fixtures/upload.test.js', 'Upload multiple files');\r\n+    });\r\n+\r\n+    it('Should fail when uploading a non-existent file', function () {\r\n+        return runTests('testcafe-fixtures/upload.test.js', 'Upload a non-existent file - should fail', { shouldFail: true })\r\n+            .catch(function (err) {\r\n+                expect(err).contains('fake.jpg');\r\n+            });\r\n+    });\r\n+\r\n+    it('Should fail when uploading multiple files including non-existent files', function () {\r\n+        return runTests('testcafe-fixtures/upload.test.js', 'Upload multiple files inc. non-existent - should fail', { shouldFail: true })\r\n+            .catch(function (err) {\r\n+                expect(err).contains('fake1.jpg');\r\n+                expect(err).contains('fake2.jpg');\r\n+                expect(err).not.contains('text1.txt');\r\n+            });\r\n+    });\r\n+\r\n+    describe('Regression', function () {\r\n+        it('Should upload files with an added input', function () {\r\n+            return runTests('testcafe-fixtures/regression.test.js', 'Upload by using an added element');\r\n+        });\r\n+\r\n+        it('Should upload files with a replaced input', function () {\r\n+            return runTests('testcafe-fixtures/regression.test.js', 'Upload by using a replaced element');\r\n+        });\r\n+\r\n+        it('Shouldn\\'t upload files with a removed input', function () {\r","path":"test/functional/fixtures/upload/test.js","position":38,"original_position":38,"commit_id":"e23b65cddd0358fe1080f3f90b0418801b97f0e1","original_commit_id":"e23b65cddd0358fe1080f3f90b0418801b97f0e1","user":{"login":"inikulin","id":453071,"avatar_url":"https://avatars.githubusercontent.com/u/453071?v=3","gravatar_id":"","url":"https://api.github.com/users/inikulin","html_url":"https://github.com/inikulin","followers_url":"https://api.github.com/users/inikulin/followers","following_url":"https://api.github.com/users/inikulin/following{/other_user}","gists_url":"https://api.github.com/users/inikulin/gists{/gist_id}","starred_url":"https://api.github.com/users/inikulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inikulin/subscriptions","organizations_url":"https://api.github.com/users/inikulin/orgs","repos_url":"https://api.github.com/users/inikulin/repos","events_url":"https://api.github.com/users/inikulin/events{/privacy}","received_events_url":"https://api.github.com/users/inikulin/received_events","type":"User","site_admin":false},"body":"Use double quotes here to avoid escaping:\r\n```js\r\n```","created_at":"2016-03-03T09:45:16Z","updated_at":"2016-03-03T09:45:16Z","html_url":"https://github.com/DevExpress/testcafe/pull/339#discussion_r54856334","pull_request_url":"https://api.github.com/repos/DevExpress/testcafe/pulls/339","_links":{"self":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/comments/54856334"},"html":{"href":"https://github.com/DevExpress/testcafe/pull/339#discussion_r54856334"},"pull_request":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/339"}}},"pull_request":{"url":"https://api.github.com/repos/DevExpress/testcafe/pulls/339","id":58765737,"html_url":"https://github.com/DevExpress/testcafe/pull/339","diff_url":"https://github.com/DevExpress/testcafe/pull/339.diff","patch_url":"https://github.com/DevExpress/testcafe/pull/339.patch","issue_url":"https://api.github.com/repos/DevExpress/testcafe/issues/339","number":339,"state":"open","locked":false,"title":"Added functional tests for upload (closes  #293)","user":{"login":"georgiy-abbasov","id":15088565,"avatar_url":"https://avatars.githubusercontent.com/u/15088565?v=3","gravatar_id":"","url":"https://api.github.com/users/georgiy-abbasov","html_url":"https://github.com/georgiy-abbasov","followers_url":"https://api.github.com/users/georgiy-abbasov/followers","following_url":"https://api.github.com/users/georgiy-abbasov/following{/other_user}","gists_url":"https://api.github.com/users/georgiy-abbasov/gists{/gist_id}","starred_url":"https://api.github.com/users/georgiy-abbasov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgiy-abbasov/subscriptions","organizations_url":"https://api.github.com/users/georgiy-abbasov/orgs","repos_url":"https://api.github.com/users/georgiy-abbasov/repos","events_url":"https://api.github.com/users/georgiy-abbasov/events{/privacy}","received_events_url":"https://api.github.com/users/georgiy-abbasov/received_events","type":"User","site_admin":false},"body":"\\cc @AlexanderMoskovkin, @miherlosev\r\nPR","created_at":"2016-02-09T15:49:42Z","updated_at":"2016-03-03T09:45:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba4ae0d66ec1e95c864dde2101957cb2b941bfe5","assignee":{"login":"georgiy-abbasov","id":15088565,"avatar_url":"https://avatars.githubusercontent.com/u/15088565?v=3","gravatar_id":"","url":"https://api.github.com/users/georgiy-abbasov","html_url":"https://github.com/georgiy-abbasov","followers_url":"https://api.github.com/users/georgiy-abbasov/followers","following_url":"https://api.github.com/users/georgiy-abbasov/following{/other_user}","gists_url":"https://api.github.com/users/georgiy-abbasov/gists{/gist_id}","starred_url":"https://api.github.com/users/georgiy-abbasov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgiy-abbasov/subscriptions","organizations_url":"https://api.github.com/users/georgiy-abbasov/orgs","repos_url":"https://api.github.com/users/georgiy-abbasov/repos","events_url":"https://api.github.com/users/georgiy-abbasov/events{/privacy}","received_events_url":"https://api.github.com/users/georgiy-abbasov/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/DevExpress/testcafe/pulls/339/commits","review_comments_url":"https://api.github.com/repos/DevExpress/testcafe/pulls/339/comments","review_comment_url":"https://api.github.com/repos/DevExpress/testcafe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DevExpress/testcafe/issues/339/comments","statuses_url":"https://api.github.com/repos/DevExpress/testcafe/statuses/e23b65cddd0358fe1080f3f90b0418801b97f0e1","head":{"label":"georgiy-abbasov:upload-functional-tests","ref":"upload-functional-tests","sha":"e23b65cddd0358fe1080f3f90b0418801b97f0e1","user":{"login":"georgiy-abbasov","id":15088565,"avatar_url":"https://avatars.githubusercontent.com/u/15088565?v=3","gravatar_id":"","url":"https://api.github.com/users/georgiy-abbasov","html_url":"https://github.com/georgiy-abbasov","followers_url":"https://api.github.com/users/georgiy-abbasov/followers","following_url":"https://api.github.com/users/georgiy-abbasov/following{/other_user}","gists_url":"https://api.github.com/users/georgiy-abbasov/gists{/gist_id}","starred_url":"https://api.github.com/users/georgiy-abbasov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgiy-abbasov/subscriptions","organizations_url":"https://api.github.com/users/georgiy-abbasov/orgs","repos_url":"https://api.github.com/users/georgiy-abbasov/repos","events_url":"https://api.github.com/users/georgiy-abbasov/events{/privacy}","received_events_url":"https://api.github.com/users/georgiy-abbasov/received_events","type":"User","site_admin":false},"repo":{"id":44104781,"name":"testcafe-phoenix","full_name":"georgiy-abbasov/testcafe-phoenix","owner":{"login":"georgiy-abbasov","id":15088565,"avatar_url":"https://avatars.githubusercontent.com/u/15088565?v=3","gravatar_id":"","url":"https://api.github.com/users/georgiy-abbasov","html_url":"https://github.com/georgiy-abbasov","followers_url":"https://api.github.com/users/georgiy-abbasov/followers","following_url":"https://api.github.com/users/georgiy-abbasov/following{/other_user}","gists_url":"https://api.github.com/users/georgiy-abbasov/gists{/gist_id}","starred_url":"https://api.github.com/users/georgiy-abbasov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgiy-abbasov/subscriptions","organizations_url":"https://api.github.com/users/georgiy-abbasov/orgs","repos_url":"https://api.github.com/users/georgiy-abbasov/repos","events_url":"https://api.github.com/users/georgiy-abbasov/events{/privacy}","received_events_url":"https://api.github.com/users/georgiy-abbasov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/georgiy-abbasov/testcafe-phoenix","description":"","fork":true,"url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix","forks_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/forks","keys_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/teams","hooks_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/hooks","issue_events_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/issues/events{/number}","events_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/events","assignees_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/assignees{/user}","branches_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/branches{/branch}","tags_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/tags","blobs_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/git/refs{/sha}","trees_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/statuses/{sha}","languages_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/languages","stargazers_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/stargazers","contributors_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/contributors","subscribers_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/subscribers","subscription_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/subscription","commits_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/commits{/sha}","git_commits_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/git/commits{/sha}","comments_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/comments{/number}","issue_comment_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/issues/comments{/number}","contents_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/contents/{+path}","compare_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/merges","archive_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/downloads","issues_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/issues{/number}","pulls_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/pulls{/number}","milestones_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/milestones{/number}","notifications_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/labels{/name}","releases_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/releases{/id}","deployments_url":"https://api.github.com/repos/georgiy-abbasov/testcafe-phoenix/deployments","created_at":"2015-10-12T12:04:29Z","updated_at":"2016-01-12T12:11:49Z","pushed_at":"2016-03-03T09:11:05Z","git_url":"git://github.com/georgiy-abbasov/testcafe-phoenix.git","ssh_url":"git@github.com:georgiy-abbasov/testcafe-phoenix.git","clone_url":"https://github.com/georgiy-abbasov/testcafe-phoenix.git","svn_url":"https://github.com/georgiy-abbasov/testcafe-phoenix","homepage":null,"size":24730,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"DevExpress:master","ref":"master","sha":"526852384aff4b3554ae6d3c091d05c7c0b0b0f4","user":{"login":"DevExpress","id":4243232,"avatar_url":"https://avatars.githubusercontent.com/u/4243232?v=3","gravatar_id":"","url":"https://api.github.com/users/DevExpress","html_url":"https://github.com/DevExpress","followers_url":"https://api.github.com/users/DevExpress/followers","following_url":"https://api.github.com/users/DevExpress/following{/other_user}","gists_url":"https://api.github.com/users/DevExpress/gists{/gist_id}","starred_url":"https://api.github.com/users/DevExpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevExpress/subscriptions","organizations_url":"https://api.github.com/users/DevExpress/orgs","repos_url":"https://api.github.com/users/DevExpress/repos","events_url":"https://api.github.com/users/DevExpress/events{/privacy}","received_events_url":"https://api.github.com/users/DevExpress/received_events","type":"Organization","site_admin":false},"repo":{"id":34262857,"name":"testcafe","full_name":"DevExpress/testcafe","owner":{"login":"DevExpress","id":4243232,"avatar_url":"https://avatars.githubusercontent.com/u/4243232?v=3","gravatar_id":"","url":"https://api.github.com/users/DevExpress","html_url":"https://github.com/DevExpress","followers_url":"https://api.github.com/users/DevExpress/followers","following_url":"https://api.github.com/users/DevExpress/following{/other_user}","gists_url":"https://api.github.com/users/DevExpress/gists{/gist_id}","starred_url":"https://api.github.com/users/DevExpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevExpress/subscriptions","organizations_url":"https://api.github.com/users/DevExpress/orgs","repos_url":"https://api.github.com/users/DevExpress/repos","events_url":"https://api.github.com/users/DevExpress/events{/privacy}","received_events_url":"https://api.github.com/users/DevExpress/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DevExpress/testcafe","description":"","fork":false,"url":"https://api.github.com/repos/DevExpress/testcafe","forks_url":"https://api.github.com/repos/DevExpress/testcafe/forks","keys_url":"https://api.github.com/repos/DevExpress/testcafe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DevExpress/testcafe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DevExpress/testcafe/teams","hooks_url":"https://api.github.com/repos/DevExpress/testcafe/hooks","issue_events_url":"https://api.github.com/repos/DevExpress/testcafe/issues/events{/number}","events_url":"https://api.github.com/repos/DevExpress/testcafe/events","assignees_url":"https://api.github.com/repos/DevExpress/testcafe/assignees{/user}","branches_url":"https://api.github.com/repos/DevExpress/testcafe/branches{/branch}","tags_url":"https://api.github.com/repos/DevExpress/testcafe/tags","blobs_url":"https://api.github.com/repos/DevExpress/testcafe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DevExpress/testcafe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DevExpress/testcafe/git/refs{/sha}","trees_url":"https://api.github.com/repos/DevExpress/testcafe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DevExpress/testcafe/statuses/{sha}","languages_url":"https://api.github.com/repos/DevExpress/testcafe/languages","stargazers_url":"https://api.github.com/repos/DevExpress/testcafe/stargazers","contributors_url":"https://api.github.com/repos/DevExpress/testcafe/contributors","subscribers_url":"https://api.github.com/repos/DevExpress/testcafe/subscribers","subscription_url":"https://api.github.com/repos/DevExpress/testcafe/subscription","commits_url":"https://api.github.com/repos/DevExpress/testcafe/commits{/sha}","git_commits_url":"https://api.github.com/repos/DevExpress/testcafe/git/commits{/sha}","comments_url":"https://api.github.com/repos/DevExpress/testcafe/comments{/number}","issue_comment_url":"https://api.github.com/repos/DevExpress/testcafe/issues/comments{/number}","contents_url":"https://api.github.com/repos/DevExpress/testcafe/contents/{+path}","compare_url":"https://api.github.com/repos/DevExpress/testcafe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DevExpress/testcafe/merges","archive_url":"https://api.github.com/repos/DevExpress/testcafe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DevExpress/testcafe/downloads","issues_url":"https://api.github.com/repos/DevExpress/testcafe/issues{/number}","pulls_url":"https://api.github.com/repos/DevExpress/testcafe/pulls{/number}","milestones_url":"https://api.github.com/repos/DevExpress/testcafe/milestones{/number}","notifications_url":"https://api.github.com/repos/DevExpress/testcafe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DevExpress/testcafe/labels{/name}","releases_url":"https://api.github.com/repos/DevExpress/testcafe/releases{/id}","deployments_url":"https://api.github.com/repos/DevExpress/testcafe/deployments","created_at":"2015-04-20T13:43:28Z","updated_at":"2016-01-11T10:06:34Z","pushed_at":"2016-03-03T09:11:05Z","git_url":"git://github.com/DevExpress/testcafe.git","ssh_url":"git@github.com:DevExpress/testcafe.git","clone_url":"https://github.com/DevExpress/testcafe.git","svn_url":"https://github.com/DevExpress/testcafe","homepage":null,"size":24844,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":54,"forks":11,"open_issues":54,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/339"},"html":{"href":"https://github.com/DevExpress/testcafe/pull/339"},"issue":{"href":"https://api.github.com/repos/DevExpress/testcafe/issues/339"},"comments":{"href":"https://api.github.com/repos/DevExpress/testcafe/issues/339/comments"},"review_comments":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/339/comments"},"review_comment":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/339/commits"},"statuses":{"href":"https://api.github.com/repos/DevExpress/testcafe/statuses/e23b65cddd0358fe1080f3f90b0418801b97f0e1"}}}}