Commit e55c9ffd e55c9ffdf2933c0194e3d99f6f582bdd364f9c09 by Nicolas Perriault

Merge remote-tracking branch 'starlocke/fix_189' into pr-190

2 parents 8d4083b9 26a85b0e
......@@ -248,7 +248,7 @@ var Tester = function Tester(casper, options) {
this.assertExists = this.assertExist = this.assertSelectorExists = this.assertSelectorExist = function assertExists(selector, message) {
return this.assert(casper.exists(selector), message, {
type: "assertExists",
standard: f("Found an element matching %s", this.colorize(selector, 'COMMENT')),
standard: f("Found an element matching: %s", selector),
values: {
selector: selector
}
......@@ -266,7 +266,7 @@ var Tester = function Tester(casper, options) {
this.assertDoesntExist = this.assertNotExists = function assertDoesntExist(selector, message) {
return this.assert(!casper.exists(selector), message, {
type: "assertDoesntExist",
standard: f("No element matching selector %s is found", this.colorize(selector, 'COMMENT')),
standard: f("No element found matching selector: %s", selector),
values: {
selector: selector
}
......@@ -284,7 +284,7 @@ var Tester = function Tester(casper, options) {
var currentHTTPStatus = casper.currentHTTPStatus;
return this.assert(this.testEquals(casper.currentHTTPStatus, status), message, {
type: "assertHttpStatus",
standard: f("HTTP status code is %s", this.colorize(status, 'COMMENT')),
standard: f("HTTP status code is: %s", status),
values: {
current: currentHTTPStatus,
expected: status
......@@ -402,7 +402,7 @@ var Tester = function Tester(casper, options) {
var currentTitle = casper.getTitle();
return this.assert(this.testEquals(currentTitle, expected), message, {
type: "assertTitle",
standard: f('Page title is "%s"', this.colorize(expected, 'COMMENT')),
standard: f('Page title is: "%s"', expected),
values: {
subject: currentTitle,
expected: expected
......@@ -441,7 +441,7 @@ var Tester = function Tester(casper, options) {
var actual = utils.betterTypeOf(subject);
return this.assert(this.testEquals(actual, type), message, {
type: "assertType",
standard: f('Subject type is "%s"', this.colorize(type, 'COMMENT')),
standard: f('Subject type is: "%s"', type),
values: {
subject: subject,
type: type,
......