rem: info.flags &= ~nsIAuthInformation.ONLY_PASSWORD; 
add: info.flags &= ~nsIAuthInformation.NEED_DOMAIN; 
context:   function do_tests(expectedRV) {    // 1: The simple case    prompt1.rv = expectedRV;    var rv = wrapper.promptAuth(chan, 0, info);    do_check_eq(rv, prompt1.rv);    do_check_eq(prompt1.called, CALLED_PROMPTUP);    if (rv) {      do_check_eq(info.domain, "");      do_check_eq(info.username, prompt1.user);      do_check_eq(info.password, prompt1.pw);    }    info.domain = "";    info.username = "";    info.password = "";    // 2: Only ask for a PW    prompt1 = new Prompt1();    prompt1.rv = expectedRV;    info.flags |= nsIAuthInformation.ONLY_PASSWORD;    wrapper = adapter.createAdapter(prompt1);    rv = wrapper.promptAuth(chan, 0, info);    do_check_eq(rv, prompt1.rv);    do_check_eq(prompt1.called, CALLED_PROMPTP);    if (rv) {      do_check_eq(info.domain, "");      do_check_eq(info.username, "");      do_check_eq(info.password, prompt1.pw);    }    info.flags &= ~nsIAuthInformation.ONLY_PASSWORD;    info.domain = "";    info.username = "";    info.password = "";    // 3: user, pw and domain    prompt1 = new Prompt1();    prompt1.rv = expectedRV;    info.flags |= nsIAuthInformation.NEED_DOMAIN;    wrapper = adapter.createAdapter(prompt1);    rv = wrapper.promptAuth(chan, 0, info);    do_check_eq(rv, prompt1.rv);    do_check_eq(prompt1.called, CALLED_PROMPTUP);    if (rv) {      do_check_eq(info.domain, "foo");      do_check_eq(info.username, "bar");      do_check_eq(info.password, prompt1.pw);    }    info.flags &= ~nsIAuthInformation.ONLY_PASSWORD;    info.domain = "";    info.username = "";    info.password = "";    // 4: username that doesn't contain a domain    prompt1 = new Prompt1();    prompt1.rv = expectedRV;    info.flags |= nsIAuthInformation.NEED_DOMAIN;    prompt1.user = "foo";    wrapper = adapter.createAdapter(prompt1);    rv = wrapper.promptAuth(chan, 0, info);    do_check_eq(rv, prompt1.rv);    do_check_eq(prompt1.called, CALLED_PROMPTUP);    if (rv) {      do_check_eq(info.domain, "");      do_check_eq(info.username, prompt1.user);      do_check_eq(info.password, prompt1.pw);    }    info.flags &= ~nsIAuthInformation.ONLY_PASSWORD;    info.domain = "";    info.username = "";    info.password = "";  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3bbe4edc19f722da138122198b94098d46445441/test_authpromptwrapper.js/clean/netwerk/test/unit/test_authpromptwrapper.js