Skip to content

Commit

Permalink
Add test suggested by @domenic
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Jun 12, 2018
1 parent eb34a27 commit 773c20a
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
<script>
"use strict";
test(() => {
const methodDetails = {
test: "pass"
}
const event = new PaymentMethodChangeEvent("test", {
methodName: "wpt-test",
methodDetails: {
test: "pass"
}
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 comments on commit 773c20a

Please sign in to comment.