{"action":"created","comment":{"url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/pulls/comments/46231238","id":46231238,"diff_hunk":"@@ -0,0 +1,97 @@\n+#!/usr/bin/env python\n+#\n+# Copyright (c) 2015 Intel Corporation.\n+#\n+# Redistribution and use in source and binary forms, with or without\n+# modification, are permitted provided that the following conditions are met:\n+#\n+# * Redistributions of works must retain the original copyright notice, this\n+#   list of conditions and the following disclaimer.\n+# * Redistributions in binary form must reproduce the original copyright\n+#   notice, this list of conditions and the following disclaimer in the\n+#   documentation and/or other materials provided with the distribution.\n+# * Neither the name of Intel Corporation nor the names of its contributors\n+#   may be used to endorse or promote products derived from this work without\n+#   specific prior written permission.\n+#\n+# THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION \"AS IS\"\n+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n+# ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\n+# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n+# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\n+# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n+# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\n+# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+#\n+# Authors:\n+#         Li, Hao <haox.li@intel.com>\n+\n+import os\n+import commands\n+import sys\n+import shutil\n+import time\n+import glob\n+from optparse import OptionParser, make_option\n+\n+SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))\n+BUILD_TMP = \"/tmp\"\n+\n+def buildHelloMap(key):\n+    if not os.path.exists(BUILD_TMP):\n+        os.mkdir(BUILD_TMP)\n+\n+    os.chdir(BUILD_TMP)\n+    build_src = BUILD_TMP +\"/HelloMap\"\n+    if os.path.exists(build_src):\n+        shutil.rmtree(build_src)\n+\n+    os.system('cordova create HelloMap com.example.hellomap HelloMap')\n+    os.chdir(build_src)\n+    os.system('cordova platform add android')\n+    os.system('cordova plugin add https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview')\n+    os.system('cordova plugin add https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview --variable API_KEY_FOR_ANDROID=\"%s\"' % key)\n+    shutil.copyfile(SCRIPT_DIR + '/index.html', build_src  + '/www/index.html')\n+    # Update android:theme=\"@android:style/Theme.Black.NoTitleBar\" to android:theme=\"@android:style/Theme.Translucent.NoTitleBar\" in AndroidManifest.xml\n+    os.system('sed -i \"s/%s/%s/g\" %s' % (\"@android:style\\/Theme.Black.NoTitleBar\", \"@android:style\\/Theme.Translucent.NoTitleBar\", build_src + \"/platforms/android/AndroidManifest.xml\"))\n+    # Set zOrderOnTop in config.xml\n+    lines = open(build_src + '/config.xml', 'r').readlines()\n+    lines.insert(-1, '    <preference name=\"zOrderOnTop\" value=\"true\" />\\n')","path":"cordova/cordova-sampleapp-android-tests/sampleapp/res/GoogleMapsPlugin/google-maps-plugin.py","position":61,"original_position":61,"commit_id":"a13e6f2b7fb235760b9eff16d268e5503dbc6e8e","original_commit_id":"a13e6f2b7fb235760b9eff16d268e5503dbc6e8e","user":{"login":"Honry","id":3271201,"avatar_url":"https://avatars.githubusercontent.com/u/3271201?v=3","gravatar_id":"","url":"https://api.github.com/users/Honry","html_url":"https://github.com/Honry","followers_url":"https://api.github.com/users/Honry/followers","following_url":"https://api.github.com/users/Honry/following{/other_user}","gists_url":"https://api.github.com/users/Honry/gists{/gist_id}","starred_url":"https://api.github.com/users/Honry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Honry/subscriptions","organizations_url":"https://api.github.com/users/Honry/orgs","repos_url":"https://api.github.com/users/Honry/repos","events_url":"https://api.github.com/users/Honry/events{/privacy}","received_events_url":"https://api.github.com/users/Honry/received_events","type":"User","site_admin":false},"body":"This config can be set via command line.","created_at":"2015-12-01T01:45:04Z","updated_at":"2015-12-01T01:45:04Z","html_url":"https://github.com/crosswalk-project/crosswalk-test-suite/pull/3084#discussion_r46231238","pull_request_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/pulls/3084","_links":{"self":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/pulls/comments/46231238"},"html":{"href":"https://github.com/crosswalk-project/crosswalk-test-suite/pull/3084#discussion_r46231238"},"pull_request":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/pulls/3084"}}},"pull_request":{"url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/pulls/3084","id":52111104,"html_url":"https://github.com/crosswalk-project/crosswalk-test-suite/pull/3084","diff_url":"https://github.com/crosswalk-project/crosswalk-test-suite/pull/3084.diff","patch_url":"https://github.com/crosswalk-project/crosswalk-test-suite/pull/3084.patch","issue_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/issues/3084","number":3084,"state":"open","locked":false,"title":"[cordova] Add tests for googlemaps plugin","user":{"login":"haoxli","id":3271257,"avatar_url":"https://avatars.githubusercontent.com/u/3271257?v=3","gravatar_id":"","url":"https://api.github.com/users/haoxli","html_url":"https://github.com/haoxli","followers_url":"https://api.github.com/users/haoxli/followers","following_url":"https://api.github.com/users/haoxli/following{/other_user}","gists_url":"https://api.github.com/users/haoxli/gists{/gist_id}","starred_url":"https://api.github.com/users/haoxli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haoxli/subscriptions","organizations_url":"https://api.github.com/users/haoxli/orgs","repos_url":"https://api.github.com/users/haoxli/repos","events_url":"https://api.github.com/users/haoxli/events{/privacy}","received_events_url":"https://api.github.com/users/haoxli/received_events","type":"User","site_admin":false},"body":"- Set z order of web view with the preference ZOrderOnTop\r\n- Cordova GoogleMaps plugin for Android\r\n\r\nBUG=https://crosswalk-project.org/jira/browse/XWALK-5779","created_at":"2015-11-30T11:12:12Z","updated_at":"2015-12-01T01:45:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2fb9f0f6387b569968d3e9db826f780571abd943","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/pulls/3084/commits","review_comments_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/pulls/3084/comments","review_comment_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/issues/3084/comments","statuses_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/statuses/a13e6f2b7fb235760b9eff16d268e5503dbc6e8e","head":{"label":"haoxli:cordova/xwalk-5779","ref":"cordova/xwalk-5779","sha":"a13e6f2b7fb235760b9eff16d268e5503dbc6e8e","user":{"login":"haoxli","id":3271257,"avatar_url":"https://avatars.githubusercontent.com/u/3271257?v=3","gravatar_id":"","url":"https://api.github.com/users/haoxli","html_url":"https://github.com/haoxli","followers_url":"https://api.github.com/users/haoxli/followers","following_url":"https://api.github.com/users/haoxli/following{/other_user}","gists_url":"https://api.github.com/users/haoxli/gists{/gist_id}","starred_url":"https://api.github.com/users/haoxli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haoxli/subscriptions","organizations_url":"https://api.github.com/users/haoxli/orgs","repos_url":"https://api.github.com/users/haoxli/repos","events_url":"https://api.github.com/users/haoxli/events{/privacy}","received_events_url":"https://api.github.com/users/haoxli/received_events","type":"User","site_admin":false},"repo":{"id":17900028,"name":"crosswalk-test-suite","full_name":"haoxli/crosswalk-test-suite","owner":{"login":"haoxli","id":3271257,"avatar_url":"https://avatars.githubusercontent.com/u/3271257?v=3","gravatar_id":"","url":"https://api.github.com/users/haoxli","html_url":"https://github.com/haoxli","followers_url":"https://api.github.com/users/haoxli/followers","following_url":"https://api.github.com/users/haoxli/following{/other_user}","gists_url":"https://api.github.com/users/haoxli/gists{/gist_id}","starred_url":"https://api.github.com/users/haoxli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haoxli/subscriptions","organizations_url":"https://api.github.com/users/haoxli/orgs","repos_url":"https://api.github.com/users/haoxli/repos","events_url":"https://api.github.com/users/haoxli/events{/privacy}","received_events_url":"https://api.github.com/users/haoxli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/haoxli/crosswalk-test-suite","description":"","fork":true,"url":"https://api.github.com/repos/haoxli/crosswalk-test-suite","forks_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/forks","keys_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/teams","hooks_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/hooks","issue_events_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/issues/events{/number}","events_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/events","assignees_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/assignees{/user}","branches_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/branches{/branch}","tags_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/tags","blobs_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/git/refs{/sha}","trees_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/statuses/{sha}","languages_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/languages","stargazers_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/stargazers","contributors_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/contributors","subscribers_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/subscribers","subscription_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/subscription","commits_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/commits{/sha}","git_commits_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/git/commits{/sha}","comments_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/comments{/number}","issue_comment_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/issues/comments{/number}","contents_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/contents/{+path}","compare_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/merges","archive_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/downloads","issues_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/issues{/number}","pulls_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/pulls{/number}","milestones_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/milestones{/number}","notifications_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/labels{/name}","releases_url":"https://api.github.com/repos/haoxli/crosswalk-test-suite/releases{/id}","created_at":"2014-03-19T10:23:38Z","updated_at":"2015-05-08T05:30:43Z","pushed_at":"2015-11-30T11:11:24Z","git_url":"git://github.com/haoxli/crosswalk-test-suite.git","ssh_url":"git@github.com:haoxli/crosswalk-test-suite.git","clone_url":"https://github.com/haoxli/crosswalk-test-suite.git","svn_url":"https://github.com/haoxli/crosswalk-test-suite","homepage":null,"size":153118,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"crosswalk-project:master","ref":"master","sha":"006e9f3e6c2183cb0e4656a398fe557885765b72","user":{"login":"crosswalk-project","id":4867377,"avatar_url":"https://avatars.githubusercontent.com/u/4867377?v=3","gravatar_id":"","url":"https://api.github.com/users/crosswalk-project","html_url":"https://github.com/crosswalk-project","followers_url":"https://api.github.com/users/crosswalk-project/followers","following_url":"https://api.github.com/users/crosswalk-project/following{/other_user}","gists_url":"https://api.github.com/users/crosswalk-project/gists{/gist_id}","starred_url":"https://api.github.com/users/crosswalk-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crosswalk-project/subscriptions","organizations_url":"https://api.github.com/users/crosswalk-project/orgs","repos_url":"https://api.github.com/users/crosswalk-project/repos","events_url":"https://api.github.com/users/crosswalk-project/events{/privacy}","received_events_url":"https://api.github.com/users/crosswalk-project/received_events","type":"Organization","site_admin":false},"repo":{"id":17703190,"name":"crosswalk-test-suite","full_name":"crosswalk-project/crosswalk-test-suite","owner":{"login":"crosswalk-project","id":4867377,"avatar_url":"https://avatars.githubusercontent.com/u/4867377?v=3","gravatar_id":"","url":"https://api.github.com/users/crosswalk-project","html_url":"https://github.com/crosswalk-project","followers_url":"https://api.github.com/users/crosswalk-project/followers","following_url":"https://api.github.com/users/crosswalk-project/following{/other_user}","gists_url":"https://api.github.com/users/crosswalk-project/gists{/gist_id}","starred_url":"https://api.github.com/users/crosswalk-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crosswalk-project/subscriptions","organizations_url":"https://api.github.com/users/crosswalk-project/orgs","repos_url":"https://api.github.com/users/crosswalk-project/repos","events_url":"https://api.github.com/users/crosswalk-project/events{/privacy}","received_events_url":"https://api.github.com/users/crosswalk-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crosswalk-project/crosswalk-test-suite","description":"","fork":false,"url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite","forks_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/forks","keys_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/teams","hooks_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/hooks","issue_events_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/issues/events{/number}","events_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/events","assignees_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/assignees{/user}","branches_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/branches{/branch}","tags_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/tags","blobs_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/git/refs{/sha}","trees_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/statuses/{sha}","languages_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/languages","stargazers_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/stargazers","contributors_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/contributors","subscribers_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/subscribers","subscription_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/subscription","commits_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/commits{/sha}","git_commits_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/git/commits{/sha}","comments_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/comments{/number}","issue_comment_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/issues/comments{/number}","contents_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/contents/{+path}","compare_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/merges","archive_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/downloads","issues_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/issues{/number}","pulls_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/pulls{/number}","milestones_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/milestones{/number}","notifications_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/labels{/name}","releases_url":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/releases{/id}","created_at":"2014-03-13T08:33:13Z","updated_at":"2015-11-19T09:16:49Z","pushed_at":"2015-12-01T01:33:14Z","git_url":"git://github.com/crosswalk-project/crosswalk-test-suite.git","ssh_url":"git@github.com:crosswalk-project/crosswalk-test-suite.git","clone_url":"https://github.com/crosswalk-project/crosswalk-test-suite.git","svn_url":"https://github.com/crosswalk-project/crosswalk-test-suite","homepage":null,"size":185991,"stargazers_count":19,"watchers_count":19,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":83,"mirror_url":null,"open_issues_count":21,"forks":83,"open_issues":21,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/pulls/3084"},"html":{"href":"https://github.com/crosswalk-project/crosswalk-test-suite/pull/3084"},"issue":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/issues/3084"},"comments":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/issues/3084/comments"},"review_comments":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/pulls/3084/comments"},"review_comment":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/pulls/3084/commits"},"statuses":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-test-suite/statuses/a13e6f2b7fb235760b9eff16d268e5503dbc6e8e"}}}}