updated new tester messages not to break XML - refs #190
Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -252,7 +252,7 @@ var Tester = function Tester(casper, options) { | ... | @@ -252,7 +252,7 @@ var Tester = function Tester(casper, options) { |
252 | }, { input_name: input_name }); | 252 | }, { input_name: input_name }); |
253 | return this.assert(this.testEquals(actual_value, expected_value), message, { | 253 | return this.assert(this.testEquals(actual_value, expected_value), message, { |
254 | type: 'assertField', | 254 | type: 'assertField', |
255 | standard: f('%s input field has the value %s', this.colorize(input_name, 'COMMENT'), this.colorize(expected_value, 'COMMENT')), | 255 | standard: f('"%s" input field has the value "%s"', input_name, expected_value), |
256 | values: { | 256 | values: { |
257 | input_name: input_name, | 257 | input_name: input_name, |
258 | actual_value: actual_value, | 258 | actual_value: actual_value, |
... | @@ -427,7 +427,7 @@ var Tester = function Tester(casper, options) { | ... | @@ -427,7 +427,7 @@ var Tester = function Tester(casper, options) { |
427 | var textFound = casper.fetchText(selector).indexOf(text) !== -1; | 427 | var textFound = casper.fetchText(selector).indexOf(text) !== -1; |
428 | return this.assert(textFound, message, { | 428 | return this.assert(textFound, message, { |
429 | type: "assertTextInSelector", | 429 | type: "assertTextInSelector", |
430 | standard: f('Found %s within the selector %s', this.colorize(text, 'COMMENT'), this.colorize(selector, 'COMMENT')), | 430 | standard: f('Found "%s" within the selector "%s"', text, selector), |
431 | values: { | 431 | values: { |
432 | selector: selector, | 432 | selector: selector, |
433 | text: text | 433 | text: text |
... | @@ -447,7 +447,7 @@ var Tester = function Tester(casper, options) { | ... | @@ -447,7 +447,7 @@ var Tester = function Tester(casper, options) { |
447 | var textFound = casper.fetchText(selector).indexOf(text) === -1; | 447 | var textFound = casper.fetchText(selector).indexOf(text) === -1; |
448 | return this.assert(textFound, message, { | 448 | return this.assert(textFound, message, { |
449 | type: "assertNoTextInSelector", | 449 | type: "assertNoTextInSelector", |
450 | standard: f('Did not find %s within the selector %s', this.colorize(text, 'COMMENT'), this.colorize(selector, 'COMMENT')), | 450 | standard: f('Did not find "%s" within the selector "%s"', text, selector), |
451 | values: { | 451 | values: { |
452 | selector: selector, | 452 | selector: selector, |
453 | text: text | 453 | text: text | ... | ... |
-
Please register or sign in to post a comment