B2G/gecko/browser/components/sessionstore/test/browser_448741.js
// make sure that all later observers don't see that value any longer
make sure that all later observers don't see that value any longer
make sure that all later observers don ' t see that value any longer
function checkingObserver(aSubject, aTopic, aData) {
    ok(valueWasCleaned && aSubject instanceof Ci.nsISupportsString,
       "ready to check the cleaned state?");
    ok(aSubject.data.indexOf(uniqueValue) == -1, "data no longer contains our value?");
    gBrowser.removeTab(tab);
    Services.obs.removeObserver(checkingObserver, aTopic, false);
    if (gPrefService.prefHasUserValue("browser.sessionstore.interval"))
      gPrefService.clearUserPref("browser.sessionstore.interval");
    finish();
  }
function checkingObserver ( aSubject , aTopic , aData ) { ok ( valueWasCleaned && aSubject instanceof Ci . nsISupportsString , "ready to check the cleaned state?" ) ; ok ( aSubject . data . indexOf ( uniqueValue ) == - 1 , "data no longer contains our value?" ) ; gBrowser . removeTab ( tab ) ; Services . obs . removeObserver ( checkingObserver , aTopic , false ) ; if ( gPrefService . prefHasUserValue ( "browser.sessionstore.interval" ) ) gPrefService . clearUserPref ( "browser.sessionstore.interval" ) ; finish ( ) ; }
make sure that all later observers don't see that value any longer
make sure that all later observers don ' t see that value any longer
// clean up