Update web-platform-tests to revision 632a3f59238036b6e24b28d47218ba9986ff4c62

This commit is contained in:
WPT Sync Bot 2018-09-12 21:47:12 -04:00
parent cd02ca6c19
commit fb838278a5
430 changed files with 15017 additions and 508 deletions

View file

@ -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>

View file

@ -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>