Bug 880234 - Use add_test in testDeviceSearchEngines. r=mfinkle

This commit is contained in:
Nick Alexander 2013-06-12 19:17:26 -07:00
parent 839ca13cc5
commit 6bd1f577b4

View File

@ -38,15 +38,14 @@ function search_observer(aSubject, aTopic, aData) {
check_submission("/phone?q=foo", "foo", null);
}
do_test_finished();
run_next_test();
};
add_task(function test_default() {
add_test(function test_default() {
do_register_cleanup(function cleanup() {
Services.obs.removeObserver(search_observer, "browser-search-engine-modified");
});
do_test_pending();
Services.obs.addObserver(search_observer, "browser-search-engine-modified", false);
do_print("Loading search engine");