Commit 95c131b2 95c131b2bd07548f71c3aa29671984996f1e848c by Nicolas Perriault

Merge pull request #701 from jcollum-hcg/standardize-tenses

standardized tense of test failure/pass messages
2 parents d2e7c3ff 858fa61c
...@@ -510,7 +510,7 @@ Tester.prototype.assertSelectorExist = function assertExists(selector, message) ...@@ -510,7 +510,7 @@ Tester.prototype.assertSelectorExist = function assertExists(selector, message)
510 "use strict"; 510 "use strict";
511 return this.assert(this.casper.exists(selector), message, { 511 return this.assert(this.casper.exists(selector), message, {
512 type: "assertExists", 512 type: "assertExists",
513 standard: f("Found an element matching: %s", selector), 513 standard: f("Find an element matching: %s", selector),
514 values: { 514 values: {
515 selector: selector 515 selector: selector
516 } 516 }
...@@ -530,7 +530,7 @@ Tester.prototype.assertNotExists = function assertDoesntExist(selector, message) ...@@ -530,7 +530,7 @@ Tester.prototype.assertNotExists = function assertDoesntExist(selector, message)
530 "use strict"; 530 "use strict";
531 return this.assert(!this.casper.exists(selector), message, { 531 return this.assert(!this.casper.exists(selector), message, {
532 type: "assertDoesntExist", 532 type: "assertDoesntExist",
533 standard: f("No element found matching selector: %s", selector), 533 standard: f("Fail to find element matching selector: %s", selector),
534 values: { 534 values: {
535 selector: selector 535 selector: selector
536 } 536 }
...@@ -660,7 +660,7 @@ Tester.prototype.assertResourceExist = function assertResourceExists(test, messa ...@@ -660,7 +660,7 @@ Tester.prototype.assertResourceExist = function assertResourceExists(test, messa
660 "use strict"; 660 "use strict";
661 return this.assert(this.casper.resourceExists(test), message, { 661 return this.assert(this.casper.resourceExists(test), message, {
662 type: "assertResourceExists", 662 type: "assertResourceExists",
663 standard: "Expected resource has been found", 663 standard: "Confirm page has resource",
664 values: { 664 values: {
665 test: test 665 test: test
666 } 666 }
...@@ -704,7 +704,7 @@ Tester.prototype.assertTextExist = function assertTextExists(text, message) { ...@@ -704,7 +704,7 @@ Tester.prototype.assertTextExist = function assertTextExists(text, message) {
704 }).indexOf(text) !== -1); 704 }).indexOf(text) !== -1);
705 return this.assert(textFound, message, { 705 return this.assert(textFound, message, {
706 type: "assertTextExists", 706 type: "assertTextExists",
707 standard: "Found expected text within the document body", 707 standard: "Find text within the document body",
708 values: { 708 values: {
709 text: text 709 text: text
710 } 710 }
...@@ -764,7 +764,7 @@ Tester.prototype.assertSelectorContains = function assertSelectorHasText(selecto ...@@ -764,7 +764,7 @@ Tester.prototype.assertSelectorContains = function assertSelectorHasText(selecto
764 var textFound = got.indexOf(text) !== -1; 764 var textFound = got.indexOf(text) !== -1;
765 return this.assert(textFound, message, { 765 return this.assert(textFound, message, {
766 type: "assertSelectorHasText", 766 type: "assertSelectorHasText",
767 standard: f('Found "%s" within the selector "%s"', text, selector), 767 standard: f('Find "%s" within the selector "%s"', text, selector),
768 values: { 768 values: {
769 selector: selector, 769 selector: selector,
770 text: text, 770 text: text,
......