Bug 1490190 [wpt PR 12942] - fixup MerchantValidationEvent complete() test , a=testonly
authorMarcos Cáceres <marcos@marcosc.com>
Thu, 13 Sep 2018 02:52:30 +0000
changeset 492159 24ad0a7f3357ac5663651a244658c034d88b57b1
parent 492158 d91e5930746ebee939dec7da28246f738206451b
child 492160 4a3d59a25d6415f740f1f89efee248b46e58fa3f
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1490190, 12942
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1490190 [wpt PR 12942] - fixup MerchantValidationEvent complete() test , a=testonly Automatic update from web-platform-testsfixup MerchantValidationEvent complete() test (#12942) * Test is automated, not manual * Missing error type in assert_throws -- wpt-commits: 7e6d78de85f3fe71cc7c46fbaed17a8cd76f7d44 wpt-pr: 12942
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/payment-request/MerchantValidationEvent/complete-method-manual.https.html
testing/web-platform/tests/payment-request/MerchantValidationEvent/complete-method.https.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -13388,22 +13388,16 @@
     ]
    ],
    "payment-method-basic-card/empty-data-manual.https.html": [
     [
      "/payment-method-basic-card/empty-data-manual.https.html",
      {}
     ]
    ],
-   "payment-request/MerchantValidationEvent/complete-method-manual.https.html": [
-    [
-     "/payment-request/MerchantValidationEvent/complete-method-manual.https.html",
-     {}
-    ]
-   ],
    "payment-request/PaymentAddress/attributes-and-toJSON-method-manual.https.html": [
     [
      "/payment-request/PaymentAddress/attributes-and-toJSON-method-manual.https.html",
      {}
     ]
    ],
    "payment-request/PaymentRequestUpdateEvent/updateWith-call-immediate-manual.https.html": [
     [
@@ -383215,16 +383209,22 @@
     ]
    ],
    "payment-method-basic-card/payment-request-canmakepayment-method.https.html": [
     [
      "/payment-method-basic-card/payment-request-canmakepayment-method.https.html",
      {}
     ]
    ],
+   "payment-request/MerchantValidationEvent/complete-method.https.html": [
+    [
+     "/payment-request/MerchantValidationEvent/complete-method.https.html",
+     {}
+    ]
+   ],
    "payment-request/MerchantValidationEvent/constructor.http.html": [
     [
      "/payment-request/MerchantValidationEvent/constructor.http.html",
      {}
     ]
    ],
    "payment-request/MerchantValidationEvent/constructor.https.html": [
     [
@@ -626528,19 +626528,19 @@
   "payment-method-id/README.md": [
    "3d1bb8ddda2b999858fba14ec9420f127fb5dd13",
    "support"
   ],
   "payment-request/META.yml": [
    "f8460d403ffa42d9dfc1bae6e0c3e500f7742fc9",
    "support"
   ],
-  "payment-request/MerchantValidationEvent/complete-method-manual.https.html": [
-   "99a10e9dc79bd957a030f26c114f3ee51bb190d8",
-   "manual"
+  "payment-request/MerchantValidationEvent/complete-method.https.html": [
+   "4edfd54f40e4aefd048808967689640d287c7ac7",
+   "testharness"
   ],
   "payment-request/MerchantValidationEvent/constructor.http.html": [
    "8368c79a3b1dea2df26bbc804208002ec97fbf09",
    "testharness"
   ],
   "payment-request/MerchantValidationEvent/constructor.https.html": [
    "952c0f734a30f170964053bb00e55225d57cce0b",
    "testharness"
deleted file mode 100644
--- a/testing/web-platform/tests/payment-request/MerchantValidationEvent/complete-method-manual.https.html
+++ /dev/null
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<meta charset="utf-8">
-<link rel="help" href="https://w3c.github.io/browser-payment-api/#dom-merchantvalidationevent-complete">
-<title>Test for the MerchantValidationEvent's complete() method.</title>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<body>
-<script>
-test(() => {
-  const event = new MerchantValidationEvent("test");
-  assert_throws(() => {
-    event.complete("");
-  })
-}, "If event's isTrusted attribute is false, then then throw an InvalidStateError DOMException.");
-</script>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/payment-request/MerchantValidationEvent/complete-method.https.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<link rel="help" href="https://w3c.github.io/browser-payment-api/#dom-merchantvalidationevent-complete">
+<title>Test for the MerchantValidationEvent's complete() method.</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<body>
+<script>
+test(() => {
+  const event = new MerchantValidationEvent("test");
+  assert_throws("InvalidStateError", () => {
+    event.complete("");
+  })
+}, "If event's isTrusted attribute is false, then then throw an InvalidStateError DOMException.");
+</script>