p.setBoolPref(testPref, true); G_Assert(z, p.getBoolPref(testPref), "get or set broken"); 
p.setPref(testPref, true); G_Assert(z, p.getPref(testPref), "get or set broken"); 
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");  }}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/8f56e7df4f0e8dbe5537f332529d35f7cb6f476a/preferences.js/buggy/toolkit/components/url-classifier/content/moz/preferences.js