{"action":"created","comment":{"url":"https://api.github.com/repos/omegaup/omegaup/pulls/comments/78033830","id":78033830,"diff_hunk":"@@ -0,0 +1,58 @@\n+describe(\"omegaup.arena\", function() {\n+\tdescribe(\"FormatDelta\", function() {\n+\t\tit(\"Should handle zeroes\", function() {\n+\t\t\texpect(omegaup.arena.FormatDelta(0)).toEqual(\"00:00:00\");\n+\t\t});\n+\n+\t\tit(\"Should handle large deltas\", function() {\n+\t\t\texpect(omegaup.arena.FormatDelta(31 * 24 * 3600 * 1000)).toEqual(\"31:00:00:00\");\n+\t\t});\n+\t});\n+\n+\tdescribe(\"GetOptionsFromLocation\", function() {\n+\t\tit(\"Should detect normal contests\", function() {\n+\t\t\tvar options =\tomegaup.arena.GetOptionsFromLocation(\n+\t\t\t\t\tnew URL('http://localhost/arena/test/'));\n+\t\t\texpect(options.contestAlias).toEqual(\"test\");\n+\t\t\texpect(options.isPractice).toEqual(false);\n+\t\t\texpect(options.isOnlyProblem).toEqual(false);\n+\t\t\texpect(options.disableClarifications).toEqual(false);\n+\t\t\texpect(options.disableSockets).toEqual(false);\n+\t\t\texpect(options.scoreboardToken).toEqual(null);\n+\t\t});\n+\n+\t\tit(\"Should detect practice mode\", function() {\n+\t\t\tvar options =\tomegaup.arena.GetOptionsFromLocation(\n+\t\t\t\t\tnew URL('http://localhost/arena/test/practice'));\n+\t\t\texpect(options.contestAlias).toEqual(\"test\");\n+\t\t\texpect(options.isPractice).toEqual(true);\n+\t\t});\n+\n+\t\tit(\"Should detect only problems\", function() {\n+\t\t\tvar options =\tomegaup.arena.GetOptionsFromLocation(\n+\t\t\t\t\tnew URL('http://localhost/arena/problem/test/'));\n+\t\t\texpect(options.contestAlias).toEqual(null);\n+\t\t\texpect(options.onlyProblemAlias).toEqual(\"test\");\n+\t\t\texpect(options.isOnlyProblem).toEqual(true);\n+\t\t});\n+\n+\t\tit(\"Should detect ws=off\", function() {\n+\t\t\tvar options =\tomegaup.arena.GetOptionsFromLocation(\n+\t\t\t\t\tnew URL('http://localhost/arena/test/?ws=off'));\n+\t\t\texpect(options.disableSockets).toEqual(true);\n+\t\t});\n+\t});\n+\n+\tdescribe(\"Arena\", function() {\n+\t\tbeforeAll(function() {\n+\t\t\tomegaup.OmegaUp.ready = true;\n+\t\t\tomegaup.OmegaUp._deltaTime = 0;\n+\t\t});\n+\n+\t\tit(\"can be instantiated\", function() {\n+\t\t\tvar arena = new omegaup.arena.Arena({contestAlias: 'test'});\n+\t\t\texpect(arena.options.contestAlias).toEqual('test');\n+\t\t\texpect(arena.contestAdmin).toEqual(false);\n+\t\t});\n+\t});\n+});","path":"frontend/www/ux/libarena.test.js","position":58,"original_position":58,"commit_id":"e4048b69ef43a1bfb22f46a29fe324cc5321d773","original_commit_id":"e4048b69ef43a1bfb22f46a29fe324cc5321d773","user":{"login":"lhchavez","id":168028,"avatar_url":"https://avatars.githubusercontent.com/u/168028?v=3","gravatar_id":"","url":"https://api.github.com/users/lhchavez","html_url":"https://github.com/lhchavez","followers_url":"https://api.github.com/users/lhchavez/followers","following_url":"https://api.github.com/users/lhchavez/following{/other_user}","gists_url":"https://api.github.com/users/lhchavez/gists{/gist_id}","starred_url":"https://api.github.com/users/lhchavez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhchavez/subscriptions","organizations_url":"https://api.github.com/users/lhchavez/orgs","repos_url":"https://api.github.com/users/lhchavez/repos","events_url":"https://api.github.com/users/lhchavez/events{/privacy}","received_events_url":"https://api.github.com/users/lhchavez/received_events","type":"User","site_admin":false},"body":"visitando `/tests/` en un navegador. luego veo cómo correrlo desde travis/consola.","created_at":"2016-09-08T15:49:09Z","updated_at":"2016-09-08T15:49:09Z","html_url":"https://github.com/omegaup/omegaup/pull/872#discussion_r78033830","pull_request_url":"https://api.github.com/repos/omegaup/omegaup/pulls/872","_links":{"self":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/comments/78033830"},"html":{"href":"https://github.com/omegaup/omegaup/pull/872#discussion_r78033830"},"pull_request":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/872"}}},"pull_request":{"url":"https://api.github.com/repos/omegaup/omegaup/pulls/872","id":84060129,"html_url":"https://github.com/omegaup/omegaup/pull/872","diff_url":"https://github.com/omegaup/omegaup/pull/872.diff","patch_url":"https://github.com/omegaup/omegaup/pull/872.patch","issue_url":"https://api.github.com/repos/omegaup/omegaup/issues/872","number":872,"state":"open","locked":false,"title":"Agregando pruebas de JavaScript","user":{"login":"lhchavez","id":168028,"avatar_url":"https://avatars.githubusercontent.com/u/168028?v=3","gravatar_id":"","url":"https://api.github.com/users/lhchavez","html_url":"https://github.com/lhchavez","followers_url":"https://api.github.com/users/lhchavez/followers","following_url":"https://api.github.com/users/lhchavez/following{/other_user}","gists_url":"https://api.github.com/users/lhchavez/gists{/gist_id}","starred_url":"https://api.github.com/users/lhchavez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhchavez/subscriptions","organizations_url":"https://api.github.com/users/lhchavez/orgs","repos_url":"https://api.github.com/users/lhchavez/repos","events_url":"https://api.github.com/users/lhchavez/events{/privacy}","received_events_url":"https://api.github.com/users/lhchavez/received_events","type":"User","site_admin":false},"body":"El segundo cambio masivo del día. Creo que vamos a tener que tener fe en el primer commit (6da259a), porque es prácticamente irrevisable y se tiene que hacer de un solo golpe. El segundo commit (3281d4d) está más tranquilo.\r\n\r\nEsto necesita que todos los demás pull requests se resuelvan, pero es un cambio gigante, así que mejor sacarlo antes.","created_at":"2016-09-06T04:50:39Z","updated_at":"2016-09-08T15:49:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9d9d05cbeee3b27f6740af1c16fbba13732ac66","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/omegaup/omegaup/pulls/872/commits","review_comments_url":"https://api.github.com/repos/omegaup/omegaup/pulls/872/comments","review_comment_url":"https://api.github.com/repos/omegaup/omegaup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/omegaup/omegaup/issues/872/comments","statuses_url":"https://api.github.com/repos/omegaup/omegaup/statuses/e4048b69ef43a1bfb22f46a29fe324cc5321d773","head":{"label":"omegaup:jstests","ref":"jstests","sha":"e4048b69ef43a1bfb22f46a29fe324cc5321d773","user":{"login":"omegaup","id":558429,"avatar_url":"https://avatars.githubusercontent.com/u/558429?v=3","gravatar_id":"","url":"https://api.github.com/users/omegaup","html_url":"https://github.com/omegaup","followers_url":"https://api.github.com/users/omegaup/followers","following_url":"https://api.github.com/users/omegaup/following{/other_user}","gists_url":"https://api.github.com/users/omegaup/gists{/gist_id}","starred_url":"https://api.github.com/users/omegaup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omegaup/subscriptions","organizations_url":"https://api.github.com/users/omegaup/orgs","repos_url":"https://api.github.com/users/omegaup/repos","events_url":"https://api.github.com/users/omegaup/events{/privacy}","received_events_url":"https://api.github.com/users/omegaup/received_events","type":"Organization","site_admin":false},"repo":{"id":1243685,"name":"omegaup","full_name":"omegaup/omegaup","owner":{"login":"omegaup","id":558429,"avatar_url":"https://avatars.githubusercontent.com/u/558429?v=3","gravatar_id":"","url":"https://api.github.com/users/omegaup","html_url":"https://github.com/omegaup","followers_url":"https://api.github.com/users/omegaup/followers","following_url":"https://api.github.com/users/omegaup/following{/other_user}","gists_url":"https://api.github.com/users/omegaup/gists{/gist_id}","starred_url":"https://api.github.com/users/omegaup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omegaup/subscriptions","organizations_url":"https://api.github.com/users/omegaup/orgs","repos_url":"https://api.github.com/users/omegaup/repos","events_url":"https://api.github.com/users/omegaup/events{/privacy}","received_events_url":"https://api.github.com/users/omegaup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omegaup/omegaup","description":"omegaUp automatic programming contest evaluator & arena","fork":false,"url":"https://api.github.com/repos/omegaup/omegaup","forks_url":"https://api.github.com/repos/omegaup/omegaup/forks","keys_url":"https://api.github.com/repos/omegaup/omegaup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omegaup/omegaup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omegaup/omegaup/teams","hooks_url":"https://api.github.com/repos/omegaup/omegaup/hooks","issue_events_url":"https://api.github.com/repos/omegaup/omegaup/issues/events{/number}","events_url":"https://api.github.com/repos/omegaup/omegaup/events","assignees_url":"https://api.github.com/repos/omegaup/omegaup/assignees{/user}","branches_url":"https://api.github.com/repos/omegaup/omegaup/branches{/branch}","tags_url":"https://api.github.com/repos/omegaup/omegaup/tags","blobs_url":"https://api.github.com/repos/omegaup/omegaup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omegaup/omegaup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omegaup/omegaup/git/refs{/sha}","trees_url":"https://api.github.com/repos/omegaup/omegaup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omegaup/omegaup/statuses/{sha}","languages_url":"https://api.github.com/repos/omegaup/omegaup/languages","stargazers_url":"https://api.github.com/repos/omegaup/omegaup/stargazers","contributors_url":"https://api.github.com/repos/omegaup/omegaup/contributors","subscribers_url":"https://api.github.com/repos/omegaup/omegaup/subscribers","subscription_url":"https://api.github.com/repos/omegaup/omegaup/subscription","commits_url":"https://api.github.com/repos/omegaup/omegaup/commits{/sha}","git_commits_url":"https://api.github.com/repos/omegaup/omegaup/git/commits{/sha}","comments_url":"https://api.github.com/repos/omegaup/omegaup/comments{/number}","issue_comment_url":"https://api.github.com/repos/omegaup/omegaup/issues/comments{/number}","contents_url":"https://api.github.com/repos/omegaup/omegaup/contents/{+path}","compare_url":"https://api.github.com/repos/omegaup/omegaup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omegaup/omegaup/merges","archive_url":"https://api.github.com/repos/omegaup/omegaup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omegaup/omegaup/downloads","issues_url":"https://api.github.com/repos/omegaup/omegaup/issues{/number}","pulls_url":"https://api.github.com/repos/omegaup/omegaup/pulls{/number}","milestones_url":"https://api.github.com/repos/omegaup/omegaup/milestones{/number}","notifications_url":"https://api.github.com/repos/omegaup/omegaup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omegaup/omegaup/labels{/name}","releases_url":"https://api.github.com/repos/omegaup/omegaup/releases{/id}","deployments_url":"https://api.github.com/repos/omegaup/omegaup/deployments","created_at":"2011-01-12T00:11:21Z","updated_at":"2016-08-22T03:58:20Z","pushed_at":"2016-09-08T12:44:41Z","git_url":"git://github.com/omegaup/omegaup.git","ssh_url":"git@github.com:omegaup/omegaup.git","clone_url":"https://github.com/omegaup/omegaup.git","svn_url":"https://github.com/omegaup/omegaup","homepage":"https://omegaup.com","size":218299,"stargazers_count":31,"watchers_count":31,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":140,"forks":33,"open_issues":140,"watchers":31,"default_branch":"master"}},"base":{"label":"omegaup:master","ref":"master","sha":"9c4bebe51869d0c3d2db35e14f245def230c3259","user":{"login":"omegaup","id":558429,"avatar_url":"https://avatars.githubusercontent.com/u/558429?v=3","gravatar_id":"","url":"https://api.github.com/users/omegaup","html_url":"https://github.com/omegaup","followers_url":"https://api.github.com/users/omegaup/followers","following_url":"https://api.github.com/users/omegaup/following{/other_user}","gists_url":"https://api.github.com/users/omegaup/gists{/gist_id}","starred_url":"https://api.github.com/users/omegaup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omegaup/subscriptions","organizations_url":"https://api.github.com/users/omegaup/orgs","repos_url":"https://api.github.com/users/omegaup/repos","events_url":"https://api.github.com/users/omegaup/events{/privacy}","received_events_url":"https://api.github.com/users/omegaup/received_events","type":"Organization","site_admin":false},"repo":{"id":1243685,"name":"omegaup","full_name":"omegaup/omegaup","owner":{"login":"omegaup","id":558429,"avatar_url":"https://avatars.githubusercontent.com/u/558429?v=3","gravatar_id":"","url":"https://api.github.com/users/omegaup","html_url":"https://github.com/omegaup","followers_url":"https://api.github.com/users/omegaup/followers","following_url":"https://api.github.com/users/omegaup/following{/other_user}","gists_url":"https://api.github.com/users/omegaup/gists{/gist_id}","starred_url":"https://api.github.com/users/omegaup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omegaup/subscriptions","organizations_url":"https://api.github.com/users/omegaup/orgs","repos_url":"https://api.github.com/users/omegaup/repos","events_url":"https://api.github.com/users/omegaup/events{/privacy}","received_events_url":"https://api.github.com/users/omegaup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omegaup/omegaup","description":"omegaUp automatic programming contest evaluator & arena","fork":false,"url":"https://api.github.com/repos/omegaup/omegaup","forks_url":"https://api.github.com/repos/omegaup/omegaup/forks","keys_url":"https://api.github.com/repos/omegaup/omegaup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omegaup/omegaup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omegaup/omegaup/teams","hooks_url":"https://api.github.com/repos/omegaup/omegaup/hooks","issue_events_url":"https://api.github.com/repos/omegaup/omegaup/issues/events{/number}","events_url":"https://api.github.com/repos/omegaup/omegaup/events","assignees_url":"https://api.github.com/repos/omegaup/omegaup/assignees{/user}","branches_url":"https://api.github.com/repos/omegaup/omegaup/branches{/branch}","tags_url":"https://api.github.com/repos/omegaup/omegaup/tags","blobs_url":"https://api.github.com/repos/omegaup/omegaup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omegaup/omegaup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omegaup/omegaup/git/refs{/sha}","trees_url":"https://api.github.com/repos/omegaup/omegaup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omegaup/omegaup/statuses/{sha}","languages_url":"https://api.github.com/repos/omegaup/omegaup/languages","stargazers_url":"https://api.github.com/repos/omegaup/omegaup/stargazers","contributors_url":"https://api.github.com/repos/omegaup/omegaup/contributors","subscribers_url":"https://api.github.com/repos/omegaup/omegaup/subscribers","subscription_url":"https://api.github.com/repos/omegaup/omegaup/subscription","commits_url":"https://api.github.com/repos/omegaup/omegaup/commits{/sha}","git_commits_url":"https://api.github.com/repos/omegaup/omegaup/git/commits{/sha}","comments_url":"https://api.github.com/repos/omegaup/omegaup/comments{/number}","issue_comment_url":"https://api.github.com/repos/omegaup/omegaup/issues/comments{/number}","contents_url":"https://api.github.com/repos/omegaup/omegaup/contents/{+path}","compare_url":"https://api.github.com/repos/omegaup/omegaup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omegaup/omegaup/merges","archive_url":"https://api.github.com/repos/omegaup/omegaup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omegaup/omegaup/downloads","issues_url":"https://api.github.com/repos/omegaup/omegaup/issues{/number}","pulls_url":"https://api.github.com/repos/omegaup/omegaup/pulls{/number}","milestones_url":"https://api.github.com/repos/omegaup/omegaup/milestones{/number}","notifications_url":"https://api.github.com/repos/omegaup/omegaup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omegaup/omegaup/labels{/name}","releases_url":"https://api.github.com/repos/omegaup/omegaup/releases{/id}","deployments_url":"https://api.github.com/repos/omegaup/omegaup/deployments","created_at":"2011-01-12T00:11:21Z","updated_at":"2016-08-22T03:58:20Z","pushed_at":"2016-09-08T12:44:41Z","git_url":"git://github.com/omegaup/omegaup.git","ssh_url":"git@github.com:omegaup/omegaup.git","clone_url":"https://github.com/omegaup/omegaup.git","svn_url":"https://github.com/omegaup/omegaup","homepage":"https://omegaup.com","size":218299,"stargazers_count":31,"watchers_count":31,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":140,"forks":33,"open_issues":140,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/872"},"html":{"href":"https://github.com/omegaup/omegaup/pull/872"},"issue":{"href":"https://api.github.com/repos/omegaup/omegaup/issues/872"},"comments":{"href":"https://api.github.com/repos/omegaup/omegaup/issues/872/comments"},"review_comments":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/872/comments"},"review_comment":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/omegaup/omegaup/pulls/872/commits"},"statuses":{"href":"https://api.github.com/repos/omegaup/omegaup/statuses/e4048b69ef43a1bfb22f46a29fe324cc5321d773"}}}}
{"actor":{"display_login":"lhchavez"}}