Remove the deprecated phantom.args.

The use of phantom.args has been deprecated (see commit 545a3f7)
since a long time ago (version 1.5, March 2012). Any old scripts
need to switch to use System#args instead.

https://github.com/ariya/phantomjs/issues/12527
2.0
Ariya Hidayat 2014-08-31 10:05:19 -07:00
parent f4eb3645f2
commit 6c6059fd91
3 changed files with 0 additions and 16 deletions

View File

@ -158,11 +158,6 @@ Phantom::~Phantom()
// Nothing to do: cleanup is handled by QObject relationships
}
QStringList Phantom::args() const
{
return m_config.scriptArgs();
}
QVariantMap Phantom::defaultPageSettings() const
{
return m_defaultPageSettings;

View File

@ -47,7 +47,6 @@ class WebServer;
class Phantom : public QObject
{
Q_OBJECT
Q_PROPERTY(QStringList args READ args)
Q_PROPERTY(QVariantMap defaultPageSettings READ defaultPageSettings)
Q_PROPERTY(QString libraryPath READ libraryPath WRITE setLibraryPath)
Q_PROPERTY(QString outputEncoding READ outputEncoding WRITE setOutputEncoding)
@ -67,8 +66,6 @@ public:
static Phantom *instance();
virtual ~Phantom();
QStringList args() const;
QVariantMap defaultPageSettings() const;
QString outputEncoding() const;

View File

@ -3,14 +3,6 @@ describe("phantom global object", function() {
expect(typeof phantom).toEqual('object');
});
it("should have args property", function() {
expect(phantom.hasOwnProperty('args')).toBeTruthy();
});
it("should have args as an array", function() {
expect(typeof phantom.args).toEqual('object');
});
it("should have libraryPath property", function() {
expect(phantom.hasOwnProperty('libraryPath')).toBeTruthy();
});