mirror of
https://github.com/servo/servo.git
synced 2025-08-22 22:05:32 +01:00
Update web-platform-tests to revision 632a3f59238036b6e24b28d47218ba9986ff4c62
This commit is contained in:
parent
cd02ca6c19
commit
fb838278a5
430 changed files with 15017 additions and 508 deletions
|
@ -19,4 +19,15 @@ test(() => {
|
|||
assert_equals(test, "pass");
|
||||
assert_equals(event.methodDetails, methodDetails);
|
||||
}, "Must have a methodDetails IDL attribute, which is initialized with to the methodName dictionary value");
|
||||
|
||||
test(() => {
|
||||
const event = new PaymentMethodChangeEvent("test");
|
||||
assert_equals(event.methodDetails, null, "methodDetails attribute must initialize to null");
|
||||
|
||||
const event2 = new PaymentMethodChangeEvent("test", { methodName: "basic-card" });
|
||||
assert_equals(event2.methodDetails, null, "methodDetails attribute must initialize to null");
|
||||
|
||||
const event3 = new PaymentMethodChangeEvent("test", {});
|
||||
assert_equals(event2.methodDetails, null, "methodDetails attribute must initialize to null");
|
||||
}, "The methodDetails member defaults to null");
|
||||
</script>
|
||||
|
|
|
@ -14,4 +14,15 @@ test(() => {
|
|||
const { methodName } = event;
|
||||
assert_equals(methodName, "wpt-test");
|
||||
}, "Must have a methodName IDL attribute, which is initialized with to the methodName dictionary value");
|
||||
|
||||
test(() => {
|
||||
const event = new PaymentMethodChangeEvent("test");
|
||||
assert_equals(event.methodName, "", "methodName attribute must initialize to empty string");
|
||||
|
||||
const event2 = new PaymentMethodChangeEvent("test", { methodDetails: {} });
|
||||
assert_equals(event2.methodName, "", "methodName attribute must initialize to empty string");
|
||||
|
||||
const event3 = new PaymentMethodChangeEvent("test", {});
|
||||
assert_equals(event3.methodName, "", "methodName attribute must initialize to empty string");
|
||||
}, "When no dictionary is passed, the methodName member defaults to the empty string");
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue