mirror of
https://github.com/servo/servo.git
synced 2025-09-07 21:48:21 +01:00
Update web-platform-tests to revision de3ae39cb59880a8245431e7f09817a2a4dad1a3
This commit is contained in:
parent
0c5b020163
commit
b322aa3943
131 changed files with 2717 additions and 600 deletions
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Test for PaymentMethodChangeEvent.methodDetails attribute</title>
|
||||
<link rel="help" href="https://w3c.github.io/browser-payment-api/#dom-paymentmethodchangeevent-methoddetails">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
"use strict";
|
||||
test(() => {
|
||||
const methodDetails = {
|
||||
test: "pass"
|
||||
}
|
||||
const event = new PaymentMethodChangeEvent("test", {
|
||||
methodName: "wpt-test",
|
||||
methodDetails
|
||||
});
|
||||
assert_idl_attribute(event, "methodDetails");
|
||||
const { test } = event.methodDetails;
|
||||
assert_equals(test, "pass");
|
||||
assert_equals(event.methodDetails, methodDetails);
|
||||
}, "Must have a methodDetails IDL attribute, which is initialized with to the methodName dictionary value");
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Test for PaymentMethodChangeEvent.methodName attribute</title>
|
||||
<link rel="help" href="https://w3c.github.io/browser-payment-api/#dom-paymentmethodchangeevent-src">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
"use strict";
|
||||
test(() => {
|
||||
const event = new PaymentMethodChangeEvent("test", {
|
||||
methodName: "wpt-test",
|
||||
});
|
||||
assert_idl_attribute(event, "methodName");
|
||||
const { methodName } = event;
|
||||
assert_equals(methodName, "wpt-test");
|
||||
}, "Must have a methodName IDL attribute, which is initialized with to the methodName dictionary value");
|
Loading…
Add table
Add a link
Reference in a new issue