[Pkg-mozext-commits] [requestpolicy] 245/280: [mozmill] ensure that the menu gets closed

David Prévot taffit at moszumanska.debian.org
Sat May 2 20:30:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository requestpolicy.

commit 36d8f4e4e669e277c118ac7bab21a2c1db7c4f05
Author: Martin Kimmerle <dev at 256k.de>
Date:   Mon Mar 30 15:25:00 2015 +0200

    [mozmill] ensure that the menu gets closed
    
    ensure that the menu gets closed in `RequestLog.prototype.open`
---
 tests/mozmill/lib/request-log-utils.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/mozmill/lib/request-log-utils.js b/tests/mozmill/lib/request-log-utils.js
index 86beb5c..e0dfdac 100644
--- a/tests/mozmill/lib/request-log-utils.js
+++ b/tests/mozmill/lib/request-log-utils.js
@@ -24,11 +24,15 @@ RequestLog.prototype.open = function () {
   // open the menu
   tbb.click();
   // wait for the menu
-  findElement.ID(this.windowDoc, "rp-popup").waitForElement();
+  let popup = findElement.ID(this.windowDoc, "rp-popup");
+  popup.waitForElement();
   // open the request log
   findElement.ID(this.windowDoc, "rp-link-request-log").click();
   // close the menu
-  tbb.click();
+  popup.getNode().hidePopup();
+  this.controller.waitFor(function () {
+    return popup.getNode().state === "closed";
+  }, "The menu has been closed.");
 
   let iframe = this.windowDoc.getElementById("requestpolicy-requestLog-frame");
   this.requestLogDoc = iframe.contentDocument;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git



More information about the Pkg-mozext-commits mailing list