Created
July 7, 2012 00:29
-
-
Save andrewdeandrade/3063591 to your computer and use it in GitHub Desktop.
Failing Casperjs tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./bin/casperjs test tests/suites | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/agent.js | |
PASS Default user agent matches /CasperJS/ | |
PASS Default user agent matches /plop/ | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/capture.js | |
# Casper.capture() | |
PASS Casper.capture() captured a screenshot | |
# Casper.captureBase64() | |
PASS Casper.captureBase64() rendered a page capture as base64 | |
FAIL CasperError: No element matching selector found: ul | |
# type: uncaughtError | |
# error: "CasperError: No element matching selector found: ul" | |
CasperError: No element matching selector found: ul | |
/Users/andrew/github/casperjs:732 in getElementBounds | |
/Users/andrew/github/casperjs:286 in captureBase64 | |
/Users/andrew/github/casperjs/tests/suites/casper/capture.js:19 | |
/Users/andrew/github/casperjs:1079 in runStep | |
/Users/andrew/github/casperjs:323 in checkStep | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/click.js | |
FAIL CasperError: Cannot dispatch click event on nonexistent selector: a[href="test.html"] | |
# type: uncaughtError | |
# error: "CasperError: Cannot dispatch click event on nonexistent selector: a[href=\"test.html\"]" | |
CasperError: Cannot dispatch click event on nonexistent selector: a[href="test.html"] | |
/Users/andrew/github/casperjs:877 in mouseEvent | |
/Users/andrew/github/casperjs:364 in click | |
/Users/andrew/github/casperjs/tests/suites/casper/click.js:2 | |
/Users/andrew/github/casperjs:1079 in runStep | |
/Users/andrew/github/casperjs:323 in checkStep | |
# Casper.click() | |
FAIL Casper.click() can click on a link | |
# type: assertTitle | |
# subject: "" | |
# expected: "CasperJS test target" | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/confirm.js | |
FAIL confirmation received | |
# type: assert | |
# subject: undefined | |
PASS confirmation message is ok | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/elementattribute.js | |
# Casper.getElementAttribute() | |
FAIL Casper.getElementAttribute() works as intended | |
# type: assertEquals | |
# subject: null | |
# expected: "beautiful string" | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/encode.js | |
# Casper.base64encode() | |
PASS Casper.base64encode() can retrieve base64 contents | |
# Casper.download() | |
PASS Casper.download() downloads a file | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/evaluate.js | |
# Casper.evaluate() | |
PASS Casper.evaluate() exposes parameters in a dedicated object | |
PASS Casper.evaluate() object containing parameters has the correct length | |
PASS Casper.evaluate() can pass a array | |
PASS Casper.evaluate() preserves the array type | |
PASS Casper.evaluate() can pass a boolean false | |
PASS Casper.evaluate() preserves the boolean false type | |
PASS Casper.evaluate() can pass a boolean true | |
PASS Casper.evaluate() preserves the boolean true type | |
PASS Casper.evaluate() can pass a float number | |
PASS Casper.evaluate() preserves the float number type | |
PASS Casper.evaluate() can pass a int number | |
PASS Casper.evaluate() preserves the int number type | |
PASS Casper.evaluate() can pass a object | |
PASS Casper.evaluate() preserves the object type | |
PASS Casper.evaluate() can pass a string | |
PASS Casper.evaluate() preserves the string type | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/events.js | |
# events | |
PASS on() has set an event handler | |
PASS emit() emits an event | |
# filters | |
PASS setFilter() has set a filter | |
PASS filter() filters a value | |
PASS filter() applies the correct context | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/exists.js | |
# Casper.exists() | |
FAIL Casper.exists() can check if an element exists | |
# type: assert | |
# subject: false | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/fetchtext.js | |
# Casper.fetchText() | |
FAIL Casper.fetchText() can retrieve text contents | |
# type: assertEquals | |
# subject: "" | |
# expected: "onetwothree" | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/flow.coffee | |
PASS step 1 | |
PASS step 1.1 | |
PASS step 1.1.1 | |
PASS step 1.1.1.1 | |
PASS step 1.1.2.1 | |
PASS step 1.2 | |
PASS step 2 | |
PASS step 3 sucessfully timed out | |
PASS step 4 | |
PASS step 4.1 | |
PASS step 4.1.1 | |
PASS step 5.2 | |
PASS last step | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/formfill.js | |
# Casper.fill() | |
FAIL Casper.fill() can fill an input[type=text] form field | |
# type: assertEvalEquals | |
# subject: null | |
# fn: undefined | |
# params: undefined | |
# expected: "[email protected]" | |
FAIL Casper.fill() can fill an input[type=password] form field | |
# type: assertEvalEquals | |
# subject: null | |
# fn: undefined | |
# params: undefined | |
# expected: "chuck" | |
FAIL Casper.fill() can fill a textarea form field | |
# type: assertEvalEquals | |
# subject: null | |
# fn: undefined | |
# params: undefined | |
# expected: "Am watching thou" | |
FAIL Casper.fill() can pick a value from a select form field | |
# type: assertEvalEquals | |
# subject: null | |
# fn: undefined | |
# params: undefined | |
# expected: "bar" | |
FAIL Casper.fill() can check a form checkbox | |
# type: assertEvalEquals | |
# subject: null | |
# fn: undefined | |
# params: undefined | |
# expected: true | |
FAIL Casper.fill() can check a form radio button 1/2 | |
# type: assertEvalEquals | |
# subject: null | |
# fn: undefined | |
# params: undefined | |
# expected: true | |
FAIL Casper.fill() can check a form radio button 2/2 | |
# type: assertEvalEquals | |
# subject: null | |
# fn: undefined | |
# params: undefined | |
# expected: false | |
FAIL Casper.fill() can select a file to upload | |
# type: assertEvalEquals | |
# subject: null | |
# fn: undefined | |
# params: undefined | |
# expected: true | |
FAIL Casper.fill() can fill a list of checkboxes | |
# type: assertEvalEquals | |
# subject: null | |
# fn: undefined | |
# params: undefined | |
# expected: true | |
FAIL CasperError: Cannot dispatch click event on nonexistent selector: input[type="submit"] | |
# type: uncaughtError | |
# error: "CasperError: Cannot dispatch click event on nonexistent selector: input[type=\"submit\"]" | |
CasperError: Cannot dispatch click event on nonexistent selector: input[type="submit"] | |
/Users/andrew/github/casperjs:877 in mouseEvent | |
/Users/andrew/github/casperjs:364 in click | |
/Users/andrew/github/casperjs/tests/suites/casper/formfill.js:42 | |
/Users/andrew/github/casperjs:1079 in runStep | |
/Users/andrew/github/casperjs:323 in checkStep | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/global.js | |
# Casper.getGlobal() | |
PASS Casper.getGlobal() can retrieve a remote global variable | |
PASS Casper.getGlobal() does not fail trying to encode an unencodable global | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/history.js | |
# navigating history backward | |
PASS Casper.back() can go back an history step | |
# navigating history forward | |
PASS Casper.forward() can go forward an history step | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/hooks.js | |
# Casper.options.onStepComplete() | |
PASS Casper.options.onStepComplete() is called on step complete | |
# Casper.options.onResourceRequested() | |
PASS Casper.options.onResourceRequested() retrieve a request object | |
PASS Casper.options.onResourceRequested() retrieve a valid request object | |
# Casper.options.onResourceReceived() | |
PASS Casper.options.onResourceReceived() retrieve a resource object | |
PASS Casper.options.onResourceReceived() retrieve a valid resource object | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/logging.js | |
# Casper.log() | |
PASS Casper.log() adds a log entry | |
PASS ClientUtils.log() adds a log entry | |
PASS ClientUtils.log() adds a log entry at a given level | |
FAIL Casper.log() logged messages | |
# type: assertEquals | |
# subject: 4 | |
# expected: 3 | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/mouseevents.js | |
# CasperUtils.mouseEvent() | |
PASS CasperUtils.mouseEvent() can dispatch a mousedown event | |
PASS CasperUtils.mouseEvent() can dispatch a mousedown event handled by unobstrusive js | |
PASS CasperUtils.mouseEvent() can dispatch a mouseup event | |
PASS CasperUtils.mouseEvent() can dispatch a mouseup event handled by unobstrusive js | |
PASS CasperUtils.mouseEvent() can dispatch a mouseover event | |
PASS CasperUtils.mouseEvent() can dispatch a mouseover event handled by unobstrusive js | |
PASS CasperUtils.mouseEvent() can dispatch a mouseout event | |
PASS CasperUtils.mouseEvent() can dispatch a mouseout event handled by unobstrusive js | |
PASS CasperUtils.mouseEvent() triggered mousedown | |
PASS CasperUtils.mouseEvent() triggered mousedown via unobstrusive js | |
PASS CasperUtils.mouseEvent() triggered mouseup | |
PASS CasperUtils.mouseEvent() triggered mouseup via unobstrusive js | |
PASS CasperUtils.mouseEvent() triggered mouseover | |
PASS CasperUtils.mouseEvent() triggered mouseover via unobstrusive js | |
PASS CasperUtils.mouseEvent() triggered mouseout | |
PASS CasperUtils.mouseEvent() triggered mouseout via unobstrusive js | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/onerror.js | |
# page.error event | |
PASS page.error event has been caught OK | |
PASS page.error retrieves correct stack trace | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/open.js | |
PASS Casper.open() used the expected GET settings | |
PASS Casper.open() used the expected POST settings | |
PASS Casper.open() used the expected PUT settings | |
PASS Casper.open() used the expected HTTP auth settings | |
PASS Casper.open() can open and load a location using GET | |
PASS Casper.open() can open and load a location using POST | |
PASS Casper.open() can open and load a location using PUT | |
PASS Casper.open() can open and load a location using HTTP auth | |
PASS Casper.thenOpen() used the expected GET settings | |
PASS Casper.thenOpen() can open and load a location using GET | |
PASS Casper.thenOpen() used the expected POST settings | |
PASS Casper.thenOpen() can open and load a location using POST | |
PASS Casper.thenOpen() used the expected PUT settings | |
PASS Casper.thenOpen() can open and load a location using PUT | |
PASS Casper.thenOpen() used the expected HTTP auth settings | |
PASS Casper.thenOpen() can open and load a location using HTTP auth | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/prompt.js | |
FAIL prompted value has been received | |
# type: assertEquals | |
# subject: "" | |
# expected: "Chuck Norris" | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/resources.coffee | |
FAIL only one resource found | |
# type: assertEquals | |
# subject: 0 | |
# expected: 1 | |
PASS two resources found | |
PASS phantom image found via test RegExp | |
PASS phantom image found via test Function | |
PASS phantom image found via test String | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/start.js | |
# Casper.start() | |
PASS Casper.start() started | |
PASS Casper.start() can chain a next step | |
FAIL Casper.start() opened the passed url | |
# type: assertTitle | |
# subject: "CasperJS test resource" | |
# expected: "CasperJS test index" | |
PASS Casper.start() injects ClientUtils instance within remote DOM | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/steps.js | |
# Casper.then() | |
PASS Casper.then() can add a new step | |
# Casper.thenOpen() | |
PASS Casper.thenOpen() can add a new step | |
PASS Casper.thenOpen() can add a new step for opening, plus another step | |
# Casper.each() | |
PASS Casper.each() passes a contextualized index | |
PASS Casper.each() passes a contextualized index | |
PASS Casper.each() passes a contextualized index | |
FAIL Casper.then() added a new step | |
# type: assertTitle | |
# subject: "" | |
# expected: "CasperJS test index" | |
FAIL Casper.thenOpen() opened a location and executed a step | |
# type: assertTitle | |
# subject: "" | |
# expected: "CasperJS test target" | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/viewport.js | |
# Casper.viewport() | |
PASS Casper.viewport() can change the width of page viewport | |
PASS Casper.viewport() can change the height of page viewport | |
PASS Casper.viewport() validates viewport size data | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/visible.js | |
# Casper.visible() | |
FAIL Casper.visible() can detect if an element is visible | |
# type: assert | |
# subject: false | |
PASS Casper.visible() can detect if an element is invisible | |
PASS Casper.visible() can detect if an element is invisible | |
# Casper.waitWhileVisible() | |
PASS Casper.waitWhileVisible() can wait while an element is visible | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/wait.js | |
# Casper.wait() | |
PASS Casper.wait() can wait for a given amount of time | |
# Casper.waitFor() | |
PASS Casper.waitFor() can wait for something to happen | |
Test file: /Users/andrew/github/casperjs/tests/suites/casper/xpath.js | |
# XPath | |
PASS XPath selector can find an element | |
PASS XPath selector does not retrieve an unexistent element | |
PASS selectXPath() shortcut can find an element as well | |
FAIL Correct number of elements are found | |
# type: assertEvalEquals | |
# subject: 4 | |
# fn: undefined | |
# params: undefined | |
# expected: 3 | |
FAIL CasperError: Cannot dispatch click event on nonexistent selector: xpath selector: /html/body/a[2] | |
# type: uncaughtError | |
# error: "CasperError: Cannot dispatch click event on nonexistent selector: xpath selector: /html/body/a[2]" | |
CasperError: Cannot dispatch click event on nonexistent selector: xpath selector: /html/body/a[2] | |
/Users/andrew/github/casperjs:877 in mouseEvent | |
/Users/andrew/github/casperjs:364 in click | |
/Users/andrew/github/casperjs:1219 in _step | |
/Users/andrew/github/casperjs:1079 in runStep | |
/Users/andrew/github/casperjs:323 in checkStep | |
Test file: /Users/andrew/github/casperjs/tests/suites/cli.js | |
# parse(), get(), has() | |
PASS parse() returns expected positional args array | |
PASS parse() returns expected options object | |
PASS parse() does not return inexistant positional arg | |
PASS parse() does not return inexistant option | |
PASS has() checks if an arg is set | |
PASS has() checks if an option is set | |
PASS parse() returns expected positional args array | |
PASS parse() returns expected options object | |
PASS parse() does not return inexistant positional arg | |
PASS parse() does not return inexistant option | |
PASS has() checks if a raw arg is set | |
PASS has() checks if a raw option is set | |
PASS parse() returns expected positional args array | |
PASS parse() returns expected options object | |
PASS parse() retrieve first positional arg | |
PASS parse() retrieve second positional arg | |
PASS has() checks if an arg is set | |
PASS has() checks if an arg is set | |
PASS has() checks if an arg is not set | |
PASS parse() returns expected positional raw args array | |
PASS parse() returns expected raw options object | |
PASS parse() retrieve first positional raw arg | |
PASS parse() retrieve second positional raw arg | |
PASS has() checks if a arw arg is set | |
PASS has() checks if a arw arg is set | |
PASS has() checks if a arw arg is not set | |
PASS parse() returns expected positional args array | |
PASS parse() returns expected options object | |
PASS parse() retrieve an option value | |
PASS parse() retrieve boolean option flag | |
PASS has() checks if an option is set | |
PASS has() checks if an option is set | |
PASS parse() returns expected positional raw args array | |
PASS parse() returns expected options raw object | |
PASS parse() retrieve an option raw value | |
PASS parse() retrieve boolean raw option flag | |
PASS has() checks if a raw option is set | |
PASS has() checks if a raw option is set | |
PASS parse() returns expected positional args array | |
PASS parse() returns expected options object | |
PASS parse() handles options with exotic names | |
PASS has() checks if an option is set | |
PASS parse() returns expected positional raw args array | |
PASS parse() returns expected options raw object | |
PASS parse() handles raw options with exotic names | |
PASS has() checks if a raw option is set | |
PASS parse() returns expected positional args array | |
PASS parse() returns expected options object | |
PASS parse() can cast a numeric option value | |
PASS parse() can cast a float option value | |
PASS parse() can cast a boolean value | |
PASS parse() can get a flag value by its option name | |
PASS parse() can cast a boolean value | |
PASS parse() can cast a boolean value | |
PASS has() checks if an arg is set | |
PASS has() checks if an arg is set | |
PASS has() checks if an option is set | |
PASS has() checks if an option is set | |
PASS has() checks if an option is set | |
PASS has() checks if an option is set | |
# drop() | |
PASS drop() dropped arg | |
PASS drop() dropped option | |
PASS drop() did not affect other args | |
PASS drop() did not affect other options | |
PASS parse() returns expected positional raw args array | |
PASS parse() returns expected options raw object | |
PASS parse() does not a raw numeric option value | |
PASS parse() does not cast a raw float option value | |
PASS parse() does not cast a numeric value | |
PASS parse() can get a flag value by its option name | |
PASS parse() can cast a boolean value | |
PASS parse() can cast a boolean value | |
# drop() for raw | |
PASS drop() dropped raw arg | |
PASS drop() dropped raw option | |
PASS drop() did not affect other raw args | |
PASS drop() did not affect other raw options | |
FAIL Clicking XPath works as expected | |
# type: assertTitle | |
# subject: "" | |
# expected: "CasperJS test form" | |
[error] [phantom] form error: form not found | |
FAIL Casper.fill() can fill an input[type=text] form field | |
# type: assertEvalEquals | |
# subject: null | |
# fn: undefined | |
# params: undefined | |
# expected: "[email protected]" | |
Test file: /Users/andrew/github/casperjs/tests/suites/clientutils.js | |
# ClientUtils.encode() | |
PASS ClientUtils.encode() encodes and decodes an empty string | |
PASS ClientUtils.encode() encodes and decodes a word | |
PASS ClientUtils.encode() encodes and decodes a null char | |
PASS ClientUtils.encode() encodes and decodes an utf8 string | |
PASS ClientUtils.encode() encodes and decodes song lyrics | |
PASS ClientUtils.encode() encodes and decodes a file contents | |
# ClientUtils.exists() | |
PASS ClientUtils.exists() checks that an element exist | |
PASS ClientUtils.exists() checks that an element exist | |
PASS ClientUtils.exists() checks that an element exist | |
PASS ClientUtils.exists() checks that an element exist using XPath | |
PASS ClientUtils.exists() checks that an element exist using XPath | |
# ClientUtils.findAll() | |
PASS ClientUtils.findAll() can find matching DOM elements | |
PASS ClientUtils.findAll() can find matching DOM elements | |
PASS ClientUtils.findAll() can find matching DOM elements | |
PASS ClientUtils.findAll() can find matching DOM elements | |
PASS ClientUtils.findAll() can find matching DOM elements within a given scope | |
# ClientUtils.findOne() | |
PASS ClientUtils.findOne() can find a matching DOM element | |
PASS ClientUtils.findOne() can find a matching DOM element | |
PASS ClientUtils.findAll() can find matching DOM elements within a given scope | |
PASS ClientUtils.findAll() can find matching DOM elements within a given scope | |
# ClientUtils.processSelector() | |
PASS ClientUtils.processSelector() can process a CSS3 selector | |
PASS ClientUtils.processSelector() can process a CSS3 selector | |
PASS ClientUtils.processSelector() can process a CSS3 selector | |
PASS ClientUtils.processSelector() can process a XPath selector | |
PASS ClientUtils.processSelector() can process a XPath selector | |
PASS ClientUtils.processSelector() can process a XPath selector | |
Test file: /Users/andrew/github/casperjs/tests/suites/coffee.coffee | |
FAIL Casper.start() casper can start itself an open an url | |
# type: assertTitle | |
# subject: "" | |
# expected: "CasperJS test index" | |
FAIL Casper.fetchText() can retrieves text contents | |
# type: assertEquals | |
# subject: "" | |
# expected: "onetwothree" | |
FAIL CasperError: Cannot dispatch click event on nonexistent selector: a[href="test.html"] | |
# type: uncaughtError | |
# error: "CasperError: Cannot dispatch click event on nonexistent selector: a[href=\"test.html\"]" | |
CasperError: Cannot dispatch click event on nonexistent selector: a[href="test.html"] | |
/Users/andrew/github/casperjs:877 in mouseEvent | |
/Users/andrew/github/casperjs:364 in click | |
/Users/andrew/github/casperjs/tests/suites/coffee.coffee:15 | |
/Users/andrew/github/casperjs:1079 in runStep | |
/Users/andrew/github/casperjs:323 in checkStep | |
FAIL Casper.click() casper can click on a text link | |
# type: assertTitle | |
# subject: "" | |
# expected: "CasperJS test target" | |
FAIL CasperError: Cannot dispatch click event on nonexistent selector: a[href="form.html"] | |
# type: uncaughtError | |
# error: "CasperError: Cannot dispatch click event on nonexistent selector: a[href=\"form.html\"]" | |
CasperError: Cannot dispatch click event on nonexistent selector: a[href="form.html"] | |
/Users/andrew/github/casperjs:877 in mouseEvent | |
/Users/andrew/github/casperjs:364 in click | |
/Users/andrew/github/casperjs/tests/suites/coffee.coffee:20 | |
/Users/andrew/github/casperjs:1079 in runStep | |
/Users/andrew/github/casperjs:323 in checkStep | |
Test file: /Users/andrew/github/casperjs/tests/suites/fs.js | |
# fs.dirname() | |
PASS fs.dirname() does its job for /local/plop/foo.js | |
PASS fs.dirname() does its job for local/plop/foo.js | |
PASS fs.dirname() does its job for ./local/plop/foo.js | |
PASS fs.dirname() does its job for c:\local\plop\foo.js | |
PASS fs.dirname() does its job for D:\local\plop\foo.js | |
PASS fs.dirname() does its job for D:\local\plop\ | |
PASS fs.dirname() does its job for c:\ | |
PASS fs.dirname() does its job for c: | |
# fs.dirname() | |
PASS fs.isWindows() does its job for / | |
PASS fs.isWindows() does its job for /local/plop/foo.js | |
PASS fs.isWindows() does its job for D:\local\plop\ | |
PASS fs.isWindows() does its job for c:\ | |
PASS fs.isWindows() does its job for c: | |
PASS fs.isWindows() does its job for \\Server\Plop | |
Test file: /Users/andrew/github/casperjs/tests/suites/http_status.js | |
PASS HTTP status code is 101 | |
FAIL HTTP status code is 102 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 101 | |
# expected: 102 | |
PASS HTTP status code is 118 | |
FAIL HTTP status code is 200 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 118 | |
# expected: 200 | |
PASS HTTP status code is 201 | |
FAIL HTTP status code is 202 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 201 | |
# expected: 202 | |
PASS HTTP status code is 203 | |
FAIL HTTP status code is 204 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 203 | |
# expected: 204 | |
PASS HTTP status code is 205 | |
FAIL HTTP status code is 206 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 205 | |
# expected: 206 | |
PASS HTTP status code is 207 | |
FAIL HTTP status code is 210 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 207 | |
# expected: 210 | |
PASS HTTP status code is 300 | |
FAIL HTTP status code is 301 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 300 | |
# expected: 301 | |
PASS HTTP status code is 302 | |
FAIL HTTP status code is 303 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 302 | |
# expected: 303 | |
PASS HTTP status code is 304 | |
FAIL HTTP status code is 305 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 304 | |
# expected: 305 | |
PASS HTTP status code is 307 | |
FAIL HTTP status code is 310 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 307 | |
# expected: 310 | |
PASS HTTP status code is 400 | |
FAIL HTTP status code is 401 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 400 | |
# expected: 401 | |
PASS HTTP status code is 402 | |
FAIL HTTP status code is 403 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 402 | |
# expected: 403 | |
PASS HTTP status code is 404 | |
FAIL HTTP status code is 405 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 404 | |
# expected: 405 | |
PASS HTTP status code is 406 | |
FAIL HTTP status code is 407 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 406 | |
# expected: 407 | |
PASS HTTP status code is 408 | |
FAIL HTTP status code is 409 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 408 | |
# expected: 409 | |
PASS HTTP status code is 410 | |
FAIL HTTP status code is 411 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 410 | |
# expected: 411 | |
PASS HTTP status code is 412 | |
FAIL HTTP status code is 413 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 412 | |
# expected: 413 | |
PASS HTTP status code is 414 | |
FAIL HTTP status code is 415 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 414 | |
# expected: 415 | |
PASS HTTP status code is 416 | |
FAIL HTTP status code is 417 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 416 | |
# expected: 417 | |
PASS HTTP status code is 418 | |
FAIL HTTP status code is 422 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 418 | |
# expected: 422 | |
PASS HTTP status code is 423 | |
FAIL HTTP status code is 424 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 423 | |
# expected: 424 | |
PASS HTTP status code is 425 | |
FAIL HTTP status code is 426 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 425 | |
# expected: 426 | |
PASS HTTP status code is 449 | |
FAIL HTTP status code is 450 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 449 | |
# expected: 450 | |
PASS HTTP status code is 500 | |
FAIL HTTP status code is 501 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 500 | |
# expected: 501 | |
PASS HTTP status code is 502 | |
FAIL HTTP status code is 503 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 502 | |
# expected: 503 | |
PASS HTTP status code is 504 | |
FAIL HTTP status code is 505 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 504 | |
# expected: 505 | |
PASS HTTP status code is 507 | |
FAIL HTTP status code is 509 | |
# type: assertHttpStatus | |
# subject: false | |
# current: 507 | |
# expected: 509 | |
Test file: /Users/andrew/github/casperjs/tests/suites/injector.js | |
# FunctionArgsInjector.extract() | |
PASS FunctionArgsInjector.extract() returns an object | |
PASS FunctionArgsInjector.extract() process function name as expected | |
PASS FunctionArgsInjector.extract() process function body as expected | |
PASS FunctionArgsInjector.extract() process function args as expected | |
PASS FunctionArgsInjector.extract() handles named functions with arguments and body | |
PASS FunctionArgsInjector.extract() handles functions with no arguments | |
PASS FunctionArgsInjector.extract() handles functions with no body | |
PASS FunctionArgsInjector.extract() handles anonymous functions with complex args passed | |
PASS FunctionArgsInjector.extract() handles can filter comments in function args | |
# FunctionArgsInjector.process() | |
PASS FunctionArgsInjector.process() processed a function | |
PASS FunctionArgsInjector.process() processed the function correctly | |
PASS FunctionArgsInjector.process() has issue #129 fixed | |
Test file: /Users/andrew/github/casperjs/tests/suites/tester.js | |
# Tester.testEquals() | |
PASS Tester.testEquals() null equality | |
PASS Tester.testEquals() null vs. undefined inequality | |
PASS Tester.testEquals() string equality | |
PASS Tester.testEquals() string inequality | |
PASS Tester.testEquals() number equality | |
PASS Tester.testEquals() number equality without implicit cast | |
PASS Tester.testEquals() number equality with cast | |
PASS Tester.testEquals() number inequality | |
PASS Tester.testEquals() empty array equality | |
PASS Tester.testEquals() array equality | |
PASS Tester.testEquals() complex array equality | |
PASS Tester.testEquals() complex array inequality | |
PASS Tester.testEquals() shuffled array inequality | |
PASS Tester.testEquals() array length inequality | |
PASS Tester.testEquals() empty object equality | |
PASS Tester.testEquals() object length equality | |
PASS Tester.testEquals() shuffled object keys equality | |
PASS Tester.testEquals() object inequality | |
PASS Tester.testEquals() complex object equality | |
PASS Tester.testEquals() complex object inequality | |
PASS Tester.testEquals() function equality | |
PASS Tester.testEquals() function inequality | |
# Tester.sortFiles() | |
PASS findTestFiles() find test files and sort them | |
# Tester.assertTextExists() | |
FAIL Tester.assertTextExists() checks that page body contains text | |
# type: assertTextExists | |
# subject: false | |
# text: "form" | |
# Tester.assert() | |
PASS Tester.assert() works as expected | |
# Tester.assertNot() | |
PASS Tester.assertNot() works as expected | |
# Tester.assertEquals() | |
PASS Tester.assertEquals() works as expected | |
# Tester.assertNotEquals() | |
PASS Tester.assertNotEquals() works as expected | |
# Tester.assertEval() | |
PASS Tester.assertEval() works as expected | |
# Tester.assertEvalEquals() | |
PASS Tester.assertEvalEquals() works as expected | |
# Tester.assertExists() | |
PASS Tester.assertExists() works as expected | |
# Tester.assertDoesntExist() | |
PASS Tester.assertDoesntExist() works as expected | |
# Tester.assertHttpStatus() | |
FAIL Tester.assertHttpStatus() works as expected | |
# type: assertHttpStatus | |
# subject: false | |
# current: 509 | |
# expected: null | |
# Tester.assertMatch() | |
PASS Tester.assertMatch() works as expected | |
# Tester.assertRaises() | |
PASS Tester.assertRaises() works as expected | |
# Tester.assertResourceExists() | |
FAIL Tester.assertResourceExists() works as expected | |
# type: assertResourceExists | |
# subject: false | |
# test: {} | |
# Tester.assertTitle() | |
FAIL Tester.assertTitle() works as expected | |
# type: assertTitle | |
# subject: "" | |
# expected: "CasperJS test index" | |
# Tester.assertTitleMatch() | |
FAIL Tester.assertTitleMatch() works as expected | |
# type: assertTitle | |
# subject: "" | |
# pattern: "/test index/" | |
# Tester.assertType() | |
PASS Tester.assertType() works as expected | |
# Tester.assertUrlMatch() | |
FAIL Tester.assertUrlMatch() works as expected | |
# type: assertUrlMatch | |
# subject: false | |
# currentUrl: "http://localhost:8090/407" | |
# pattern: "/index\\.html$/" | |
# Tester.getFailures() | |
PASS Tester.getFailures() works as expected | |
# Tester.getPasses() | |
PASS Rogue assertEquals pass case | |
PASS Tester.getPasses() works as expected | |
Test file: /Users/andrew/github/casperjs/tests/suites/utils.js | |
# fileExt() | |
PASS fileExt() extract file extension | |
PASS fileExt() extract file extension | |
PASS fileExt() extract file extension | |
PASS fileExt() extract file extension | |
PASS fileExt() extract file extension | |
PASS fileExt() extract file extension | |
# fillBlanks() | |
PASS fillBlanks() fills blanks | |
PASS fillBlanks() fills blanks | |
PASS fillBlanks() fills blanks | |
# getPropertyPath() | |
PASS getPropertyPath() gets a property using a path | |
PASS getPropertyPath() gets a property using a path | |
PASS getPropertyPath() gets a property using a path | |
PASS getPropertyPath() gets a property using a path | |
PASS getPropertyPath() gets a property using a path | |
PASS getPropertyPath() gets a property using a path | |
PASS getPropertyPath() gets a property using a path | |
# isArray() | |
PASS isArray() checks for an Array | |
PASS isArray() checks for an Array | |
PASS isArray() checks for an Array | |
# isClipRect() | |
PASS isClipRect() checks for a ClipRect | |
PASS isClipRect() checks for a ClipRect | |
PASS isClipRect() checks for a ClipRect | |
PASS isClipRect() checks for a ClipRect | |
PASS isClipRect() checks for a ClipRect | |
# isObject() | |
PASS isObject() checks for an Object | |
PASS isObject() checks for an Object | |
PASS isObject() checks for an Object | |
PASS isObject() checks for an Object | |
PASS isObject() checks for an Object | |
PASS isObject() checks for an Object | |
PASS isObject() checks for an Object | |
PASS isObject() checks for an Object | |
# isValidSelector() | |
PASS isValidSelector() checks for a valid selector | |
PASS isValidSelector() checks for a valid selector | |
PASS isValidSelector() checks for a valid selector | |
PASS isValidSelector() checks for a valid selector | |
PASS isValidSelector() checks for a valid selector | |
PASS isValidSelector() checks for a valid selector | |
PASS isValidSelector() checks for a valid selector | |
PASS isValidSelector() checks for a valid selector | |
PASS isValidSelector() checks for a valid selector | |
PASS isValidSelector() checks for a valid selector | |
# isWebPage() | |
PASS isWebPage() checks for a WebPage instance | |
PASS isWebPage() checks for a WebPage instance | |
PASS isWebPage() checks for a WebPage instance | |
# isJsFile() | |
PASS isJsFile() checks for js file | |
PASS isJsFile() checks for js file | |
PASS isJsFile() checks for js file | |
PASS isJsFile() checks for js file | |
PASS isJsFile() checks for js file | |
# mergeObjects() | |
PASS mergeObjects() can merge objects | |
PASS mergeObjects() can merge objects | |
PASS mergeObjects() can merge objects | |
PASS mergeObjects() can merge objects | |
PASS mergeObjects() can merge objects | |
# unique() | |
PASS unique() computes unique values of an array | |
PASS unique() computes unique values of an array | |
PASS unique() computes unique values of an array | |
PASS unique() computes unique values of an array | |
Test file: /Users/andrew/github/casperjs/tests/suites/xunit.js | |
# phantom.Casper.XUnitExporter | |
PASS XUnitExporter.addSuccess() adds a successful testcase | |
PASS XUnitExporter.addFailure() adds a failed testcase | |
PASS XUnitExporter.addSuccess() handles class name | |
PASS XUnitExporter.addFailure() handles class name | |
FAIL 432 tests executed, 366 passed, 66 failed. | |
Details for the 66 failed tests: | |
In /Users/andrew/github/casperjs/tests/suites/casper/capture.js:732 | |
uncaughtError: CasperError: No element matching selector found: ul | |
In /Users/andrew/github/casperjs/tests/suites/casper/click.js:877 | |
uncaughtError: CasperError: Cannot dispatch click event on nonexistent selector: a[href="test.html"] | |
In /Users/andrew/github/casperjs/tests/suites/casper/click.js:0 | |
assertTitle: Casper.click() can click on a link | |
In /Users/andrew/github/casperjs/tests/suites/casper/confirm.js:0 | |
assert: confirmation received | |
In /Users/andrew/github/casperjs/tests/suites/casper/elementattribute.js:0 | |
assertEquals: Casper.getElementAttribute() works as intended | |
In /Users/andrew/github/casperjs/tests/suites/casper/exists.js:0 | |
assert: Casper.exists() can check if an element exists | |
In /Users/andrew/github/casperjs/tests/suites/casper/fetchtext.js:0 | |
assertEquals: Casper.fetchText() can retrieve text contents | |
In /Users/andrew/github/casperjs/tests/suites/casper/formfill.js:0 | |
assertEvalEquals: Casper.fill() can fill an input[type=text] form field | |
In /Users/andrew/github/casperjs/tests/suites/casper/formfill.js:0 | |
assertEvalEquals: Casper.fill() can fill an input[type=password] form field | |
In /Users/andrew/github/casperjs/tests/suites/casper/formfill.js:0 | |
assertEvalEquals: Casper.fill() can fill a textarea form field | |
In /Users/andrew/github/casperjs/tests/suites/casper/formfill.js:0 | |
assertEvalEquals: Casper.fill() can pick a value from a select form field | |
In /Users/andrew/github/casperjs/tests/suites/casper/formfill.js:0 | |
assertEvalEquals: Casper.fill() can check a form checkbox | |
In /Users/andrew/github/casperjs/tests/suites/casper/formfill.js:0 | |
assertEvalEquals: Casper.fill() can check a form radio button 1/2 | |
In /Users/andrew/github/casperjs/tests/suites/casper/formfill.js:0 | |
assertEvalEquals: Casper.fill() can check a form radio button 2/2 | |
In /Users/andrew/github/casperjs/tests/suites/casper/formfill.js:0 | |
assertEvalEquals: Casper.fill() can select a file to upload | |
In /Users/andrew/github/casperjs/tests/suites/casper/formfill.js:0 | |
assertEvalEquals: Casper.fill() can fill a list of checkboxes | |
In /Users/andrew/github/casperjs/tests/suites/casper/formfill.js:877 | |
uncaughtError: CasperError: Cannot dispatch click event on nonexistent selector: input[type="submit"] | |
In /Users/andrew/github/casperjs/tests/suites/casper/logging.js:0 | |
assertEquals: Casper.log() logged messages | |
In /Users/andrew/github/casperjs/tests/suites/casper/prompt.js:0 | |
assertEquals: prompted value has been received | |
In /Users/andrew/github/casperjs/tests/suites/casper/resources.coffee:0 | |
assertEquals: only one resource found | |
In /Users/andrew/github/casperjs/tests/suites/casper/start.js:0 | |
assertTitle: Casper.start() opened the passed url | |
In /Users/andrew/github/casperjs/tests/suites/casper/steps.js:0 | |
assertTitle: Casper.then() added a new step | |
In /Users/andrew/github/casperjs/tests/suites/casper/steps.js:0 | |
assertTitle: Casper.thenOpen() opened a location and executed a step | |
In /Users/andrew/github/casperjs/tests/suites/casper/visible.js:0 | |
assert: Casper.visible() can detect if an element is visible | |
In /Users/andrew/github/casperjs/tests/suites/casper/xpath.js:0 | |
assertEvalEquals: Correct number of elements are found | |
In /Users/andrew/github/casperjs/tests/suites/casper/xpath.js:877 | |
uncaughtError: CasperError: Cannot dispatch click event on nonexistent selector: xpath selector: /html/body/a[2] | |
In /Users/andrew/github/casperjs/tests/suites/cli.js:0 | |
assertTitle: Clicking XPath works as expected | |
In /Users/andrew/github/casperjs/tests/suites/cli.js:0 | |
assertEvalEquals: Casper.fill() can fill an input[type=text] form field | |
In /Users/andrew/github/casperjs/tests/suites/coffee.coffee:0 | |
assertTitle: Casper.start() casper can start itself an open an url | |
In /Users/andrew/github/casperjs/tests/suites/coffee.coffee:0 | |
assertEquals: Casper.fetchText() can retrieves text contents | |
In /Users/andrew/github/casperjs/tests/suites/coffee.coffee:877 | |
uncaughtError: CasperError: Cannot dispatch click event on nonexistent selector: a[href="test.html"] | |
In /Users/andrew/github/casperjs/tests/suites/coffee.coffee:0 | |
assertTitle: Casper.click() casper can click on a text link | |
In /Users/andrew/github/casperjs/tests/suites/coffee.coffee:877 | |
uncaughtError: CasperError: Cannot dispatch click event on nonexistent selector: a[href="form.html"] | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 102 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 200 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 202 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 204 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 206 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 210 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 301 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 303 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 305 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 310 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 401 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 403 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 405 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 407 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 409 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 411 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 413 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 415 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 417 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 422 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 424 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 426 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 450 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 501 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 503 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 505 | |
In /Users/andrew/github/casperjs/tests/suites/http_status.js:0 | |
assertHttpStatus: HTTP status code is 509 | |
In /Users/andrew/github/casperjs/tests/suites/tester.js:0 | |
assertTextExists: Tester.assertTextExists() checks that page body contains text | |
In /Users/andrew/github/casperjs/tests/suites/tester.js:0 | |
assertHttpStatus: Tester.assertHttpStatus() works as expected | |
In /Users/andrew/github/casperjs/tests/suites/tester.js:0 | |
assertResourceExists: Tester.assertResourceExists() works as expected | |
In /Users/andrew/github/casperjs/tests/suites/tester.js:0 | |
assertTitle: Tester.assertTitle() works as expected | |
In /Users/andrew/github/casperjs/tests/suites/tester.js:0 | |
assertTitle: Tester.assertTitleMatch() works as expected | |
In /Users/andrew/github/casperjs/tests/suites/tester.js:0 | |
assertUrlMatch: Tester.assertUrlMatch() works as expected |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment