Bug 718237. (Cv1) Call initAutoComplete() early to support XPFE AutoComplete. r=surkov.alexander.

--HG--
extra : rebase_source : bcbdc2a0efa1af1a30d42d3d792e6a186ba7e169
This commit is contained in:
Serge Gautherie 2012-03-06 15:10:10 +01:00
parent 5758875360
commit 6ebbcdb9ef
2 changed files with 13 additions and 8 deletions

View File

@ -384,14 +384,11 @@
{
if (SEAMONKEY) {
todo(false, "Skipping this test on SeaMonkey ftb. (Bug 718237)");
shutdownAutoComplete();
SimpleTest.finish();
return;
}
// register 'test-a11y-search' autocomplete search
initAutoComplete([ "hello", "hi" ],
[ "Beep beep'm beep beep yeah", "Baby you can drive my car" ]);
gInitQueue = new eventQueue();
gInitQueue.push(new loadFormAutoComplete("iframe"));
gInitQueue.push(new initFormAutoCompleteBy("iframe", "hello"));
@ -461,6 +458,12 @@
}
SimpleTest.waitForExplicitFinish();
// Register 'test-a11y-search' autocomplete search.
// XPFE AutoComplete needs to register early.
initAutoComplete([ "hello", "hi" ],
[ "Beep beep'm beep beep yeah", "Baby you can drive my car" ]);
addA11yLoadEvent(initTests);
]]>
</script>

View File

@ -35,10 +35,6 @@
var gQueue = null;
function doTest()
{
// register 'test-a11y-search' autocomplete search
initAutoComplete([ "hello", "hi" ],
[ "Beep beep'm beep beep yeah", "Baby you can drive my car" ]);
gQueue = new eventQueue();
gQueue.push(new openCombobox("menulist"));
@ -73,6 +69,12 @@
}
SimpleTest.waitForExplicitFinish();
// Register 'test-a11y-search' autocomplete search.
// XPFE AutoComplete needs to register early.
initAutoComplete([ "hello", "hi" ],
[ "Beep beep'm beep beep yeah", "Baby you can drive my car" ]);
addA11yLoadEvent(doTest);
]]>
</script>