29. IRC Log (#developers)
11:57 (Callek) nthomas: so z_linearhistory fails, and pushlog unable to update... ?
11:57 (Mossop) Oh
11:57 (nthomas) 1) I'm not aravind
11:57 (Mossop) That is bad
11:57 (Callek) nthomas: _exactly_
11:57 (nthomas) 2) probably
11:57 (nthomas) so file a blocker and close the tree
11:57 (Callek) philor: close tree please?
11:58 (Callek) (or really, anyone)
11:58 (khuey) hahaha
11:58 (khuey) today is a really bad day for the tree
11:58 (Mossop) facepalms
11:58 (Mossop) I knew I should have landed!
11:58 (sauron) poor Mossop
11:58 (khuey) !topic mozilla-central is CLOSED | http://build.mozilla.org/builds/pending
11:58 (khuey) er
11:58 (firebot) Check-in: http://hg.mozilla.org/releases/mozilla-1.9.1/rev/446e17503f87 -
Jonas Sicking - Bug 529087: Fix crash involving XBL and cloned XUL elements. r=smaug
a=dveditz
11:58 (mwu) 33 oranges?
11:58 *khuey topic : mozilla-central is CLOSED | http://build.mozilla.org/builds/pending
29
39. XPC Shell
• XPCOM API testing
• 別名Unit Test
• JavaScriptまたはC++でテストコードを作成
Components.utils.import("resource://gre/modules/Services.jsm");
function run_test() {
// Needs a profile folder for the database.
do_get_profile();
testURI(Services.io.newURI("about:mozilla", null, null));
testURI(Services.io.newURI("moz-safe-about:rights", null, null));
}
function testURI(aURI) {
print("Testing: " + aURI.spec);
do_check_true(/about$/.test(aURI.scheme));
let principal = Components.classes["@mozilla.org/scriptsecuritymanager;1"].
getService(Components.interfaces.nsIScriptSecurityManager).
getCodebasePrincipal(aURI);
let dsm = Components.classes["@mozilla.org/dom/storagemanager;1"].
getService(Components.interfaces.nsIDOMStorageManager);
let storage = dsm.getLocalStorageForPrincipal(principal, "");
storage.setItem("test-item", "test-value");
print("Check that our value has been correctly stored.");
do_check_eq(storage.getItem("test-item"), "test-value");
storage.removeItem("test-item");
print("Check that our value has been correctly removed.");
do_check_eq(storage.getItem("test-item"), null);
}