mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1109238 - Fix dns cancel test. r=mcmanus
This commit is contained in:
parent
b4e5f13f90
commit
f91bb5be1e
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user