Bug 1109238 - Fix dns cancel test. r=mcmanus

This commit is contained in:
Dragana Damjanovic 2015-01-22 09:25:00 -05:00
parent b4e5f13f90
commit f91bb5be1e

View File

@ -19,13 +19,7 @@ var requestList2NotCanceled;
var listener1 = {
onLookupComplete: function(inRequest, inRecord, inStatus) {
// One request should be resolved and two request should be canceled.
if (inRequest == requestList1Canceled1 ||
inRequest == requestList1Canceled2) {
// This request is canceled.
do_check_eq(inStatus, Cr.NS_ERROR_ABORT);
do_test_finished();
} else if (inRequest == requestList1NotCanceled) {
if (inRequest == requestList1NotCanceled) {
// This request should not be canceled.
do_check_neq(inStatus, Cr.NS_ERROR_ABORT);
@ -44,12 +38,7 @@ var listener1 = {
var listener2 = {
onLookupComplete: function(inRequest, inRecord, inStatus) {
// One request should be resolved and the other canceled.
if (inRequest == requestList2Canceled) {
// This request is canceled.
do_check_eq(inStatus, Cr.NS_ERROR_ABORT);
do_test_finished();
} else {
if (inRequest == requestList2NotCanceled) {
// The request should not be canceled.
do_check_neq(inStatus, Cr.NS_ERROR_ABORT);
@ -91,7 +80,4 @@ function run_test() {
do_test_pending();
do_test_pending();
do_test_pending();
do_test_pending();
do_test_pending();
}