rem: G_Assert(z, !p.getBoolPrefOrDefault(noSuchPref, false), "clear broken"); 
add: G_Assert(z, !p.getPref(noSuchPref, false), "clear broken"); 
context: function TEST_G_Preferences() {  if (G_GDEBUG) {    var z = "preferences UNITTEST";    G_debugService.enableZone(z);    G_Debug(z, "Starting");    var p = new G_Preferences();        var testPref = "test-preferences-unittest";    var noSuchPref = "test-preferences-unittest-aypabtu";        // Used to test observing    var observeCount = 0;    function observe(prefChanged) {      G_Assert(z, prefChanged == testPref, "observer broken");      observeCount++;    };    // Test setting, getting, and observing    p.addObserver(testPref, observe);    p.setBoolPref(testPref, true);    G_Assert(z, p.getBoolPref(testPref), "get or set broken");    G_Assert(z, observeCount == 1, "observer adding not working");    p.removeObserver(testPref, observe);    p.setBoolPref(testPref, false);    G_Assert(z, observeCount == 1, "observer removal not working");    G_Assert(z, !p.getBoolPref(testPref), "get broken");    try {      p.getBoolPref(noSuchPref);      G_Assert(z, false, "getting non-existent pref didn't throw");    } catch (e) {    }        // Try the default varieties    G_Assert(z,              p.getBoolPrefOrDefault(noSuchPref, true), "default borken (t)");    G_Assert(z, !p.getBoolPrefOrDefault(noSuchPref, false), "default borken");        // And the default-and-set variety    G_Assert(z, p.getBoolPrefOrDefaultAndSet(noSuchPref, true),              "default and set broken (didnt default");    G_Assert(z,              p.getBoolPref(noSuchPref), "default and set broken (didnt set)");        // Remember to clean up the prefs we've set, and test removing prefs     // while we're at it    p.clearPref(noSuchPref);    G_Assert(z, !p.getBoolPrefOrDefault(noSuchPref, false), "clear broken");        p.clearPref(testPref);        G_Debug(z, "PASSED");  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/2b9ecf2418b1f2e03d893eb236493301b975d166/preferences.js/buggy/toolkit/components/url-classifier/content/moz/preferences.js