https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 3e97222a89de5d7094b14bae8c9f469e28c6836b authored by James Graham on 11 April 2018, 18:02:33 UTC
Stop running tests on pypy
Tip revision: 3e97222
payment-request-insecure.http.html
<!DOCTYPE html>
<!-- Copyright © 2017 Chromium authors and World Wide Web Consortium, (Massachusetts Institute of Technology, ERCIM, Keio University, Beihang). -->
<meta charset="utf-8">
<title>Test for PaymentRequest Constructor (insecure)</title>
<link rel="help" href="https://w3c.github.io/payment-request/#paymentrequest-interface">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(() => {
  assert_false(isSecureContext);
  assert_false("PaymentRequest" in window);
}, "PaymentRequest constructor must not be exposed in insecure context");
</script>
back to top