Bug 880234 - Use add_test in testDeviceSearchEngines. r=mfinkle
authorNick Alexander <nalexander@mozilla.com>
Wed, 12 Jun 2013 19:17:26 -0700
changeset 146391 3aa27583bd929234480584d969b7bb810ea22acd
parent 146390 af72cb05903e583fb5790b2246c1e748540094da
child 146392 22c88d3d898ae4dd2af8a398949b6ad773f53fbc
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs880234
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 880234 - Use add_test in testDeviceSearchEngines. r=mfinkle
mobile/android/base/tests/testDeviceSearchEngine.js
--- a/mobile/android/base/tests/testDeviceSearchEngine.js
+++ b/mobile/android/base/tests/testDeviceSearchEngine.js
@@ -33,24 +33,23 @@ function search_observer(aSubject, aTopi
   if (sysInfo.get("tablet")) {
     do_print("Device: tablet");
     check_submission("/tablet?q=foo", "foo", null);
   } else {
     do_print("Device: phone");
     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");
   Services.search.addEngine("http://mochi.test:8888/tests/robocop/devicesearch.xml", Ci.nsISearchEngine.DATA_XML, null, false);
 });
 
 run_next_test();