{"action":"created","comment":{"url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/comments/90889003","pull_request_review_id":11394632,"id":90889003,"diff_hunk":"@@ -0,0 +1,84 @@\n+<!DOCTYPE html>\n+<script src=\"/resources/testharness.js\"></script>\n+<script src=\"/resources/testharnessreport.js\"></script>\n+<script src=\"/common/canvas-tests.js\"></script>\n+<link rel=\"help\" href=\"https://html.spec.whatwg.org/multipage/scripting.html#the-offscreen-2d-rendering-context\">\n+<script>\n+\n+test(function() {\n+    var placeholder = document.createElement('canvas');\n+    placeholder.width = 100;\n+    placeholder.height = 50;\n+    var offscreenCanvas = placeholder.transferControlToOffscreen();\n+    assert_equals(offscreenCanvas.width, 100);\n+    assert_equals(offscreenCanvas.height, 50);\n+}, \"Test that an OffscreenCanvas generated by transferControlToOffscreen gets correct width and height\");\n+\n+test(function() {\n+    var placeholder = document.createElement('canvas');\n+    placeholder.width = 100;\n+    placeholder.height = 50;\n+    var offscreenCanvas = placeholder.transferControlToOffscreen();\n+    assert_throws(\"InvalidStateError\", function() { placeholder.getContext('2d'); });\n+}, \"Test that call getContext on a placeholder canvas that is already transferred its control throws an exception\");\n+\n+test(function() {\n+    var placeholder = document.createElement('canvas');\n+    placeholder.width = 100;\n+    placeholder.height = 50;\n+    var offscreenCanvas = placeholder.transferControlToOffscreen();\n+    assert_throws(\"InvalidStateError\", function() { placeholder.transferControlToOffscreen(); });\n+}, \"Test that call transferControlToOffscreen twice throws an exception\");","path":"offscreen-canvas/the-offscreen-canvas/offscreencanvas.transfercontrol.to.offscreen.html","position":31,"original_position":31,"commit_id":"544174050bbe6840a5400261450950c5d1eb4691","original_commit_id":"544174050bbe6840a5400261450950c5d1eb4691","user":{"login":"junov","id":2607864,"avatar_url":"https://avatars.githubusercontent.com/u/2607864?v=3","gravatar_id":"","url":"https://api.github.com/users/junov","html_url":"https://github.com/junov","followers_url":"https://api.github.com/users/junov/followers","following_url":"https://api.github.com/users/junov/following{/other_user}","gists_url":"https://api.github.com/users/junov/gists{/gist_id}","starred_url":"https://api.github.com/users/junov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junov/subscriptions","organizations_url":"https://api.github.com/users/junov/orgs","repos_url":"https://api.github.com/users/junov/repos","events_url":"https://api.github.com/users/junov/events{/privacy}","received_events_url":"https://api.github.com/users/junov/received_events","type":"User","site_admin":false},"body":"call -> calling","created_at":"2016-12-05T15:38:22Z","updated_at":"2016-12-05T15:43:54Z","html_url":"https://github.com/w3c/web-platform-tests/pull/4281#discussion_r90889003","pull_request_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/4281","_links":{"self":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/comments/90889003"},"html":{"href":"https://github.com/w3c/web-platform-tests/pull/4281#discussion_r90889003"},"pull_request":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/4281"}}},"pull_request":{"url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/4281","id":96420446,"html_url":"https://github.com/w3c/web-platform-tests/pull/4281","diff_url":"https://github.com/w3c/web-platform-tests/pull/4281.diff","patch_url":"https://github.com/w3c/web-platform-tests/pull/4281.patch","issue_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/4281","number":4281,"state":"open","locked":false,"title":"OffscreenCanvas conformance tests: clean up and add new tests","user":{"login":"xidachen","id":16124653,"avatar_url":"https://avatars.githubusercontent.com/u/16124653?v=3","gravatar_id":"","url":"https://api.github.com/users/xidachen","html_url":"https://github.com/xidachen","followers_url":"https://api.github.com/users/xidachen/followers","following_url":"https://api.github.com/users/xidachen/following{/other_user}","gists_url":"https://api.github.com/users/xidachen/gists{/gist_id}","starred_url":"https://api.github.com/users/xidachen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xidachen/subscriptions","organizations_url":"https://api.github.com/users/xidachen/orgs","repos_url":"https://api.github.com/users/xidachen/repos","events_url":"https://api.github.com/users/xidachen/events{/privacy}","received_events_url":"https://api.github.com/users/xidachen/received_events","type":"User","site_admin":false},"body":"This pull request does three things:\r\n1. Clean up some tests. In our previous pull requests, there were some tests that are wrong, mostly because typos, and some don't make sense.\r\n2. Add image-smoothing tests, replicated from 2dcontext/\r\n3. Add some tests for general OffscreenCanvas APIs, for example, commit(), transferToImageBitmap, and so on.\r\n\r\nNotice that for some of the \"general API\" tests, the name of the worker tests ends with w.html. The reason is that we cannot name is with worker.html, otherwise the wpt test runner will automatically looking for a associated .js file which we don't have.","created_at":"2016-12-04T03:54:36Z","updated_at":"2016-12-05T15:43:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"088452f00b81bd25ec50241f29ca1c289cb47982","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/4281/commits","review_comments_url":"https://api.github.com/repos/w3c/web-platform-tests/pulls/4281/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/4281/comments","statuses_url":"https://api.github.com/repos/w3c/web-platform-tests/statuses/544174050bbe6840a5400261450950c5d1eb4691","head":{"label":"xidachen:OffscreenCanvas","ref":"OffscreenCanvas","sha":"544174050bbe6840a5400261450950c5d1eb4691","user":{"login":"xidachen","id":16124653,"avatar_url":"https://avatars.githubusercontent.com/u/16124653?v=3","gravatar_id":"","url":"https://api.github.com/users/xidachen","html_url":"https://github.com/xidachen","followers_url":"https://api.github.com/users/xidachen/followers","following_url":"https://api.github.com/users/xidachen/following{/other_user}","gists_url":"https://api.github.com/users/xidachen/gists{/gist_id}","starred_url":"https://api.github.com/users/xidachen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xidachen/subscriptions","organizations_url":"https://api.github.com/users/xidachen/orgs","repos_url":"https://api.github.com/users/xidachen/repos","events_url":"https://api.github.com/users/xidachen/events{/privacy}","received_events_url":"https://api.github.com/users/xidachen/received_events","type":"User","site_admin":false},"repo":{"id":53665634,"name":"web-platform-tests","full_name":"xidachen/web-platform-tests","owner":{"login":"xidachen","id":16124653,"avatar_url":"https://avatars.githubusercontent.com/u/16124653?v=3","gravatar_id":"","url":"https://api.github.com/users/xidachen","html_url":"https://github.com/xidachen","followers_url":"https://api.github.com/users/xidachen/followers","following_url":"https://api.github.com/users/xidachen/following{/other_user}","gists_url":"https://api.github.com/users/xidachen/gists{/gist_id}","starred_url":"https://api.github.com/users/xidachen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xidachen/subscriptions","organizations_url":"https://api.github.com/users/xidachen/orgs","repos_url":"https://api.github.com/users/xidachen/repos","events_url":"https://api.github.com/users/xidachen/events{/privacy}","received_events_url":"https://api.github.com/users/xidachen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xidachen/web-platform-tests","description":"Test Suites for Web Platform specifications—including WHATWG, W3C and others","fork":true,"url":"https://api.github.com/repos/xidachen/web-platform-tests","forks_url":"https://api.github.com/repos/xidachen/web-platform-tests/forks","keys_url":"https://api.github.com/repos/xidachen/web-platform-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xidachen/web-platform-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xidachen/web-platform-tests/teams","hooks_url":"https://api.github.com/repos/xidachen/web-platform-tests/hooks","issue_events_url":"https://api.github.com/repos/xidachen/web-platform-tests/issues/events{/number}","events_url":"https://api.github.com/repos/xidachen/web-platform-tests/events","assignees_url":"https://api.github.com/repos/xidachen/web-platform-tests/assignees{/user}","branches_url":"https://api.github.com/repos/xidachen/web-platform-tests/branches{/branch}","tags_url":"https://api.github.com/repos/xidachen/web-platform-tests/tags","blobs_url":"https://api.github.com/repos/xidachen/web-platform-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xidachen/web-platform-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xidachen/web-platform-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/xidachen/web-platform-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xidachen/web-platform-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/xidachen/web-platform-tests/languages","stargazers_url":"https://api.github.com/repos/xidachen/web-platform-tests/stargazers","contributors_url":"https://api.github.com/repos/xidachen/web-platform-tests/contributors","subscribers_url":"https://api.github.com/repos/xidachen/web-platform-tests/subscribers","subscription_url":"https://api.github.com/repos/xidachen/web-platform-tests/subscription","commits_url":"https://api.github.com/repos/xidachen/web-platform-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/xidachen/web-platform-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/xidachen/web-platform-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/xidachen/web-platform-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/xidachen/web-platform-tests/contents/{+path}","compare_url":"https://api.github.com/repos/xidachen/web-platform-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xidachen/web-platform-tests/merges","archive_url":"https://api.github.com/repos/xidachen/web-platform-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xidachen/web-platform-tests/downloads","issues_url":"https://api.github.com/repos/xidachen/web-platform-tests/issues{/number}","pulls_url":"https://api.github.com/repos/xidachen/web-platform-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/xidachen/web-platform-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/xidachen/web-platform-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xidachen/web-platform-tests/labels{/name}","releases_url":"https://api.github.com/repos/xidachen/web-platform-tests/releases{/id}","deployments_url":"https://api.github.com/repos/xidachen/web-platform-tests/deployments","created_at":"2016-03-11T12:29:31Z","updated_at":"2016-03-11T12:29:57Z","pushed_at":"2016-12-04T19:39:08Z","git_url":"git://github.com/xidachen/web-platform-tests.git","ssh_url":"git@github.com:xidachen/web-platform-tests.git","clone_url":"https://github.com/xidachen/web-platform-tests.git","svn_url":"https://github.com/xidachen/web-platform-tests","homepage":"http://irc.w3.org/?channels=testing","size":168632,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"w3c:master","ref":"master","sha":"5915964199b07226bf6d8fbb177a63b1f272907a","user":{"login":"w3c","id":379216,"avatar_url":"https://avatars.githubusercontent.com/u/379216?v=3","gravatar_id":"","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=3","gravatar_id":"","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—including WHATWG, W3C and others","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}","deployments_url":"https://api.github.com/repos/w3c/web-platform-tests/deployments","created_at":"2012-03-04T12:58:11Z","updated_at":"2016-12-04T11:21:17Z","pushed_at":"2016-12-05T15:31:19Z","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":"http://irc.w3.org/?channels=testing","size":341819,"stargazers_count":897,"watchers_count":897,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":971,"mirror_url":null,"open_issues_count":420,"forks":971,"open_issues":420,"watchers":897,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/4281"},"html":{"href":"https://github.com/w3c/web-platform-tests/pull/4281"},"issue":{"href":"https://api.github.com/repos/w3c/web-platform-tests/issues/4281"},"comments":{"href":"https://api.github.com/repos/w3c/web-platform-tests/issues/4281/comments"},"review_comments":{"href":"https://api.github.com/repos/w3c/web-platform-tests/pulls/4281/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/4281/commits"},"statuses":{"href":"https://api.github.com/repos/w3c/web-platform-tests/statuses/544174050bbe6840a5400261450950c5d1eb4691"}}}}
{"actor":{"display_login":"junov"}}