Skip to content

Instantly share code, notes, and snippets.

@igolden
Created February 16, 2017 15:47
Show Gist options
  • Save igolden/b9f72d1027355a829eb8ddfb9ba3c0e8 to your computer and use it in GitHub Desktop.
Save igolden/b9f72d1027355a829eb8ddfb9ba3c0e8 to your computer and use it in GitHub Desktop.
casperjs output, lots of good command references
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/agent.js
# userAgent() tests
PASS Default user agent matches /CasperJS/
PASS userAgent() tests (3 tests)
PASS Subject is strictly true
PASS Default user agent matches /plop/
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/alert.js
# alert events
PASS alert events (1 test)
PASS alert event has been intercepted
# Casper.waitForAlert() waits for an alert
PASS Casper.waitForAlert() waits for an alert (1 test)
PASS Casper.waitForAlert() can wait for an alert to be triggered
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/auth.js
# HTTP authentication tests
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS HTTP authentication tests (8 tests)
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/bypass.js
# Casper.bypass() can bypass a step
PASS step.bypassed event has been catched
PASS Casper.bypass() can bypass a step (2 tests)
PASS Step has been bypassed
# Casper.bypass() can bypass multiple steps
PASS Casper.bypass() can bypass multiple steps (1 test)
PASS This test should be executed.
# Casper.thenBypass()
PASS Casper.thenBypass() (1 test)
PASS This test should be executed.
# Casper.thenBypassIf()
PASS Casper.thenBypassIf() (3 tests)
PASS This test should be executed.
PASS This test should be executed.
PASS This test should be executed.
# Casper.thenBypassUnless()
PASS Casper.thenBypassUnless() (3 tests)
PASS This test should be executed.
PASS This test should be executed.
PASS This test should be executed.
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/callback.js
# callback events
PASS callback events (1 test)
PASS callback event has been intercepted
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/callutils.js
# Casper.callUtils()
PASS Casper.callUtils() (2 tests)
PASS Casper.callUtils() invokes a client side utility
PASS Casper.callUtils() raises an error if used inappropriately
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/capture.js
# Casper.capture() tests
PASS Casper.capture() tests (1 test)
PASS Casper.capture() captured a screenshot
# Casper.captureBase64() tests
PASS Casper.captureBase64() tests (3 tests)
PASS Casper.captureBase64() rendered a page capture as base64
PASS Casper.captureBase64() rendered a capture from a selector as base64
PASS Casper.captureBase64() rendered a capture from a clipRect as base64
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/click.js
# click() tests
PASS click() tests (2 tests)
PASS Casper.click() can click on a link
PASS Casper.thenClick() can click on a link
# onclick variants tests
PASS onclick variants tests (8 tests)
PASS Casper.click() can click an `href="javascript:` link
PASS Casper.click() can click an `href="#"` link
PASS Casper.click() can click an `onclick=".*; return false"` link
PASS Casper.click() can click an unobstrusive js handled link
PASS Casper.click() has clicked an `href="javascript:` link
PASS Casper.click() has clicked an `href="#"` link
PASS Casper.click() has clicked an `onclick=".*; return false"` link
PASS Casper.click() has clicked an unobstrusive js handled link
# clickLabel tests tests
PASS clickLabel tests tests (12 tests)
PASS Casper.clickLabel() can click an `href="javascript:` link
PASS Casper.clickLabel() can click an `href="#"` link
PASS Casper.clickLabel() can click an `onclick=".*; return false"` link
PASS Casper.clickLabel() can click an unobstrusive js handled link
PASS Casper.clickLabel() can click the link with double quotes in the label
PASS Casper.clickLabel() can click the link with the single quotes in the label
PASS Casper.clickLabel() has clicked an `href="javascript:` link
PASS Casper.clickLabel() has clicked an `href="#"` link
PASS Casper.clickLabel() has clicked an `onclick=".*; return false"` link
PASS Casper.clickLabel() has clicked an unobstrusive js handled link
PASS Casper.clickLabel() has clicked the link with double quotes in the label
PASS Casper.clickLabel() has clicked the link with single quotes in the label
# casper.mouse tests
PASS casper.mouse tests (4 tests)
PASS Mouse.down() has pressed button to the specified position
PASS Mouse.up() has released button to the specified position
PASS Mouse.move() has moved to the specified position
PASS Mouse.doubleclick() double-clicked the specified position
# element focus on click
PASS element focus on click (1 test)
PASS Casper.click() sets the focus on clicked element
# mouse events on click
PASS mouse events on click (3 tests)
PASS Casper.click() triggers mousedown event
PASS Casper.click() triggers mouseup event
PASS Casper.click() triggers click event
# mouse events on right click
PASS mouse events on right click (1 test)
PASS Casper.rightclick() triggers contextmenu event
# mouse events on right click with x,y co-ordinates
PASS mouse events on right click with x,y co-ordinates (1 test)
PASS Mouse.move() has moved to the specified position
# click() on coordinates in selector
PASS click() on coordinates in selector (6 tests)
PASS click() on specific X position 1
PASS click() on specific Y position 1
PASS click() on specific X position 2
PASS click() on specific Y position 2
PASS click() on specific X position with percent
PASS click() on specific Y position with percent
# click() on scroll in selector
PASS click() on scroll in selector (4 tests)
PASS Mouse.click() on default X position 50%
PASS Mouse.click() on default Y position 50%
PASS Mouse.click() on specific X position
PASS Mouse.move() on specific Y position
# casper.mouse() on coordinates in selector
PASS casper.mouse() on coordinates in selector (6 tests)
PASS Mouse.click() on default X position 50%
PASS Mouse.click() on default Y position 50%
PASS Mouse.click() on specific X position
PASS Mouse.move() on specific Y position
PASS Mouse.click() on specific X position with percent
PASS Mouse.click() on specific Y position with percent
# casper.mouse() on scroll in selector
PASS casper.mouse() on scroll in selector (4 tests)
PASS Mouse.click() on default X position 50%
PASS Mouse.click() on default Y position 50%
PASS Mouse.click() on specific X position
PASS Mouse.move() on specific Y position
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/confirm.js
# can confirm dialog
PASS can confirm dialog (2 tests)
PASS confirmation dialog accepted
PASS confirmation message is ok
# can cancel dialog
PASS can cancel dialog (1 test)
PASS confirmation dialog canceled
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/content.js
# Casper.getPageContent() text/html content
PASS Casper.getPageContent() text/html content (1 test)
PASS Casper.getPageContent() retrieves text/html content
# Casper.getPageContent() non text/html content
PASS Casper.getPageContent() non text/html content (2 tests)
PASS Casper.getPageContent() retrieves application/json content
PASS Casper.getPageContent() retrieves text/plain content
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/debug.js
# getHTML() tests
PASS getHTML() tests (2 tests)
PASS Casper.getHTML() retrieves inner HTML by default
PASS Casper.getHTML() can retrieve outer HTML
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/elementattribute.js
# getElementAttribute() tests
PASS getElementAttribute() tests (4 tests)
PASS Casper.getElementAttribute() works with a CSS selector
PASS Casper.getElementAttribute() works with a XPath selector
PASS Casper.getElementsAttribute() works with a CSS selector
PASS Casper.getElementsAttribute() works with a XPath selector
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/encode.js
# base64encode() and download() tests
PASS base64encode() and download() tests (2 tests)
PASS Casper.base64encode() can retrieve base64 contents
PASS Casper.download() downloads a file
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/encodedurl.js
# phantomjs 2.1.1 tests/site/has%20space.html then tests/site/index.html
PASS phantomjs 2.1.1 tests/site/has%20space.html then tests/site/index.html (8 tests)
PASS page.resource.requested 1
PASS page.resource.received 1
PASS status 200 for tests/site/has%20space.html
PASS opened tests/site/has%20space.html
PASS page.resource.requested 2
PASS page.resource.received 2
PASS status 200 for tests/site/index.html
PASS opened tests/site/index.html
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/evaluate.js
# mapping argument context
PASS Casper.evaluate() handles passed argument context correcly
PASS mapping argument context (1 test)
# handling no argument context
PASS Casper.evaluate() handles evaluation with no context passed
PASS handling no argument context (1 test)
# handling of object context (BC mode)
PASS Casper.evaluate() accepts an object as arguments context
PASS Casper.evaluate() accepts an object as arguments context
PASS Casper.evaluate() accepts an object as arguments context
PASS handling of object context (BC mode) (3 tests)
# handling of array context
PASS Casper.evaluate() accepts an array as arguments context
PASS Casper.evaluate() accepts an array as arguments context
PASS Casper.evaluate() accepts an array as arguments context
PASS handling of array context (3 tests)
# natural arguments context (phantomjs equivalent)
PASS Casper.evaluate() accepts natural arguments context
PASS Casper.evaluate() accepts natural arguments context
PASS Casper.evaluate() accepts natural arguments context
PASS natural arguments context (phantomjs equivalent) (3 tests)
# thenEvaluate() tests
PASS thenEvaluate() tests (2 tests)
PASS Casper.thenEvaluate() sets args
PASS Casper.thenEvaluate() sets args the same way evaluate() does
# evaluate() returns a value which can be altered
PASS evaluate() returns a value which can be altered (1 test)
PASS evaluate() returns a cloned value which can be altered
# evaluate() with js disabled, throws error
PASS evaluate() with js disabled, throws error (1 test)
PASS Casper.evaluate() raises an error if JavaScript is disabled in the page
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/events.js
# events
PASS on() has set an event handler
PASS emit() emits an event
PASS events (2 tests)
# filters
PASS setFilter() has set a filter
PASS filter() filters a value
PASS filter() applies the correct context
PASS filters (3 tests)
# events order
PASS mowed has the correct value
PASS mowed has the correct value
PASS events order (2 tests)
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/exists.js
# exists() tests
PASS exists() tests (2 tests)
PASS Casper.exists() can check if an element exists
PASS Casper.exists() can check than an element does not exist
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/fetchtext.js
# fetchText() basic tests
PASS fetchText() basic tests (1 test)
PASS Casper.fetchText() can retrieve text contents
# fetchText() basic tests
PASS fetchText() basic tests (1 test)
PASS Casper.fetchText() can retrieve text contents from an input element
# fetchText() handles HTML entities
PASS fetchText() handles HTML entities (1 test)
PASS Casper.fetchText() fetches decoded text
# fetchText() handles empty elements
PASS fetchText() handles empty elements (1 test)
PASS Casper.fetchText() fetches empty string
# fetchText() handles plain texts
PASS fetchText() handles plain texts (1 test)
PASS Casper.fetchText() handles plain texts
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/formfill.js
# fill() & fillNames() tests
PASS fill() & fillNames() tests (18 tests)
PASS can fill an input[type=text] form field
PASS can fill an input[type=password] form field
PASS can fill a textarea form field
PASS can pick a value from a select form field
PASS can pick a set of values from a multiselect form field
PASS can check a form checkbox
PASS can check a form radio button 1/2
PASS can check a form radio button 2/2
PASS can fill a list of checkboxes
PASS can select a file to upload
PASS input[type=email] field was submitted
PASS input[type=password] field was submitted
PASS textarea field was submitted
PASS input[type=checkbox] field was submitted
PASS input[type=radio] field was submitted
PASS select field was submitted
PASS multitopic select fields were submitted
PASS strangely typed input field was submitted
# fillLabels() tests
PASS fillLabels() tests (18 tests)
PASS can fill an input[type=text] form field
PASS can fill an input[type=password] form field
PASS can fill a textarea form field
PASS can pick a value from a select form field
PASS can pick a set of values from a multiselect form field
PASS can check a form checkbox
PASS can check a form radio button 1/2
PASS can check a form radio button 2/2
PASS can fill a list of checkboxes
PASS can select a file to upload
PASS input[type=email] field was submitted
PASS input[type=password] field was submitted
PASS textarea field was submitted
PASS input[type=checkbox] field was submitted
PASS input[type=radio] field was submitted
PASS select field was submitted
PASS multitopic select fields were submitted
PASS strangely typed input field was submitted
# fillSelectors() tests
PASS fillSelectors() tests (18 tests)
PASS can fill an input[type=text] form field
PASS can fill an input[type=password] form field
PASS can fill a textarea form field
PASS can pick a value from a select form field
PASS can pick a set of values from a multiselect form field
PASS can check a form checkbox
PASS can check a form radio button 1/2
PASS can check a form radio button 2/2
PASS can fill a list of checkboxes
PASS can select a file to upload
PASS input[type=email] field was submitted
PASS input[type=password] field was submitted
PASS textarea field was submitted
PASS input[type=checkbox] field was submitted
PASS input[type=radio] field was submitted
PASS select field was submitted
PASS multitopic select fields were submitted
PASS strangely typed input field was submitted
# fillXPath() tests
PASS fillXPath() tests (17 tests)
PASS can fill an input[type=text] form field
PASS can fill an input[type=password] form field
PASS can fill a textarea form field
PASS can pick a value from a select form field
PASS can pick a set of values from a multiselect form field
PASS can check a form checkbox
PASS can check a form radio button 1/2
PASS can check a form radio button 2/2
PASS can fill a list of checkboxes
PASS input[type=email] field was submitted
PASS input[type=password] field was submitted
PASS textarea field was submitted
PASS input[type=checkbox] field was submitted
PASS input[type=radio] field was submitted
PASS select field was submitted
PASS multitopic select fields were submitted
PASS strangely typed input field was submitted
# nonexistent fields
PASS nonexistent fields (1 test)
PASS Casper.fill() raises an exception when unable to fill a form
# multiple forms
PASS multiple forms (1 test)
PASS Casper.getFormValues() retrieves filled values when multiple forms have same field names
# file multiple
PASS file multiple (1 test)
PASS Evaluated function returns true
# field array
PASS field array (1 test)
PASS Casper.fill() handles array syntax field names
# getFormValues() tests
PASS getFormValues() tests (2 tests)
PASS Casper.getFormValues() retrieves filled values
PASS Casper.getFormValues() correctly retrieves values from radio inputs regardless of order
# fillSelectors() tests
PASS fillSelectors() tests (4 tests)
PASS can pick a value from a select form field by text value
PASS can pick a set of values from a multiselect form field by text value
PASS select field was submitted
PASS multitopic select fields were submitted
# setFieldValue() tests with css3 selector and form
PASS setFieldValue() tests with css3 selector and form (9 tests)
PASS can fill an input[type=text] form field
PASS can fill an input[type=password] form field
PASS can fill a textarea form field
PASS can pick a value from a select form field
PASS can pick a set of values from a multiselect form field
PASS can check a form checkbox
PASS can check a form radio button 1/2
PASS can check a form radio button 2/2
PASS can fill a list of checkboxes
# setFieldValue() tests with XPath selector
PASS setFieldValue() tests with XPath selector (9 tests)
PASS can fill an input[type=text] form field
PASS can fill an input[type=password] form field
PASS can fill a textarea form field
PASS can pick a value from a select form field
PASS can pick a set of values from a multiselect form field
PASS can check a form checkbox
PASS can check a form radio button 1/2
PASS can check a form radio button 2/2
PASS can fill a list of checkboxes
# setFieldValueName() tests
PASS setFieldValueName() tests (9 tests)
PASS can fill an input[type=text] form field
PASS can fill an input[type=password] form field
PASS can fill a textarea form field
PASS can pick a value from a select form field
PASS can pick a set of values from a multiselect form field
PASS can check a form checkbox
PASS can check a form radio button 1/2
PASS can check a form radio button 2/2
PASS can fill a list of checkboxes
# setFieldValueLabel() tests
PASS setFieldValueLabel() tests (9 tests)
PASS can fill an input[type=text] form field
PASS can fill an input[type=password] form field
PASS can fill a textarea form field
PASS can pick a value from a select form field
PASS can pick a set of values from a multiselect form field
PASS can check a form checkbox
PASS can check a form radio button 1/2
PASS can check a form radio button 2/2
PASS can fill a list of checkboxes
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/frames.js
# handling frames
PASS handling frames (16 tests)
PASS Page title is: "CasperJS frame 1"
PASS Find an element matching: #f1
PASS Fail to find element matching selector: #f2
PASS __utils__ object is available in child frame
PASS Subject matches the provided pattern
PASS Subject matches the provided pattern
PASS Page title is: "CasperJS frame 2"
PASS Find an element matching: #f2
PASS Fail to find element matching selector: #f1
PASS __utils__ object is available in other child frame
PASS Page title is: "CasperJS frame 3"
PASS Page title is: "CasperJS frame 1"
PASS Find an element matching: #f1
PASS Fail to find element matching selector: #f2
PASS Page title is: "CasperJS frame 3"
PASS Page title is: "CasperJS test frames"
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/getplaintext.js
# getPlainText() tests
PASS getPlainText() tests (1 test)
PASS Casper.getPlainText() can retrieve plain text with no content type
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/global.js
# getGLobal() tests
PASS getGLobal() tests (3 tests)
PASS Casper.getGlobal() can retrieve a remote global variable
PASS Casper.getGlobal() can retrieves a serializable object
PASS Casper.getGlobal() does not fail trying to encode an unserializable global
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/headers.js
# Casper.headers.get() using file protocol
PASS Casper.headers.get() using file protocol (1 test)
PASS Empty http response on local page
# Casper.headers.get() using http protocol
PASS Casper.headers.get() using http protocol (3 tests)
PASS Checking existing header (case sensitive)
PASS Checking existing header (case insensitive)
PASS Checking unexisting header
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/history.js
# handling navigation history
PASS handling navigation history (4 tests)
PASS Casper.back() can go back an history step
PASS Casper.forward() can go forward an history step
PASS Casper.history contains urls
PASS Casper.history has the correct first url
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/hooks.js
# onStepComplete() hook tests
PASS onStepComplete() hook tests (1 test)
PASS Casper.options.onStepComplete() is called on step complete
# onResourceRequested() & onResourceReceived() hook tests
PASS onResourceRequested() & onResourceReceived() hook tests (6 tests)
PASS onResourceRequested() receives page requests
PASS onResourceRequested() receives image requests
PASS onResourceReceived() receives page response on load start
PASS onResourceReceived() receives page response on load end
PASS onResourceReceived() receives image response on load start
PASS onResourceReceived() receives image response on load end
# onAlert() hook tests
PASS onAlert() hook tests (1 test)
PASS Casper.options.onAlert() can intercept an alert message
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/keys.js
# sendKeys() tests
PASS sendKeys() tests (4 tests)
PASS Casper.sendKeys() sends keys to given input
PASS Casper.sendKeys() sends keys to given input and keeps focus afterweards
PASS Casper.sendKeys() sends keys to given textarea
PASS Casper.sendKeys() sends keys to given input without type attribute
# sendKeys() works on content-editable elements
PASS sendKeys() works on content-editable elements (1 test)
PASS Find "A Clockwork Orange" within the selector "#content-editable-div"
# sendKeys() key modifiers tests
PASS sendKeys() key modifiers tests (1 test)
PASS sendKeys() uses key modifiers
# sendKeys() reset option
PASS sendKeys() reset option (1 test)
PASS Subject equals the expected value
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/location.js
# document.location tests
PASS document.location tests (1 test)
PASS document.location works as expected
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/logging.js
# logging tests
PASS logging tests (4 tests)
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
PASS Casper.log() logged messages
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/mouseevents.js
# mouseEvent() tests
PASS mouseEvent() tests (20 tests)
PASS Casper.mouseEvent() can dispatch a mousedown event
PASS Casper.mouseEvent() can dispatch a mousedown event handled by unobstrusive js
PASS Casper.mouseEvent() can dispatch a mouseup event
PASS Casper.mouseEvent() can dispatch a mouseup event handled by unobstrusive js
PASS Casper.mouseEvent() can dispatch a mouseover event
PASS Casper.mouseEvent() can dispatch a mouseover event handled by unobstrusive js
PASS Casper.mouseEvent() can dispatch a mouseout event
PASS Casper.mouseEvent() can dispatch a mouseout event handled by unobstrusive js
[error] [remote] mouseEvent(): Couldn't find any element matching '#test9' selector
PASS Casper.mouseEvent() can dispatch a click event on an hidden element
[error] [remote] mouseEvent(): Couldn't find any element matching '#test10' selector
PASS Casper.mouseEvent() can dispatch a click event handled by unobstrusive js on an hidden element
PASS Casper.mouseEvent() triggered mousedown
PASS Casper.mouseEvent() triggered mousedown via unobstrusive js
PASS Casper.mouseEvent() triggered mouseup
PASS Casper.mouseEvent() triggered mouseup via unobstrusive js
PASS Casper.mouseEvent() triggered mouseover
PASS Casper.mouseEvent() triggered mouseover via unobstrusive js
PASS Casper.mouseEvent() triggered mouseout
PASS Casper.mouseEvent() triggered mouseout via unobstrusive js
PASS Casper.mouseEvent() triggered click on an hidden element
PASS Casper.mouseEvent() triggered click on an hidden element via unobstrusive js
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/navigation.js
# Link Navigation updates response
PASS Link Navigation updates response (2 tests)
PASS URL matches anchor href
PASS response is consistent with the internal page
# Form Submittal updates the response
PASS Form Submittal updates the response (2 tests)
PASS URL matches form action
PASS response is consistent with the internal page
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/newpage.js
# newPage() tests
PASS Casper.start() started
PASS newPage() tests (5 tests)
PASS Casper.start() opened the first page
PASS Casper.start() injects ClientUtils instance within remote DOM
PASS casper.newPage() created a new page object
PASS Casper.newPage() injects ClientUtils instance within remote DOM
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/onerror.js
# page.error event tests
PASS page.error event tests (2 tests)
PASS page.error event has been caught OK
PASS page.error retrieves correct stack trace
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/open.js
# open() GET tests
PASS open() GET tests (2 tests)
PASS Casper.open() can open and load a location using GET
PASS Casper.open() used the expected GET settings
# open() GET casing tests
PASS open() GET casing tests (2 tests)
PASS Casper.open() can open and load a location using GET
PASS Casper.open() used the expected GET settings
# open() (JS disabled) tests
PASS open() (JS disabled) tests (3 tests)
PASS Casper.open() can open and load a location using GET, with JS disabled
PASS Casper.open() used the expected GET settings
PASS Response Code is 200
# open() POST tests
PASS open() POST tests (2 tests)
PASS Casper.open() can open and load a location using POST
PASS Casper.open() used the expected POST settings
# open() POST casing tests
PASS open() POST casing tests (2 tests)
PASS Casper.open() can open and load a location using POST
PASS Casper.open() used the expected POST settings
# open() POST json object
PASS open() POST json object (2 tests)
PASS Casper.open() can POST a JSON object
PASS Casper.open() used the expected POST settings
# open() POST json object with charset info
PASS open() POST json object with charset info (2 tests)
PASS Casper.open() can POST a JSON object
PASS Casper.open() used the expected POST settings
# open() PUT tests
PASS open() PUT tests (2 tests)
PASS Casper.open() can open and load a location using PUT
PASS Casper.open() used the expected PUT settings
# open() PUT casing tests
PASS open() PUT casing tests (2 tests)
PASS Casper.open() can open and load a location using PUT
PASS Casper.open() used the expected PUT settings
# open() PUT tests
PASS open() PUT tests (2 tests)
PASS Casper.open() can open and load a location using HTTP auth
PASS Casper.open() used the expected HTTP auth settings
# open() PUT tests
PASS open() PUT tests (2 tests)
PASS Casper.thenOpen() can open and load a location using GET
PASS Casper.thenOpen() used the expected GET settings
# open() PUT tests
PASS open() PUT tests (2 tests)
PASS Casper.thenOpen() can open and load a location using POST
PASS Casper.thenOpen() used the expected POST settings
# open() PUT tests
PASS open() PUT tests (2 tests)
PASS Casper.thenOpen() can open and load a location using PUT
PASS Casper.thenOpen() used the expected PUT settings
# open() PUT tests
PASS open() PUT tests (2 tests)
PASS Casper.thenOpen() can open and load a location using HTTP auth
PASS Casper.thenOpen() used the expected HTTP auth settings
# open() POST json object with utf8 content
PASS open() POST json object with utf8 content (2 tests)
PASS Casper.open() can POST a JSON object
PASS Casper.open() used the expected POST settings
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/popup.js
# popup tests
PASS popup tests (22 tests)
PASS "popup.created" event is fired
PASS "popup.created" event callback get a popup page instance
PASS "popup.loaded" event is fired
PASS "popup.loaded" is triggered when popup content is actually loaded
PASS Casper.waitForPopup() waits for a popup being created
PASS A popup has been added
PASS A popup is a WebPage
PASS Casper.withPopup() found a popup with expected title
PASS Casper.withPopup() found a popup with expected text
PASS Casper.withPopup() switched to popup as current active one
PASS Casper.withPopup() has client utils injected
PASS Casper.withPopup() can perform assertions on the DOM
PASS Casper.withPopup() can perform assertions on the DOM using XPath
PASS Casper.withPopup() has reverted to main page after using the popup
PASS "popup.closed" event is fired
PASS Popup is removed when closed
PASS Casper.waitForPopup() waits for a popup being created
PASS Casper.withPopup() can use a regexp to identify popup
PASS Casper.withPopup() has reverted to main page after using the popup
PASS Popup is removed when closed
PASS Casper.waitForPopup() waits when clicked on a link with target=_blank
PASS Page title is: "CasperJS test form"
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/prompt.js
# prompt tests
PASS prompt tests (1 test)
PASS prompted value has been received
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/reload.js
# reload() tests
PASS reload() tests (3 tests)
PASS Subject is strictly true
PASS Current url matches the provided pattern
PASS "email" input field has the value ""
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/request.js
# requests tests
PASS requests tests (3 tests)
PASS Casper.open() sets no custom header by default
PASS Casper.open() can set a custom header
PASS Casper.open() custom headers option is not persistent
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/resources.js
# Basic resources tests
PASS Basic resources tests (5 tests)
PASS only one resource found
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
# "resource.error" event
PASS "resource.error" event (3 tests)
Test server url not found: /tests/site/non-existant.html (file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs//tests/site/non-existant.html) warning
PASS "resource.error" triggered error information
PASS "resource.error" error code is correct
PASS "resource.error" url is correct
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/scripts.js
# remote script includes tests
PASS remote script includes tests (4 tests)
PASS Casper.includeRemoteScripts() includes a first remote script on start
PASS Casper.includeRemoteScripts() includes a second remote script on start
PASS Casper.includeRemoteScripts() includes a first remote script on second step
PASS Casper.includeRemoteScripts() includes a second remote script on second step
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/scroll.js
# Casper.scrollTo()
PASS Casper.scrollTo() (2 tests)
PASS scrollTo() scrolls to X position
PASS scrollTo() scrolls to Y position
# Casper.scrollToBottom()
PASS Casper.scrollToBottom() (1 test)
PASS scrollToBottom() scrolls to max Y by default
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/start.js
# start() tests
PASS Casper.start() started
PASS start() tests (4 tests)
PASS Casper.start() can chain a next step
PASS Casper.start() opened the passed url
PASS Casper.start() injects ClientUtils instance within remote DOM
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/steps.js
# steps tests
PASS Casper.then() can add a new step
PASS Casper.thenOpen() can add a new step
PASS Casper.thenOpen() can add a new step for opening, plus another step
PASS Casper.each() passes a contextualized index
PASS Casper.each() passes a contextualized index
PASS Casper.each() passes a contextualized index
PASS steps tests (8 tests)
PASS Casper.then() added a new step
PASS Casper.thenOpen() opened a location and executed a step
# eachThen() tests
PASS eachThen() tests (2 tests)
PASS Casper.eachThen() passes item to step data
PASS Casper.eachThen() passes falsy items to step data
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/urls.js
# urls tests
PASS urls tests (9 tests)
PASS HTTP status code is: 200
PASS Casper.start loads URL with fragment
PASS location.hash equals fragment
PASS HTTP status code is: 200
PASS Casper.getCurrentUrl() retrieves a raw unicode URL
PASS HTTP status code is: 200
PASS Casper.getCurrentUrl() retrieves an escaped URL
PASS HTTP status code is: 200
PASS Casper.getCurrentUrl() retrieves a decoded URL
# url tests with javascript disabled
PASS url tests with javascript disabled (1 test)
PASS Casper.getCurrentUrl() can work, with javascript disabled
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/viewport.js
# viewport() tests
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
PASS viewport() tests (3 tests)
# viewport() asynchronous tests
PASS viewport() asynchronous tests (2 tests)
PASS Casper.viewport() changes width asynchronously
PASS Casper.viewport() changes height asynchronously
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/visible.js
# visibility tests
PASS visibility tests (5 tests)
PASS Casper.visible() can detect if an element is invisible
PASS Casper.visible() can detect if an element is visible
PASS Casper.visible() can detect if an element is invisible
PASS Casper.visible() can detect if an element is visible
PASS Casper.waitWhileVisible() can wait while an element is visible
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/wait.js
# wait() tests
PASS wait() tests (1 test)
PASS Casper.wait() can wait for a given amount of time
# waitFor() tests
PASS waitFor() tests (2 tests)
PASS Casper.waitFor() can wait for something to happen
PASS waitFor() processes onTimeout callback
# waitForResource() tests
PASS waitForResource() tests (2 tests)
PASS Casper.waitForResource() waits for a resource
PASS Casper.waitForResource() waits for a resource using RegExp
# waitForSelector() tests
PASS waitForSelector() tests (1 test)
PASS Casper.waitForSelector() waits for a selector to exist
# waitForText() tests
PASS waitForText() tests (3 tests)
PASS Casper.waitForText() can wait for text
PASS Casper.waitForText() can wait for regexp
PASS Casper.waitForText() can wait for decoded HTML text
# waitForSelectorTextChange() tests
PASS waitForSelectorTextChange() tests (1 test)
PASS Casper.waitForSelectorTextChange() can wait for text on a selector to change
# waitUntilVisible() tests
PASS waitUntilVisible() tests (2 tests)
PASS Casper.waitUntilVisible() waits for a selector being visible
PASS Casper.waitUntilVisible() waits for a selector being visible
# waitForUrl() regexp tests
PASS waitForUrl() regexp tests (1 test)
PASS Casper.waitForUrl() waits for a given regexp url
# waitForUrl() string tests
PASS waitForUrl() string tests (1 test)
PASS Casper.waitForUrl() waits for a given string url
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/xpath.js
# XPath tests
PASS XPath tests (6 tests)
PASS XPath selector can find an element
PASS XPath selector does not retrieve a nonexistent element
PASS selectXPath() shortcut can find an element as well
PASS Correct number of elements are found
PASS Clicking XPath works as expected
PASS Casper.fill() can fill an input[type=text] form field
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/cli.js
# parsing an empty argument list
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 parsing an empty argument list (12 tests)
# parsing an basic argument list
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 parsing an basic argument list (14 tests)
# parsing some options
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 parsing some options (12 tests)
# parsing an empty argument list
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 parsing an empty argument list (8 tests)
# parsing commands containing args and options
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
PASS drop() dropped arg
PASS drop() dropped option
PASS drop() dropped raw option
PASS drop() did not affect other args
PASS drop() did not affect other options
PASS parse() cast and raw args share same length
PASS parse() cast and raw options share same length
PASS parse() returns expected positional raw args array
PASS parse() returns expected options raw object
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
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
PASS drop() dropped raw option
PASS drop() dropped cast option as well
PASS parsing commands containing args and options (34 tests)
# default values
PASS get() can return a default arg value
PASS get() can return a default option value
PASS default values (2 tests)
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/clientutils.js
# ClientUtils.encode() tests
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
PASS ClientUtils.encode() tests (6 tests)
# ClientUtils.exists() tests
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
PASS ClientUtils.exists() tests (5 tests)
# ClientUtils.findAll() tests
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
PASS ClientUtils.findAll() can find matching DOM elements within a given scope
PASS ClientUtils.findAll() can find matching DOM elements using XPath within a given scope
PASS ClientUtils.findAll() tests (7 tests)
# ClientUtils.findOne() tests
PASS ClientUtils.findOne() can find a matching DOM element
PASS ClientUtils.findOne() can find a matching DOM element
PASS ClientUtils.findOne() can find a matching DOM element within a given scope
PASS ClientUtils.findOne() can find a matching DOM element using XPath within a given scope
PASS ClientUtils.findOne() tests (4 tests)
# ClientUtils.processSelector() tests
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
PASS ClientUtils.processSelector() tests (6 tests)
# ClientUtils.getElementBounds() tests
PASS ClientUtils.getElementBounds() tests (3 tests)
PASS ClientUtils.getElementBounds() retrieves element boundaries
PASS ClientUtils.getElementsBounds() retrieves multiple elements boundaries
PASS ClientUtils.getElementsBounds() retrieves multiple elements boundaries
# ClientUtils.getElementBounds() page zoom factor tests
PASS ClientUtils.getElementBounds() page zoom factor tests (3 tests)
PASS ClientUtils.getElementBounds() is aware of the page zoom factor
PASS ClientUtils.getElementsBounds() is aware of the page zoom factor
PASS ClientUtils.getElementsBounds() is aware of the page zoom factor
# ClientUtils.getElementInfo() tests
PASS ClientUtils.getElementInfo() retrieves element name
PASS ClientUtils.getElementInfo() retrieves element attributes
PASS ClientUtils.getElementInfo() retrieves element html content
PASS ClientUtils.getElementInfo() retrieves element text
PASS ClientUtils.getElementInfo() retrieves element x pos
PASS ClientUtils.getElementInfo() retrieves element y pos
PASS ClientUtils.getElementInfo() retrieves element width
PASS ClientUtils.getElementInfo() retrieves element height
PASS ClientUtils.getElementInfo() retrieves element visibility
PASS ClientUtils.getElementInfo() retrieves element whole tag contents
# ClientUtils.getElementsInfo() first element tests
PASS ClientUtils.getElementsInfo() retrieves first element name
PASS ClientUtils.getElementsInfo() retrieves first element attributes
PASS ClientUtils.getElementsInfo() retrieves first element html content
PASS ClientUtils.getElementsInfo() retrieves first element text
PASS ClientUtils.getElementsInfo() retrieves first element x pos
PASS ClientUtils.getElementsInfo() retrieves first element y pos
PASS ClientUtils.getElementsInfo() retrieves first element width
PASS ClientUtils.getElementsInfo() retrieves first element height
PASS ClientUtils.getElementsInfo() retrieves first element visibility
PASS ClientUtils.getElementsInfo() retrieves first element whole tag contents
# ClientUtils.getElementsInfo() second element tests
PASS ClientUtils.getElementsInfo() retrieves second element name
PASS ClientUtils.getElementsInfo() retrieves second element attributes
PASS ClientUtils.getElementsInfo() retrieves second element html content
PASS ClientUtils.getElementsInfo() retrieves second element text
PASS ClientUtils.getElementsInfo() retrieves second element x pos
PASS ClientUtils.getElementsInfo() retrieves second element y pos
PASS ClientUtils.getElementsInfo() retrieves second element width
PASS ClientUtils.getElementsInfo() retrieves second element height
PASS ClientUtils.getElementsInfo() retrieves second element visibility
PASS ClientUtils.getElementsInfo() retrieves second element whole tag contents
# ClientUtils.getElementInfo() visibility tests
PASS ClientUtils.getElementInfo() retrieves element visibility with display inline
PASS ClientUtils.getElementInfo() retrieves element visibility with display inline-block
PASS ClientUtils.getElementInfo() retrieves element visibility with visibility hidden
PASS ClientUtils.getElementInfo() retrieves element visibility with display none
# ClientUtils.makeSelector() tests
PASS ClientUtils.makeSelector() can process a CSS3 selector
PASS ClientUtils.makeSelector() can process a XPath selector
PASS ClientUtils.makeSelector() can process a XPath selector
PASS ClientUtils.makeSelector() can process a XPath selector
PASS ClientUtils.makeSelector() can process a XPath selector
PASS ClientUtils.makeSelector() can process a Label selector
PASS ClientUtils.makeSelector() can process a Label selector
PASS ClientUtils.makeSelector() can process a Label selector
PASS ClientUtils.makeSelector() tests (8 tests)
PASS ClientUtils.getElementInfo() visibility tests (4 tests)
PASS ClientUtils.getElementsInfo() second element tests (10 tests)
PASS ClientUtils.getElementsInfo() first element tests (10 tests)
PASS ClientUtils.getElementInfo() tests (10 tests)
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/fs.js
# fs.dirname() tests
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:
PASS fs.dirname() tests (8 tests)
# fs.isWindows() tests
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
PASS fs.isWindows() tests (6 tests)
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/http_status.js
# HTTP status code handling
PASS HTTP status code handling (163 tests)
PASS file:// protocol does not set a HTTP status
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 101 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 200 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 201 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 202 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 203 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 204 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 205 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 206 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 207 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 210 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 300 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 301 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 302 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 303 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 304 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 305 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 307 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 310 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 102 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 118 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 400 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 401 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 402 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 403 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 404 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 405 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 406 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 407 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 409 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 410 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 411 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 412 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 413 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 414 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 415 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 416 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 417 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 418 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 422 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 423 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 424 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 425 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 426 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 449 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 450 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 500 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 501 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 502 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 503 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 504 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 505 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 507 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 509 handled
PASS Status is stored in resource.status
PASS Status is stored in casper.currentHTTPStatus
PASS HTTP 408 handled
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/pagestack.js
# pagestack module tests
PASS Subject equals the expected value
PASS Subject is strictly true
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject is strictly true
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS pagestack module tests (14 tests)
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/require.js
# Javascript module loading
PASS require() patched version can load a js module
PASS Javascript module loading (1 test)
# JSON module loading
PASS require() patched version can load a json module
PASS JSON module loading (1 test)
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/tester/assert.js
# Common assertions tests
PASS Common assertions tests (50 tests)
PASS Tester.assertTextExists() checks that page body contains text
PASS Tester.assertTextExist() checks that page body contains text [alias]
PASS Tester.assertTextDoesntExist() checks that page body doesn't contain provided text
PASS Tester.assertSelectorHasText() works as expected
PASS Tester.assertSelectorDoesntHaveText() works as expected
PASS Tester.assert() works as expected
PASS Tester.assertTrue() works as expected [alias]
PASS Tester.assertTruthy() works as expected
PASS Tester.assertFalsy() works as expected
PASS Tester.assertNot() works as expected
PASS Tester.assertEquals() works as expected
PASS Tester.assertEqual() works as expected [alias]
PASS Tester.assertNotEquals() works as expected
PASS Tester.assertEval() works as expected
PASS Tester.assertEvaluate() works as expected [alias]
PASS Tester.assertEvalEquals() works as expected
PASS Tester.assertEvalEqual() works as expected [alias]
PASS Tester.assertElementCount() works as expected
PASS Tester.assertElementCount() works as expected
PASS Tester.assertElementCount() works as expected
PASS Tester.assertExists() works as expected
PASS Tester.assertExist() works as expected [alias]
PASS Tester.assertFail() tests for a failing assertion
PASS Tester.assertSelectorExists() works as expected [alias]
PASS Tester.assertSelectorExist() works as expected [alias]
PASS Tester.assertDoesntExist() works as expected
PASS Tester.assertNotExists() works as expected [alias]
PASS Tester.assertHttpStatus() works as expected
PASS Tester.assertMatch() works as expected
PASS Tester.assertMatches() works as expected [alias]
PASS Tester.assertRaises() works as expected
PASS Tester.assertRaises() doesn't pass when no error is thrown
PASS Tester.assertResourceExists() works as expected
PASS Tester.assertResourceExist() works as expected [alias]
PASS Tester.assertTitle() works as expected
PASS Tester.assertTitleMatch() works as expected
PASS Tester.assertTitleMatches() works as expected [alias]
PASS Tester.assertType() works as expected
PASS Tester.assertInstanceOf() works as expected
PASS Tester.assertUrlMatch() works as expected
PASS Tester.assertUrlMatches() works as expected [alias]
PASS Tester.assertVisible() works as expected
PASS Tester.assertAllVisible() passes as expected
PASS Tester.assertAllVisible() fails as expected.
PASS Tester.assertNotVisible() works as expected
PASS Tester.assertInvisible() works as expected [alias]
PASS Tester.assertExists() works as expected with reserved word id
# Tester.assertField(): filled inputs
PASS Tester.assertField(): filled inputs (7 tests)
PASS Tester.assertField() works as expected with inputs
PASS Tester.assertField() works as expected with textarea
PASS Tester.assertField() works as expected with checkboxes
PASS Tester.assertField() works as expected with radios
PASS Tester.assertField() works as expected with selects
PASS Tester.assertField() works as expected with file inputs
PASS Tester.assertField() works as expected with check lists
# Tester.assertField(): unfilled inputs
PASS Tester.assertField(): unfilled inputs (7 tests)
PASS Tester.assertField() works as expected with inputs
PASS Tester.assertField() works as expected with textarea
PASS Tester.assertField() works as expected with checkboxes
PASS Tester.assertField() works as expected with radios
PASS Tester.assertField() works as expected with selects
PASS Tester.assertField() works as expected with file inputs
PASS Tester.assertField() works as expected with check lists
# Tester.assertField(): nonexistent fields
PASS Tester.assertField(): nonexistent fields (2 tests)
PASS Tester.assertField() only checks for existing fields
# Tester.assertField(): CSS selectors
PASS Tester.assertField(): CSS selectors (1 test)
PASS Tester.assertField() works as expected with CSS selectors
# Tester.assertField(): XPath selectors
PASS Tester.assertField(): XPath selectors (1 test)
PASS Tester.assertField() works as expected with XPath selectors
# Tester.assertField(): invalid selectors
PASS Tester.assertField(): invalid selectors (1 test)
PASS should throw an error for an invalid selector
# Tester.assertFieldCSS(): CSS selectors
PASS Tester.assertFieldCSS(): CSS selectors (1 test)
PASS Tester.assertFieldCSS() works as expected with CSS selectors
# Tester.assertFieldXPath(): XPath selectors
PASS Tester.assertFieldXPath(): XPath selectors (1 test)
PASS Tester.assertFieldXPath() works as expected with XPath selectors
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/tester/begin-config.js
# Tester.begin() configuration
PASS config.setUp() has been called
PASS config.setUp() is using the expected context
PASS config.setUp() accesses fixtures
PASS config.test() has been called
PASS config.tearDown() is using the expected context
PASS config.test() accesses fixtures
PASS config.tearDown() has been called
PASS config.test() is using the expected context
PASS config.tearDown() accesses fixtures
PASS Tester.begin() has processed the configuration in the expected order
PASS Tester.begin() configuration (10 tests)
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/tester/setup-teardown-async.js
# setUp() tests
PASS Tester.setUp() executed the async setup function
PASS setUp() tests (1 test)
# tearDown() tests
PASS Tester.tearDown() executed the async tear down function
PASS tearDown() tests (1 test)
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/tester/setup-teardown.js
# setUp() tests
PASS Tester.setUp() executed the setup function
PASS setUp() tests (1 test)
# tearDown() tests
PASS Tester.tearDown() executed the tear down function
PASS tearDown() tests (1 test)
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/tester/skip.js
# Skip tests after
PASS First test executed
PASS Second test executed
SKIP Two tests skipped
PASS Skip tests after (4 tests)
# Skip tests before
SKIP Two tests skipped
PASS Third test executed
PASS Fourth test executed
PASS Skip tests before (4 tests)
# Skip tests (asynchronous)
PASS Skip tests (asynchronous) (1 test)
SKIP 1 test skipped
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/tester/test-order.js
# Tester.sortFiles()
PASS findTestFiles() find test files and sort them
PASS Tester.sortFiles() (1 test)
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/tester/testcase.js
# TestCaseResult.constructor() tests
PASS TestCaseResult.constructor() name is undefined by default
PASS TestCaseResult.constructor() file is undefined by default
PASS TestCaseResult.constructor() can set name
PASS TestCaseResult.constructor() can set file
PASS TestCaseResult.constructor() tests (4 tests)
# TestCaseResult.addSuccess() and TestCaseResult.addFailure() tests
PASS test case result counts no assertion by default
PASS test case result counts no success by default
PASS test case result counts no failure by default
PASS TestCaseResult.calculateDuration() computes initial tests duration
PASS test case result counts one assertion
PASS test case result counts one success
PASS test case result counts no failure
PASS TestCaseResult.addSuccess() added a success to the stack
PASS TestCaseResult.addSuccess() added test duration
PASS TestCaseResult.addSuccess() added suite name
PASS TestCaseResult.calculateDuration() computes tests duration
PASS test case result counts two assertions
PASS test case result counts one success
PASS test case result counts no failure
PASS TestCaseResult.addFailure() added a failure to the stack
PASS TestCaseResult.addFailure() added test duration
PASS TestCaseResult.addFailure() added suite name
PASS TestCaseResult.calculateDuration() computes new tests duration
PASS test case result counts three assertions
PASS test case result counts two successes
PASS test case result counts one failure
PASS TestCaseResult.calculateDuration() computes new tests duration
PASS TestCaseResult.addSuccess() and TestCaseResult.addFailure() tests (22 tests)
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/tester/testsuite.js
# TestSuiteResult() basic tests
PASS TestSuiteResult() is derived from Array
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS TestSuiteResult() basic tests (8 tests)
# TestSuiteResult() accumulation tests
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS TestSuiteResult() accumulation tests (7 tests)
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/utils.js
# utils.betterTypeOf() tests
PASS betterTypeOf() detects expected type "number"
PASS betterTypeOf() detects expected type "string"
PASS betterTypeOf() detects expected type "object"
PASS betterTypeOf() detects expected type "array"
PASS betterTypeOf() detects expected type "undefined"
PASS betterTypeOf() detects expected type "null"
PASS betterTypeOf() detects expected type "function"
PASS betterTypeOf() detects expected type "domwindow"
PASS betterTypeOf() detects expected type "date"
PASS betterTypeOf() detects expected type "regexp"
PASS utils.betterTypeOf() tests (10 tests)
# utils.betterInstanceOf() tests
PASS betterInstanceOf() detects expected constructor "Number"
PASS betterInstanceOf() detects expected constructor "String"
PASS betterInstanceOf() detects expected constructor "Object"
PASS betterInstanceOf() detects expected constructor "Array"
PASS betterInstanceOf() detects expected constructor "Array"
PASS betterInstanceOf() detects expected constructor "Array"
PASS betterInstanceOf() detects expected constructor "Function"
PASS betterInstanceOf() detects expected constructor "Date"
PASS betterInstanceOf() detects expected constructor "RegExp"
PASS betterInstanceOf() detects expected constructor "undefined"
PASS betterInstanceOf() detects expected constructor "Cow"
PASS betterInstanceOf() detects expected constructor "SuperCow"
PASS betterInstanceOf() detects expected constructor "Cow"
PASS utils.betterInstanceOf() tests (13 tests)
# utils.cleanUrl() tests
PASS cleanUrl() cleans an URL
PASS cleanUrl() cleans an URL
PASS cleanUrl() cleans an URL
PASS cleanUrl() cleans an URL
PASS cleanUrl() cleans an URL
PASS cleanUrl() cleans an URL
PASS cleanUrl() cleans an URL
PASS cleanUrl() cleans an URL
PASS cleanUrl() cleans an URL
PASS cleanUrl() cleans an URL
PASS cleanUrl() cleans an URL
PASS utils.cleanUrl() tests (11 tests)
# utils.clone() tests
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS utils.clone() tests (2 tests)
# utils.computeModifier() tests
PASS Subject type is: "object"
PASS computeModifier() computes a "none" modifier
PASS computeModifier() computes an "alt" modifier
PASS computeModifier() computes a "ctrl+alt" modifier
PASS computeModifier() computes a "ctrl+alt+shift" modifier
PASS computeModifier() checks for a valid modifier
PASS computeModifier() checks for a valid complex modifier
PASS utils.computeModifier() tests (7 tests)
# decodeUrl() tests
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS Subject equals the expected value
PASS decodeUrl() tests (4 tests)
# equals() tests
PASS equals() null equality
PASS equals() null vs. undefined inequality
PASS equals() string equality
PASS equals() string inequality
PASS equals() number equality
PASS equals() number equality without implicit cast
PASS equals() number equality with cast
PASS equals() number inequality
PASS equals() empty array equality
PASS equals() array equality
PASS equals() complex array equality
PASS equals() complex array inequality
PASS equals() shuffled array inequality
PASS equals() array length inequality
PASS equals() empty object equality
PASS equals() object length equality
PASS equals() shuffled object keys equality
PASS equals() object inequality
PASS equals() complex object equality
PASS equals() complex object inequality
PASS equals() function equality
PASS equals() function inequality
PASS equals() arrays of objects
PASS equals() tests (23 tests)
# fileExt() tests
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
PASS fileExt() tests (6 tests)
# fillBlanks() tests
PASS fillBlanks() fills blanks
PASS fillBlanks() fills blanks
PASS fillBlanks() fills blanks
PASS fillBlanks() tests (3 tests)
# getPropertyPath() tests
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
PASS getPropertyPath() tests (7 tests)
# isArray() tests
PASS isArray() checks for an Array
PASS isArray() checks for an Array
PASS isArray() checks for an Array
PASS isArray() tests (3 tests)
# isClipRect() tests
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
PASS isClipRect() tests (5 tests)
# isHTTPResource() tests
PASS isHTTPResource() checks for an HTTP resource
PASS isHTTPResource() checks for an HTTP resource
PASS isHTTPResource() checks for an HTTP resource
PASS isHTTPResource() checks for an HTTP resource
PASS isHTTPResource() checks for an HTTP resource
PASS isHTTPResource() checks for an HTTP resource
PASS isHTTPResource() tests (6 tests)
# isObject() tests
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
PASS isObject() tests (8 tests)
# isValidSelector() tests
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
PASS isValidSelector() tests (10 tests)
# isWebPage() tests
PASS isWebPage() checks for a WebPage instance
PASS isWebPage() checks for a WebPage instance
PASS isWebPage() checks for a WebPage instance
PASS isWebPage() tests (3 tests)
# isJsFile() tests
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
PASS isJsFile() tests (5 tests)
# mergeObjects() tests
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
PASS mergeObjects() can merge objects
PASS mergeObjects() creates deep clones #1
PASS mergeObjects() creates deep clones #2
PASS disabling references should not point to same object
PASS enabling references should point to same object
PASS mergeObjects() tests (10 tests)
# objectValues() tests
PASS objectValues() can extract object values
PASS objectValues() can extract object values
PASS objectValues() tests (2 tests)
# quoteXPathAttributeString() tests
PASS quoteXPathAttributeString() tests (2 tests)
PASS Xpath selector "//a[text()=concat("Label with double ", '"', "quotes", '"', "")]" is found on "tests/site/click.html" page
PASS Xpath selector "//a[text()="Label with single 'quotes'"]" is found on "tests/site/click.html" page
# unique() tests
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
# cmpVersion() tests
PASS cmpVersion() can compare version strings
PASS cmpVersion() can compare version strings
PASS cmpVersion() can compare version strings
PASS cmpVersion() can compare version strings
PASS cmpVersion() can compare version strings
PASS cmpVersion() can compare version strings
PASS cmpVersion() can compare version strings
PASS cmpVersion() can compare version objects
PASS cmpVersion() can compare version objects
PASS cmpVersion() can compare version objects
# gteVersion() tests
PASS gteVersion() checks for a greater or equal version
PASS gteVersion() checks for a greater or equal version
PASS gteVersion() checks for a greater or equal version
PASS gteVersion() checks for a greater or equal version
# ltVersion() tests
PASS ltVersion() checks for a lesser version
PASS ltVersion() checks for a lesser version
PASS ltVersion() checks for a lesser version
PASS ltVersion() checks for a lesser version
PASS ltVersion() tests (4 tests)
PASS gteVersion() tests (4 tests)
PASS cmpVersion() tests (10 tests)
PASS unique() tests (4 tests)
Test file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/xunit.js
# XUnitReporter() initialization
PASS XML can be generated
PASS XUnitReporter() initialization (1 test)
# XUnitReporter() can hold test suites
PASS 2 test suites exist
PASS Element 'testsuites' has time attribute
PASS Package foo exists
PASS Package bar exists
PASS XUnitReporter() can hold test suites (4 tests)
# XUnitReporter() can hold a suite with a successful test
PASS Successful test case exists
PASS XUnitReporter() can hold a suite with a successful test (1 test)
# XUnitReporter() can handle a failed test
PASS Failure node exists
PASS Subject equals the expected value
PASS XUnitReporter() can handle a failed test (2 tests)
# XUnitReporter() can handle custom name attribute for a test case
PASS Failure node exists
PASS Subject equals the expected value
PASS XUnitReporter() can handle custom name attribute for a test case (2 tests)
# XUnitReporter() does not have default XML namespace
PASS No default namespace
PASS XUnitReporter() does not have default XML namespace (1 test)
# XUnitReporter() can handle markup in nodes
PASS Node exists
PASS Handles markup in failure node
PASS Handles markup in error node
PASS Handles markup in error node
PASS XUnitReporter() can handle markup in nodes (4 tests)
PASS 1113 tests executed in 24.184s, 1113 passed, 0 failed, 0 dubious, 5 skipped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment