Socket
Socket
Sign inDemoInstall

casperjs

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

casperjs - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

bin/bootstrap.js

@@ -5,3 +5,3 @@ /*!

* Documentation: http://casperjs.org/
* Repository: http://github.com/n1k0/casperjs
* Repository: http://github.com/casperjs/casperjs
*

@@ -8,0 +8,0 @@ * Copyright (c) 2011-2012 Nicolas Perriault

@@ -1,1 +0,1 @@

[This file has moved to Github](https://github.com/n1k0/casperjs/releases)
[This file has moved to Github](https://github.com/casperjs/casperjs/releases)

@@ -14,3 +14,3 @@ # Contribution Guide

**Create a ticket in the [issue tracker](https://github.com/n1k0/casperjs/issues/)**.
**Create a ticket in the [issue tracker](https://github.com/casperjs/casperjs/issues/)**.
This serves as a placeholder for important feedback, review, or any future updates. **Please ensure searching the bugtracker for an already opened issue matching your case before filing a new issue.**

@@ -83,5 +83,5 @@

Do you appreciate the [CasperJS documentation](http://casperjs.org/)? I do too. As the documentation contents are managed and generated using Github, Markdown and CasperJS itself, take the time to read the [Documentation Contribution Guide](https://github.com/n1k0/casperjs/blob/gh-pages/README.md#casperjs-documentation) and write the documentation related to your PR whenever applicable.
Do you appreciate the [CasperJS documentation](http://casperjs.org/)? I do too. As the documentation contents are managed and generated using Github, Markdown and CasperJS itself, take the time to read the [Documentation Contribution Guide](https://github.com/casperjs/casperjs/blob/gh-pages/README.md#casperjs-documentation) and write the documentation related to your PR whenever applicable.
**Note:** As the documentation is handled in a [dedicated separated `gh-pages` branch](https://github.com/n1k0/casperjs/tree/gh-pages), you'll have to send a dedicated PR for doc patches. I'm working on a more comfortable solution, but it's no easy task though.
**Note:** As the documentation is handled in a [dedicated separated `gh-pages` branch](https://github.com/casperjs/casperjs/tree/gh-pages), you'll have to send a dedicated PR for doc patches. I'm working on a more comfortable solution, but it's no easy task though.

@@ -88,0 +88,0 @@ ## Review and Merge

# CasperJS contributors
You can check out the [contribution graphs on github](https://github.com/n1k0/casperjs/graphs/contributors).
You can check out the [contribution graphs on github](https://github.com/casperjs/casperjs/graphs/contributors).

@@ -5,0 +5,0 @@ ```

@@ -5,3 +5,3 @@ /*!

* Documentation: http://casperjs.org/
* Repository: http://github.com/n1k0/casperjs
* Repository: http://github.com/casperjs/casperjs
*

@@ -8,0 +8,0 @@ * Copyright (c) 2011-2012 Nicolas Perriault

@@ -5,3 +5,3 @@ /*!

* Documentation: http://casperjs.org/
* Repository: http://github.com/n1k0/casperjs
* Repository: http://github.com/casperjs/casperjs
*

@@ -8,0 +8,0 @@ * Copyright (c) 2011-2012 Nicolas Perriault

@@ -5,3 +5,3 @@ /*!

* Documentation: http://casperjs.org/
* Repository: http://github.com/n1k0/casperjs
* Repository: http://github.com/casperjs/casperjs
*

@@ -8,0 +8,0 @@ * Copyright (c) 2011-2012 Nicolas Perriault

@@ -5,3 +5,3 @@ /*!

* Documentation: http://casperjs.org/
* Repository: http://github.com/n1k0/casperjs
* Repository: http://github.com/casperjs/casperjs
*

@@ -8,0 +8,0 @@ * Copyright (c) 2011-2012 Nicolas Perriault

@@ -5,3 +5,3 @@ /*!

* Documentation: http://casperjs.org/
* Repository: http://github.com/n1k0/casperjs
* Repository: http://github.com/casperjs/casperjs
*

@@ -8,0 +8,0 @@ * Copyright (c) 2011-2012 Nicolas Perriault

@@ -5,3 +5,3 @@ /*!

* Documentation: http://casperjs.org/
* Repository: http://github.com/n1k0/casperjs
* Repository: http://github.com/casperjs/casperjs
*

@@ -8,0 +8,0 @@ * Copyright (c) 2011-2012 Nicolas Perriault

@@ -5,3 +5,3 @@ /*!

* Documentation: http://casperjs.org/
* Repository: http://github.com/n1k0/casperjs
* Repository: http://github.com/casperjs/casperjs
*

@@ -8,0 +8,0 @@ * Copyright (c) 2011-2012 Nicolas Perriault

@@ -5,3 +5,3 @@ /*!

* Documentation: http://casperjs.org/
* Repository: http://github.com/n1k0/casperjs
* Repository: http://github.com/casperjs/casperjs
*

@@ -8,0 +8,0 @@ * Copyright (c) 2011-2012 Nicolas Perriault

@@ -5,3 +5,3 @@ /*!

* Documentation: http://casperjs.org/
* Repository: http://github.com/n1k0/casperjs
* Repository: http://github.com/casperjs/casperjs
*

@@ -8,0 +8,0 @@ * Copyright (c) 2011-2012 Nicolas Perriault

@@ -5,3 +5,3 @@ /*!

* Documentation: http://casperjs.org/
* Repository: http://github.com/n1k0/casperjs
* Repository: http://github.com/casperjs/casperjs
*

@@ -85,10 +85,7 @@ * Copyright (c) 2011-2012 Nicolas Perriault

// Since we are outputting XML, let's do our own document type
var documentType = document.implementation.createDocumentType("casperjs", "-//CasperJS//XUnit Test Results", "testsuites");
this.setupDocument();
this._xmlDocument = document.implementation.createDocument("", "", documentType);
this._xml = this._xmlDocument.appendChild(this._xmlDocument.createElement("testsuites"));
// Initialize everything else
// Initialize state
this.results = undefined;
this.rendered = false;
}

@@ -166,2 +163,5 @@ exports.XUnitExporter = XUnitExporter;

this._xml.setAttribute('time', utils.ms2seconds(this.results.calculateDuration()));
this.rendered = true;
return this._xmlDocument;

@@ -177,4 +177,9 @@ };

"use strict";
var serializer = new XMLSerializer();
return '<?xml version="1.0" encoding="UTF-8"?>' + serializer.serializeToString(this._xmlDocument);
var serializer = new XMLSerializer(),
document;
if ( !this.rendered ) {
document = this.getXML();
}
return '<?xml version="1.0" encoding="UTF-8"?>' + serializer.serializeToString(document);
};

@@ -193,3 +198,21 @@

this.results = results;
// New results let's re-initialize
this.setupDocument();
this.rendered = false;
return results;
};
/**
* Initializes the XML to an empty document
*
* @return void
*/
XUnitExporter.prototype.setupDocument = function() {
// Since we are outputting XML, let's do our own document type
var documentType = document.implementation.createDocumentType("casperjs", "-//CasperJS//XUnit Test Results", "testsuites");
this._xmlDocument = document.implementation.createDocument("", "", documentType);
this._xml = this._xmlDocument.appendChild(this._xmlDocument.createElement("testsuites"));
};
{
"name": "casperjs",
"description": "A navigation scripting & testing utility for PhantomJS and SlimerJS",
"version": "1.1.0",
"version": "1.1.1",
"keywords": [

@@ -14,12 +14,11 @@ "phantomjs",

"author": {
"name": "Nicolas Perriault",
"email": "nicolas@perriault.net",
"web": "https://nicolas.perriault.net/"
"name": "CasperJS Organization",
"web": "https://casperjs.org/"
},
"bugs": {
"url": "https://github.com/n1k0/casperjs/issues"
"url": "https://github.com/casperjs/casperjs/issues"
},
"repository": {
"type": "git",
"url": "git://github.com/n1k0/casperjs.git"
"url": "git://github.com/casperjs/casperjs.git"
},

@@ -26,0 +25,0 @@ "licenses": [

# CasperJS
>**Important note:** the `master` branch hosts the development version of CasperJS, which is now pretty stable and should be the right version to use if you ask me.
[Travis-CI](http://travis-ci.org/casperjs/casperjs) build status: [![Build Status](https://travis-ci.org/casperjs/casperjs.png?branch=master)](https://travis-ci.org/casperjs/casperjs) `master` branch
>**Important note:** the `master` branch hosts the development version of CasperJS, which is now pretty stable and should be the right version to use if you ask me. Users interested in a pretty stable, recent version working with PhantomJS 2.0 and newer should choose the packaged 1.1.0 and following releases.
>
>Use the [`1.0` branch](https://github.com/n1k0/casperjs/tree/1.0) if you want to keep in sync with the stable old version, or [use tagged versions](https://github.com/n1k0/casperjs/tags).
>
>Currently, available documentation is:
>
>- **hosted on [docs.casperjs.org](http://docs.casperjs.org/) for the development branch**
>- hosted on [casperjs.org](http://casperjs.org/) for the 1.0 branch
>
>[Travis-CI](http://travis-ci.org/n1k0/casperjs) build status:
>
>- [![Build Status](https://travis-ci.org/n1k0/casperjs.png?branch=master)](https://travis-ci.org/n1k0/casperjs) `master` branch
> The [`1.0` branch](https://github.com/casperjs/casperjs/tree/1.0) is now obsolete. Please note that
>- it is only recommended if you need to keep old production tests running that could do with the now **unmaintained PhantomJS 1.9**
>- 1.0 tests unfortunately have to be run manually using the `casperjs selftest` command
>
> **Note that all versions up to and including 1.1-beta3 do not support PhantomJS 2.0 and newer.**
The complete documentation for the current releases is **hosted on [docs.casperjs.org](http://docs.casperjs.org/).**
CasperJS is a navigation scripting & testing utility for [PhantomJS](http://www.phantomjs.org/)

@@ -33,3 +31,3 @@ and [SlimerJS](http://slimerjs.org/) (still experimental).

Browse the [sample examples repository](https://github.com/n1k0/casperjs/tree/master/samples).
Browse the [sample examples repository](https://github.com/casperjs/casperjs/tree/master/samples).
Don't hesitate to pull request for any cool example of yours as well!

@@ -71,3 +69,3 @@

**Filing issues**. It takes a lot of time to review, validate, and de-duplicate filed issues. This time could be spent better on actually improving on CasperJS. Filing an issue might be a helpful contribution, but we expect you to read our [CONTRIBUTING.md](https://github.com/n1k0/casperjs/blob/master/CONTRIBUTING.md) guidelines first.
**Filing issues**. It takes a lot of time to review, validate, and de-duplicate filed issues. This time could be spent better on actually improving on CasperJS. Filing an issue might be a helpful contribution, but we expect you to read our [CONTRIBUTING.md](https://github.com/casperjs/casperjs/blob/master/CONTRIBUTING.md) guidelines first.

@@ -84,3 +82,3 @@ **Professional Support**. Need help with getting CasperJS up and running? Got a time-consuming problem you want to get solved quickly?

Please read the [CONTRIBUTING.md](https://github.com/n1k0/casperjs/blob/master/CONTRIBUTING.md) file contents.
Please read the [CONTRIBUTING.md](https://github.com/casperjs/casperjs/blob/master/CONTRIBUTING.md) file contents.

@@ -91,3 +89,3 @@ ### Contributing documentation

To view the source files on github, head to [the gh-pages branch](https://github.com/n1k0/casperjs/tree/gh-pages), and check the [documentation's README](https://github.com/n1k0/casperjs/tree/gh-pages#readme) for further instructions.
To view the source files on github, head to [the gh-pages branch](https://github.com/casperjs/casperjs/tree/gh-pages), and check the [documentation's README](https://github.com/casperjs/casperjs/tree/gh-pages#readme) for further instructions.

@@ -94,0 +92,0 @@ ## Team

@@ -93,3 +93,3 @@ /*eslint strict:0, max-params:0*/

// https://github.com/n1k0/casperjs/issues/489
// https://github.com/casperjs/casperjs/issues/489
// https://groups.google.com/forum/?fromgroups=#!topic/casperjs/95IgDMFnEKM

@@ -114,3 +114,3 @@ casper.test.begin("evaluate() returns a value which can be altered", 1, function(test) {

// https://github.com/n1k0/casperjs/issues/841
// https://github.com/casperjs/casperjs/issues/841
casper.test.begin("evaluate() with js disabled, throws error", 1, function(test) {

@@ -117,0 +117,0 @@ casper.options.pageSettings.javascriptEnabled = false;

@@ -6,3 +6,3 @@ /*eslint strict:0*/

if (utils.ltVersion(phantom.version, '1.8.0')) {
// https://github.com/n1k0/casperjs/issues/101
// https://github.com/casperjs/casperjs/issues/101
casper.warn('document.location is broken under phantomjs < 1.8');

@@ -9,0 +9,0 @@ casper.test.done();

@@ -53,3 +53,3 @@ /*eslint strict:0*/

// https://github.com/n1k0/casperjs/issues/841
// https://github.com/casperjs/casperjs/issues/841
casper.test.begin('url tests with javascript disabled', 1, function(test) {

@@ -56,0 +56,0 @@ casper.options.pageSettings.javascriptEnabled = false;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc