Bug 1037280 - Inspector: Wait for toolbox to be destroyed before ending test run. r=pbrosset

This commit is contained in:
Sami Jaktholm 2014-07-11 00:54:00 -04:00
parent d114b81ac8
commit d7c2bb1939

View File

@ -49,9 +49,9 @@ SimpleTest.registerCleanupFunction(() => {
Services.prefs.clearUserPref("devtools.inspector.activeSidebar");
});
registerCleanupFunction(() => {
registerCleanupFunction(function*() {
let target = TargetFactory.forTab(gBrowser.selectedTab);
gDevTools.closeToolbox(target);
yield gDevTools.closeToolbox(target);
// Move the mouse outside inspector. If the test happened fake a mouse event
// somewhere over inspector the pointer is considered to be there when the