mirror of https://github.com/vitalif/phantomjs
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
parent
f4eb3645f2
commit
6c6059fd91
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue