Bug 441974 - Several tests fail when running in conjunction with other mochitests, succeed when running stand-alone, patch=MarcoZ, r=me, a=beltzner

This commit is contained in:
Alexander Surkov 2008-11-27 12:06:11 +08:00
Родитель de84732cb6
Коммит db73463c0c
2 изменённых файлов: 11 добавлений и 13 удалений

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

@ -44,14 +44,11 @@
testSelect("combo1", names, roles, states, undesiredStates);
// Select nested within label element.
// XXX see bug 455482: The accName for the label, combobox, and
// combobox_list contains the label text and the names of each option.
// When fixing bug 455482, please fix below names and remove this comment.
names = [
"Search in: Newsticker Entire site", // label
"Search in: Newsticker", // label
"Search in:", // text leaf
"Search in: Newsticker Entire site", // combobox
"Search in: Newsticker Entire site", // combobox_list
"Search in: Newsticker", // combobox
"Search in:", // combobox_list
"Newsticker", // option 1
"Entire site" // Option 2
];
@ -113,13 +110,10 @@
testSelect("list1", names, roles, states, undesiredStates);
// Select @size nested within label element.
// XXX see bug 455482: The accName for the label and listbox
// contains the label text and the names of each option.
// When fixing bug 455482, please fix below names and remove this comment.
names = [
"Version: 2.0 3.0 3.1 trunk", // label
"Version:", // label
"Version:", // text leaf
"Version: 2.0 3.0 3.1 trunk", // list
"Version:", // list
"2.0", // option 1
"3.0", // Option 2
"3.1", // Option 3

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

@ -82,8 +82,12 @@
testTextAttrs(ID, 17, attrs, 17, 18);
testTextAttrs(ID, 18, misspelledAttrs, 18, 22);
is(gA11yEventObserver.mTextAttrChangedEventCounter, 2,
"Wrong count of 'text attribute changed' events for " + ID);
if (navigator.platform == "Win32")
is(gA11yEventObserver.mTextAttrChangedEventCounter, 2,
"Wrong count of 'text attribute changed' events for " + ID);
else
todo(gA11yEventObserver.mTextAttrChangedEventCounter, 2,
"Wrong count of 'text attribute changed' events for " + ID);
// Remove a11y events listener
gObserverService.removeObserver(gA11yEventObserver,