You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2015/05/10 18:28:54 UTC

[3/8] thrift git commit: THRIFT-3134 Remove use of deprecated "phantom.args"

THRIFT-3134 Remove use of deprecated "phantom.args"


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/2c4edd88
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/2c4edd88
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/2c4edd88

Branch: refs/heads/master
Commit: 2c4edd88b196c48d139644dd83fe57781f85bbe7
Parents: fd5a4d2
Author: Nobuaki Sukegawa <ns...@gmail.com>
Authored: Sat May 9 19:04:46 2015 +0900
Committer: Roger Meier <ro...@apache.org>
Committed: Sun May 10 18:25:56 2015 +0200

----------------------------------------------------------------------
 lib/js/test/phantomjs-qunit.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/2c4edd88/lib/js/test/phantomjs-qunit.js
----------------------------------------------------------------------
diff --git a/lib/js/test/phantomjs-qunit.js b/lib/js/test/phantomjs-qunit.js
index 027be40..b7b8012 100755
--- a/lib/js/test/phantomjs-qunit.js
+++ b/lib/js/test/phantomjs-qunit.js
@@ -8,6 +8,8 @@
  * Inclusion into Apache products is allowed according to http://www.apache.org/legal/3party.html
  */
 
+var system = require('system');
+
 
 /**
  * Wait until the test condition is true or a timeout occurs. Useful for waiting
@@ -49,7 +51,7 @@ function waitFor(testFx, onReady, timeOutMillis) {
 }
 
 
-if (phantom.args.length === 0 || phantom.args.length > 2) {
+if (system.args.length === 1 || system.args.length > 3) {
     console.log('Usage: phantomjs phantomjs-qunit.js URL');
     phantom.exit(1);
 }
@@ -61,7 +63,7 @@ page.onConsoleMessage = function(msg) {
     console.log(msg);
 };
 
-page.open(phantom.args[0], function(status){
+page.open(system.args[1], function(status){
     if (status !== "success") {
         console.log("Unable to access network");
         phantom.exit(1);