Răsfoiți Sursa

Fix for get_text and assert functions

-The get_text function was being called as just text, which was not
working.  Adding "get_" got the tests to work.
-Asserts were missing semicolons when running them.  Added ";" the end
of the string solved that problem.
Allen Lew 14 ani în urmă
părinte
comite
11a3a50acc
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      ide-plugin.js

+ 2 - 2
ide-plugin.js

@@ -48,7 +48,7 @@ Equals.prototype.toString = function() {
 };
 
 Equals.prototype.assert = function() {
-  return "is(" + this.e2.toString() + "," + this.e1.toString() + ")";
+  return "is(" + this.e2.toString() + "," + this.e1.toString() + ");";
 };
 
 Equals.prototype.verify = function() {
@@ -355,7 +355,7 @@ WDAPI.Element.prototype.getAttribute = function(attributeName) {
 };
 
 WDAPI.Element.prototype.getText = function() {
-  return this.ref + "->text";
+  return this.ref + "->get_text";
 };
 
 WDAPI.Element.prototype.isDisplayed = function() {