GitHub PullRequestReviewCommentEvent at 2014-08-15 07:36:55
Repository: web-platform-tests
Actor: sgrekhov
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/comments/16282797","id":16282797,"diff_hunk":"@@ -0,0 +1,120 @@\n+/*\n+Distributed under both the W3C Test Suite License [1] and the W3C\n+3-clause BSD License [2]. To contribute to a W3C Test Suite, see the\n+policies and contribution forms [3].\n+\n+[1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license\n+[2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license\n+[3] http://www.w3.org/2004/10/27-testcases\n+ */\n+\n+\"use strict\";\n+\n+// Epsilon value for assert_approx_equals()\n+var EPSILON = 20;\n+var ANIMATION_END_TIME = 1000;\n+\n+// Creates and returns new HTML document\n+function newHTMLDocument() {\n+    return document.implementation.createHTMLDocument('Test Document');\n+}\n+\n+function newAnimation(animationTarget) {\n+    animationTarget.style.width = '300px';\n+    return new Animation(animationTarget, [\n+        {width: '10px', offset: 0},\n+        {width: '100px', offset: 1/2},\n+        {width: '200px', offset: 1}], ANIMATION_END_TIME);\n+}\n+\n+function newAnimationPlayer(animationTarget) {\n+    var animation = newAnimation(animationTarget);\n+    return document.timeline.play(animation);\n+}\n+\n+// creates div element, appends it to the document body and\n+// add removing of the created element to test cleanup\n+function createDiv(test, doc) {\n+    if (!doc) {\n+        doc = document;\n+    }\n+    var div = doc.createElement('div');\n+    doc.body.appendChild(div);\n+    test.add_cleanup(function() {\n+        removeElement(div);\n+    });\n+    return div;\n+}\n+\n+// Removes element\n+function removeElement(element) {\n+    element.parentNode.removeChild(element);\n+}\n+\n+// Returns true if there is className in object prototype chain\n+function hasAncestorClassString(object, classString) {\n+    var proto = Object.getPrototypeOf(object);\n+    if (proto === null) {\n+        return false;\n+    }\n+    if (proto.constructor.name === classString) {\n+        return true;\n+    }\n+    return hasAncestorClassString(proto, classString);\n+}\n+\n+// Returns true if timed item is current as defined at\n+// http://dev.w3.org/fxtf/web-animations/#dfn-current\n+function isCurrent(timedItem) {\n+    return isInBeforePhase(timedItem) || isInPlay(timedItem)\n+        || (timedItem.parent !== null && isCurrent(timedItem.parent));\n+}\n+\n+// Returns true if timed item is in before phase as defined at\n+// http://dev.w3.org/fxtf/web-animations/#dfn-before-phase\n+function isInBeforePhase(timedItem) {\n+    return timedItem.localTime !== null\n+        && timedItem.startTime < timedItem.timing.delay;\n+}\n+\n+// Returns true if timed item is in play as defined at\n+// http://dev.w3.org/fxtf/web-animations/#dfn-in-play\n+function isInPlay(timedItem) {\n+    if (!isInActivePhase(timedItem)) {\n+        return false;\n+    }\n+    return (timed.parent !== null && isInPlay(timedItem.parent)) ||\n+        (timedItem.player !== null && !isLimited(timedItem.parent));\n+}\n+\n+// Returns true if timed item is in active phase as defined at\n+// http://dev.w3.org/fxtf/web-animations/#dfn-active-phase\n+function isInActivePhase(timedItem) {\n+    return timedItem.localTime !== null\n+        && timedItem.startTime >= timedItem.timing.delay\n+        && timedItem.startTime <=\n+            timedItem.timing.delay + timedItem.activeDuration;\n+}\n+\n+// Returns true if player is limited as defined at\n+// http://dev.w3.org/fxtf/web-animations/#dfn-limited\n+function isLimited(player) {","path":"web-animations/testcommon.js","position":null,"original_position":101,"commit_id":"96c2673b024373f75596e56ca64933ff3231995e","original_commit_id":"51c91fcd1058ff4d4af34ef2642cbe944a4fe49b","user":{"login":"sgrekhov","id":4627088,"avatar_url":"https://avatars.githubusercontent.com/u/4627088?v=2","gravatar_id":"40354ace789d9a0b2cb1860d91b05b18","url":"https://api.github.com/users/sgrekhov","html_url":"https://github.com/sgrekhov","followers_url":"https://api.github.com/users/sgrekhov/followers","following_url":"https://api.github.com/users/sgrekhov/following{/other_user}","gists_url":"https://api.github.com/users/sgrekhov/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrekhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrekhov/subscriptions","organizations_url":"https://api.github.com/users/sgrekhov/orgs","repos_url":"https://api.github.com/users/sgrekhov/repos","events_url":"https://api.github.com/users/sgrekhov/events{/privacy}","received_events_url":"https://api.github.com/users/sgrekhov/received_events","type":"User","site_admin":false},"body":"Not used.Removed","created_at":"2014-08-15T07:36:55Z","updated_at":"2014-08-15T07:36:55Z","html_url":"https://github.com/w3c/web-platform-tests/pull/1125#discussion_r16282797","pull_request_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/1125","_links":{"self":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/comments/16282797"},"html":{"href":"https://github.com/w3c/web-platform-tests/pull/1125#discussion_r16282797"},"pull_request":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/1125"}}},"pull_request":{"url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/1125","id":19008958,"html_url":"https://github.com/w3c/web-platform-tests/pull/1125","diff_url":"https://github.com/w3c/web-platform-tests/pull/1125.diff","patch_url":"https://github.com/w3c/web-platform-tests/pull/1125.patch","issue_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/1125","number":1125,"state":"open","locked":false,"title":"Submission/unipro web animations 05","user":{"login":"sgrekhov","id":4627088,"avatar_url":"https://avatars.githubusercontent.com/u/4627088?v=2","gravatar_id":"40354ace789d9a0b2cb1860d91b05b18","url":"https://api.github.com/users/sgrekhov","html_url":"https://github.com/sgrekhov","followers_url":"https://api.github.com/users/sgrekhov/followers","following_url":"https://api.github.com/users/sgrekhov/following{/other_user}","gists_url":"https://api.github.com/users/sgrekhov/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrekhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrekhov/subscriptions","organizations_url":"https://api.github.com/users/sgrekhov/orgs","repos_url":"https://api.github.com/users/sgrekhov/repos","events_url":"https://api.github.com/users/sgrekhov/events{/privacy}","received_events_url":"https://api.github.com/users/sgrekhov/received_events","type":"User","site_admin":false},"body":"Tests for AnimationTimeline,play() method","created_at":"2014-07-29T05:34:54Z","updated_at":"2014-08-15T07:36:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c7fb796fc2a469d2f09c02d2875ff4b311243e15","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/1125/commits","review_comments_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/1125/comments","review_comment_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/comments/{number}","comments_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/1125/comments","statuses_url":"https://api.github.com/repos/w3c/web-platform-tests/statuses/96c2673b024373f75596e56ca64933ff3231995e","head":{"label":"sgrekhov:submission/unipro-web-animations-05","ref":"submission/unipro-web-animations-05","sha":"96c2673b024373f75596e56ca64933ff3231995e","user":{"login":"sgrekhov","id":4627088,"avatar_url":"https://avatars.githubusercontent.com/u/4627088?v=2","gravatar_id":"40354ace789d9a0b2cb1860d91b05b18","url":"https://api.github.com/users/sgrekhov","html_url":"https://github.com/sgrekhov","followers_url":"https://api.github.com/users/sgrekhov/followers","following_url":"https://api.github.com/users/sgrekhov/following{/other_user}","gists_url":"https://api.github.com/users/sgrekhov/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrekhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrekhov/subscriptions","organizations_url":"https://api.github.com/users/sgrekhov/orgs","repos_url":"https://api.github.com/users/sgrekhov/repos","events_url":"https://api.github.com/users/sgrekhov/events{/privacy}","received_events_url":"https://api.github.com/users/sgrekhov/received_events","type":"User","site_admin":false},"repo":{"id":10518771,"name":"web-platform-tests","full_name":"sgrekhov/web-platform-tests","owner":{"login":"sgrekhov","id":4627088,"avatar_url":"https://avatars.githubusercontent.com/u/4627088?v=2","gravatar_id":"40354ace789d9a0b2cb1860d91b05b18","url":"https://api.github.com/users/sgrekhov","html_url":"https://github.com/sgrekhov","followers_url":"https://api.github.com/users/sgrekhov/followers","following_url":"https://api.github.com/users/sgrekhov/following{/other_user}","gists_url":"https://api.github.com/users/sgrekhov/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrekhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrekhov/subscriptions","organizations_url":"https://api.github.com/users/sgrekhov/orgs","repos_url":"https://api.github.com/users/sgrekhov/repos","events_url":"https://api.github.com/users/sgrekhov/events{/privacy}","received_events_url":"https://api.github.com/users/sgrekhov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sgrekhov/web-platform-tests","description":"Test Suites for Web Platform specifications","fork":true,"url":"https://api.github.com/repos/sgrekhov/web-platform-tests","forks_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/forks","keys_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/teams","hooks_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/hooks","issue_events_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/issues/events{/number}","events_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/events","assignees_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/assignees{/user}","branches_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/branches{/branch}","tags_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/tags","blobs_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/languages","stargazers_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/stargazers","contributors_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/contributors","subscribers_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/subscribers","subscription_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/subscription","commits_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/issues/comments/{number}","contents_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/contents/{+path}","compare_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/merges","archive_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/downloads","issues_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/issues{/number}","pulls_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/labels{/name}","releases_url":"https://api.github.com/repos/sgrekhov/web-platform-tests/releases{/id}","created_at":"2013-06-06T04:15:30Z","updated_at":"2014-06-25T05:08:41Z","pushed_at":"2014-08-15T07:33:00Z","git_url":"git://github.com/sgrekhov/web-platform-tests.git","ssh_url":"git@github.com:sgrekhov/web-platform-tests.git","clone_url":"https://github.com/sgrekhov/web-platform-tests.git","svn_url":"https://github.com/sgrekhov/web-platform-tests","homepage":"","size":55328,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"w3c:master","ref":"master","sha":"13bff083fba249ed260966bca65319b1b35d3f34","user":{"login":"w3c","id":379216,"avatar_url":"https://avatars.githubusercontent.com/u/379216?v=2","gravatar_id":"85dfda2c583d777a50eb433f6aab289f","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"repo":{"id":3618133,"name":"web-platform-tests","full_name":"w3c/web-platform-tests","owner":{"login":"w3c","id":379216,"avatar_url":"https://avatars.githubusercontent.com/u/379216?v=2","gravatar_id":"85dfda2c583d777a50eb433f6aab289f","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/w3c/web-platform-tests","description":"Test Suites for Web Platform specifications","fork":false,"url":"https://api.github.com/repos/w3c/web-platform-tests","forks_url":"https://api.github.com/repos/w3c/web-platform-tests/forks","keys_url":"https://api.github.com/repos/w3c/web-platform-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/w3c/web-platform-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/w3c/web-platform-tests/teams","hooks_url":"https://api.github.com/repos/w3c/web-platform-tests/hooks","issue_events_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/events{/number}","events_url":"https://api.github.com/repos/w3c/web-platform-tests/events","assignees_url":"https://api.github.com/repos/w3c/web-platform-tests/assignees{/user}","branches_url":"https://api.github.com/repos/w3c/web-platform-tests/branches{/branch}","tags_url":"https://api.github.com/repos/w3c/web-platform-tests/tags","blobs_url":"https://api.github.com/repos/w3c/web-platform-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/w3c/web-platform-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/w3c/web-platform-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/w3c/web-platform-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/w3c/web-platform-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/w3c/web-platform-tests/languages","stargazers_url":"https://api.github.com/repos/w3c/web-platform-tests/stargazers","contributors_url":"https://api.github.com/repos/w3c/web-platform-tests/contributors","subscribers_url":"https://api.github.com/repos/w3c/web-platform-tests/subscribers","subscription_url":"https://api.github.com/repos/w3c/web-platform-tests/subscription","commits_url":"https://api.github.com/repos/w3c/web-platform-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/w3c/web-platform-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/w3c/web-platform-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/comments/{number}","contents_url":"https://api.github.com/repos/w3c/web-platform-tests/contents/{+path}","compare_url":"https://api.github.com/repos/w3c/web-platform-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/w3c/web-platform-tests/merges","archive_url":"https://api.github.com/repos/w3c/web-platform-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/w3c/web-platform-tests/downloads","issues_url":"https://api.github.com/repos/w3c/web-platform-tests/issues{/number}","pulls_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/w3c/web-platform-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/w3c/web-platform-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/w3c/web-platform-tests/labels{/name}","releases_url":"https://api.github.com/repos/w3c/web-platform-tests/releases{/id}","created_at":"2012-03-04T12:58:11Z","updated_at":"2014-08-12T11:03:39Z","pushed_at":"2014-08-14T22:53:40Z","git_url":"git://github.com/w3c/web-platform-tests.git","ssh_url":"git@github.com:w3c/web-platform-tests.git","clone_url":"https://github.com/w3c/web-platform-tests.git","svn_url":"https://github.com/w3c/web-platform-tests","homepage":"","size":127797,"stargazers_count":382,"watchers_count":382,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"forks_count":552,"mirror_url":null,"open_issues_count":153,"forks":552,"open_issues":153,"watchers":382,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/1125"},"html":{"href":"https://github.com/w3c/web-platform-tests/pull/1125"},"issue":{"href":"https://api.github.com/repos/w3c/web-platform-tests/issues/1125"},"comments":{"href":"https://api.github.com/repos/w3c/web-platform-tests/issues/1125/comments"},"review_comments":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/1125/comments"},"review_comment":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/1125/commits"},"statuses":{"href":"https://api.github.com/repos/w3c/web-platform-tests/statuses/96c2673b024373f75596e56ca64933ff3231995e"}}}}