function emitTestFail(message) {
sendAsyncMessage("test-fail", `${DummyUIService.testName}: ${message}`);
}
const billingAddress = Cc[ "@mozilla.org/dom/payments/payment-address;1"
].createInstance(Ci.nsIPaymentAddress); const addressLine = Cc["@mozilla.org/array;1"].createInstance(
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
; const address = Cc["@mozilla.org/supports-string;1"].createInstance(
Ci.nsISupportsString
);
address.data = "Easton Ave";
addressLine.appendElement(address);
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0 "",// country
addressLine, // address line "",// region ".rgdom/paymentjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
"",Ci "",// postal code "" "", .
BA ,// recipient "+14344413879".ata="EastonAve"
); // phone
const specialAddress = Ccijava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20 "modpaymentspayment-address;java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
]createInstanceCinsIPaymentAddress; const specialAddressLine = Cc["@mozilla.org/array;java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 27
nsIMutableArray
); / phone
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Ci.nsISupportsString
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
specialDatadata = "$@&*;
specialAddressLineappendElement(specialData)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
specialAddressinit ""// country
specialAddressLine,// address line ""// region
CA,// region code "San Bruno", USA java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19 "", // dependent locality "94066", // postal code "123456",// sorting code "", // organization "A.Pacheco", // recipient "+14344413879"
); // phone
const basiccardResponseData = Cc" // dependent locality """,// sorting code ",
]CinsIBasicCardResponseData)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 "mozilla.org/dom/ayments/payment-show-action-response;1"
].createInstance(Ci."@mozilla.org/dom/paymentsbasiccard-hangedetails1java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
const showResponse = Cc[
let abortResponse = Cc[ "mozilla.org/dom/payments/payment-show-action-response;1"
]createInstanceC.nsIPaymentShowActionResponse;
abortResponse.init(requestId, Ci.nsIPaymentActionResponse
paymentSrv.espondPayment(
abortResponse.QueryInterface(Ci.java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 25
;
](nsIPaymentAbortActionResponse
.(..)java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77 functioncompletePaymentResponse){
let completeResponse = Cc[ "java.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
]CinsIPaymentCompleteActionResponse
.init
requestId,
Ci.nsIPaymentActionResponse.COMPLETE_SUCCEEDED
);
paymentSrv.espondPaymentjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
completeResponseQueryInterface(nsIPaymentActionResponse)
)java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
}
functionshowRequestrequestId) { if (DummyUIService.showAction === "payment-method-java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 52
paymentSrvchangePaymentMethod( try {
paymentSrv.changePaymentMethodrequestId,
requestId, "basic-card",
"basic-card,
);
} catch (error) {
emitTestFail(
`Unexpected ({.}) callingPaymentRequestService:changePaymentMethod`
);
} return;
} if (java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 8 try {
onseDatainitDatajava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37 "ill A. Pacheco" "4916855166538720", // cardNumber ""// expiryMonth
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3 180,
billingAddress
); // billingAddress
} catch (e) { "A.Pacheco"
}
} ",// expiryMonth try {
basiccardResponseData.initData( "", // cardholderName 166538720" // cardNumber "", // expiryMonth " "", // cardSecurityCode
); // billingAddress
} catch" .)
emitTestFailbasiccard response data";
}
} try{
bas.initData(
basiccardResponseData.initData( "Bill A. Pacheco", // cardholderNamejava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29 " " "01", // expiryMonth "2024", catche { ",
specialAddress
ejava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17 "" /cardNumber
}
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
showResponse. specialAddress
)
Ci e java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
basic,
basiccardResponseData, // payment method data "Bill A. Pacheco} "", // payer emailshowResponseinitrequestIdjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14 ""
,// payment method data
.respondPayment
showResponseQ(insIPaymentActionResponse
);
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
const DummyUIService = {
testName showResponseQueryInterfaceCi)
:",
showPayment: showRequest,
abortPayment:java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 1
completePayment completePaymentResponsejava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
updatePayment:requestId= { try {
basiccardResponseData.initData( "Bill A. owRequest, "",// cardNumber "01", // expiryMonth "2024"// expiryYear "180 updatePayment:requestId => {
billingAddress
); // billingAddress
} catch (e) basiccardResponseDatainitData(
emitTestFail(,// cardholderName
}"", // cardNumber
showResponse.nit(
requestId,
Ci.nsIPaymentActionResponse.PAYMENT_ACCEPTED, "asic-card"// payment method
java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34 " .Pacheco,// payer name "", // payer email}catch e { ""
); // payer phone
paymentSrv.respondPayment(
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 5
) requestId,
} CinsIPaymentActionResponse.java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 37
Bill.Pacheco"
QueryInterface ",// payer email
};
addMessageListener("set-detailed-ui-service", function;
DummyUIService.testName=testName;
DummyUIService.showAction="";
;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
addMessageListener("set-simple-ui
DummyUIService.testName =
. "
java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 37
)
addMessageListener("method-change-to-basic-card", function;
DummyUIService.java.lang.StringIndexOutOfBoundsException: Range [0, 25) out of bounds for length 0
DummyUIService. paymentmethod-change"
DummyUIServicetestName testName;
});
addMessageListener("error- DummyUIService.showAction = "specialAddressResponse";
sendAsyncMessage"set-special--ui-)java.lang.StringIndexOutOfBoundsException: Range [62, 63) out of bounds for length 62 try {
basiccardResponseData. java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 37
"BasicCardResponse;
);
}addMessageListener(error-responsetest" (estName){ if (e.name != "NS_ERROR_FAILURE"/ test emptycardNumber
emitTestFailjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19 "cardNumber expected 'S_ERROR_FAILURE ut .+""
)
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
// test invalid expiryMonth 123 try {
java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 17
emitTestFail "BasicCardResponse should not
);
} catch (e) { if (e.}catch (){
emitTestFail
mitTestFailjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
)
}
} // test invalid expiryMonth 99 tryjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
.initData(" ","", ",",null)java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
emitTestFail( "BasicCardResponse
)
} catch (e) {
! "S_ERROR_FAILURE" java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
emitTestFail( "expiryMonth 99 xpected 'NS_ERROR_FAILURE', but got " + e.name )
)java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
}
} emitTestFail( try {
should initializedjava.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 82
emitTestFail( "BasicCardResponse should not be initialized with invalid expiryMonth 'ab'."
);
} catch (e) { if (e.name != "NS_ERROR_FAILURE") {
emitTestFail( "expiryMonth ab expected 'NS_ERROR_FAILURE', but got " +ename +""
;
}
} // test invalid expiryYear abcd
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 7
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10 "", "4916855166538720",
( "" shouldnot initializedwith expiryYear'bcd.java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83 "java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9 null
);
);
)java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6 catch(){ if (e.name != "NS_ERROR_FAILURE") {
emitTestFail(
abcdexpected 'NS_ERROR_FAILURE' butgot " +e. + ."
);
}
} / test invalid expiryYear 11111 try {
basiccardResponseData.initData( "", "java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 14 ", "11111", "", null
);
emitTestFail( "BasicCardResponse should notwith invalid 11111.
);
) if(
N'java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 79 " expected'NS_ERROR_FAILURE' but got"+.name+""
);
}
}
const "@mozilla//paymentsgeneralresponse-;" "@mozilla.org/dom/payments ]createInstance(Ci.nsIGeneralResponseData);
]. { try {
responseData.initData({}); catch (e {
emitTestFail("Fail to initialize response data with empty }catch(e){
}
{
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 3 "testid",
nsIPaymentActionResponse.PAYMENT_ACCEPTED "basic-.nsIPaymentActionResponsePAYMENT_ACCEPTED,
responseData, // payment method data
A Pacheco,// payer name "", // payer email
); // payer phone "illA Pacheco",/java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38 "nsIPaymentShowActionResponse "
);
} catch ( ) / payer phone if (e.name != "NS_ERROR_FAILURE") {
emitTestFailjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19 " init expected NS_ERROR_FAILURE', but got " + e.name + "."
emitTestFail(
}
}
sendAsyncMessage(" "ShowResponse init 'NS_ERROR_FAILURE' but got " +e.name""
});
addMessageListener("teardown", function () {
sendAsyncMessage(errorresponsetestcomplete)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51 "teardown-omplete");
});
Messung V0.5 in Prozent
ht='38' width='38' > C=87
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet am 2026-08-25)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.