Bug 986927 - test-attachment-menus.js fails if message reader size changes. r=mkmelin

This commit is contained in:
Philipp Kewisch 2014-04-01 01:08:36 +02:00
Родитель a0070f4319
Коммит b9c3976443
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -334,7 +334,10 @@ function check_menu_states_single(index, expected) {
* @param expected a dictionary containing the expected states
*/
function check_menu_states_all(expected) {
mc.rightClick(mc.eid("attachmentList"));
// Using a rightClick here is unsafe, because we need to hit the empty area
// beside the attachment items and that seems to be different per platform.
// Using DOM methods to open the popup works fine.
mc.e("attachmentListContext").openPopup(mc.e("attachmentList"));
wait_for_popup_to_open(mc.e("attachmentListContext"));
try {