bug 441974 - disable test for group attributes on XUL menus on Linux

This commit is contained in:
Marco Zehe 2008-09-22 14:25:31 +02:00
parent 00a5c91bcb
commit 4d7b6b85ec

View File

@ -54,24 +54,26 @@
//////////////////////////////////////////////////////////////////////////
// xul:menu (bug 443881)
var menu1 = document.getElementById("menu_item1");
menu1.open = true;
window.setTimeout(function() {
var menu2 = document.getElementById("menu_item2");
menu2.open = true;
window.setTimeout(function() {
testGroupAttrs("menu_item1.1", "1", "1");
testGroupAttrs("menu_item1.2", "1", "3");
testGroupAttrs("menu_item1.4", "2", "3");
testGroupAttrs("menu_item2", "3", "3");
testGroupAttrs("menu_item2.1", "1", "2", "1");
testGroupAttrs("menu_item2.2", "2", "2", "1");
SimpleTest.finish();
}, 0);
}, 0);
if (navigator.platform == "Win32") {
var menu1 = document.getElementById("menu_item1");
menu1.open = true;
window.setTimeout(function() {
var menu2 = document.getElementById("menu_item2");
menu2.open = true;
window.setTimeout(function() {
testGroupAttrs("menu_item1.1", "1", "1");
testGroupAttrs("menu_item1.2", "1", "3");
testGroupAttrs("menu_item1.4", "2", "3");
testGroupAttrs("menu_item2", "3", "3");
testGroupAttrs("menu_item2.1", "1", "2", "1");
testGroupAttrs("menu_item2.2", "2", "2", "1");
SimpleTest.finish();
}, 0);
}, 0);
}
//////////////////////////////////////////////////////////////////////////
// ARIA menu (bug 441888)
@ -79,6 +81,9 @@
testGroupAttrs("aria-menuitemcheckbox", "2", "3");
testGroupAttrs("aria-menuitemradio", "3", "3");
testGroupAttrs("aria-menuitem2", "1", "1");
if (navigator.platform != "Win32")
SimpleTest.finish();
}
SimpleTest.waitForExplicitFinish();