remove observer added by test to resolve test bustage caused by fix for bug 765063 (fa750527a43b)
authorMyk Melez <myk@mozilla.org>
Thu, 05 Jul 2012 14:54:11 -0700
changeset 98451 654181827f06cb9f4c5090d44b3ca10499377cfb
parent 98450 0504d9475cd595a27b106a535199a83d543f3408
child 98452 4b1249ae1906544429f9cf7ba4b77da31f78a89b
child 98462 66a21d10cc58a8f1b322c52288d39921949c68ec
push id23057
push userryanvm@gmail.com
push dateFri, 06 Jul 2012 00:26:58 +0000
treeherdermozilla-central@4b1249ae1906 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs765063
milestone16.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
remove observer added by test to resolve test bustage caused by fix for bug 765063 (fa750527a43b)
dom/tests/mochitest/webapps/test_bug_765063.xul
--- a/dom/tests/mochitest/webapps/test_bug_765063.xul
+++ b/dom/tests/mochitest/webapps/test_bug_765063.xul
@@ -16,16 +16,17 @@
   <script type="application/javascript" src="jshelper.js"/>
 
 <script> 
 SimpleTest.waitForExplicitFinish();
 
 // Observe app installation and confirm that the install origin didn't change.
 var observer = {
   observe: function observe(subject, topic, data) {
+    Services.obs.removeObserver(observer, "webapps-sync-install");
     ok(JSON.parse(data).installOrigin == "http://www.example.com",
        "the install origin didn't change");
     tearDown();
     SimpleTest.finish();
   }
 };
 
 Components.utils.import("resource://gre/modules/Services.jsm");