[Xfce4-commits] <midori:master> Main loop between for loops in app_extensions_activate
Christian Dywan
noreply at xfce.org
Sun Dec 16 15:12:05 CET 2012
Updating branch refs/heads/master
to 711e7677f6730e81a838bc40f5cbf9294f12f198 (commit)
from 5f7cc2a801ed77a73dbc7c28605ddf98fb192024 (commit)
commit 711e7677f6730e81a838bc40f5cbf9294f12f198
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun Dec 16 14:43:00 2012 +0100
Main loop between for loops in app_extensions_activate
To more reliably trigger extension callbacks.
tests/app.vala | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/tests/app.vala b/tests/app.vala
index 4b3860c..74b14cb 100644
--- a/tests/app.vala
+++ b/tests/app.vala
@@ -105,8 +105,8 @@ void app_extensions_load () {
for (var i = 0 ; i < 7; i++) {
var tab = app.browser.get_nth_tab (app.browser.add_uri ("about:blank"));
app.browser.close_tab (tab);
- do { loop.iteration (true); } while (loop.pending ());
}
+ do { loop.iteration (true); } while (loop.pending ());
/*
Midori.Test.release_max_timeout ();
@@ -131,16 +131,17 @@ void app_extensions_activate () {
stdout.printf ("- %s\n", (item as Midori.Extension).name);
(item as Midori.Extension).activate (app);
}
+ do { loop.iteration (true); } while (loop.pending ());
for (var i = 0 ; i < 7; i++) {
var tab = app.browser.get_nth_tab (app.browser.add_uri ("about:blank"));
app.browser.close_tab (tab);
- do { loop.iteration (true); } while (loop.pending ());
}
+ do { loop.iteration (true); } while (loop.pending ());
- foreach (var item in app.extensions.get_items ()) {
+ foreach (var item in app.extensions.get_items ())
(item as Midori.Extension).deactivate ();
- }
+ do { loop.iteration (true); } while (loop.pending ());
for (var i = 0 ; i < 7; i++) {
var tab = app.browser.get_nth_tab (app.browser.add_uri ("about:blank"));
More information about the Xfce4-commits
mailing list