From 14592370d9cb2d993266127f5713d95a934f483b Mon Sep 17 00:00:00 2001 From: Sergey Gaychuk Date: Thu, 22 Oct 2009 17:56:21 +0300 Subject: [PATCH] app: added class for fill object on entity page --- app/test/aaUITestFrame.jsm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/app/test/aaUITestFrame.jsm b/app/test/aaUITestFrame.jsm index 54300a9..72be1c1 100644 --- a/app/test/aaUITestFrame.jsm +++ b/app/test/aaUITestFrame.jsm @@ -415,3 +415,43 @@ function aaJSTestSelectablePagePage1Module(pageName) return base; } +/* +example for fill +{ + name: "test name", + contractID: "contract id", + cid: Components.ID(""), + object: { + tag: 'asdsad' + } +} +*/ +function aaJSTestEntity(input) { + var me = new JSTest(); + me._name = input.name; + me._contractID = input.contractID; + me._CID = input.cid; + + me._tagID = "entity.tag"; + me._tagValue = input.object.tag; + + me._test = function(runner) { + //get element + var box = getElement(runner, this._tagID); + //set entity tag + box.value = this._tagValue; + sendOnInput(box); + if (this._check) { + this._check(runner); + } + } + me._check = function(runner) { + var box = getElement(runner, this._tagID); + //check tag entity + if (this._tagValue != box.value) { + this.addJSFailure(runner, "[Entity page]: tag value is not equal tag textbox value"); + } + } + return me; +} + -- 2.11.4.GIT