toolkit/components/payments/test/mochitest/formautofill/test_editCreditCard.html
author Cosmin Sabou <csabou@mozilla.com>
Fri, 27 Apr 2018 08:37:29 +0300
changeset 472049 9424d87854e4f1783435e5a3c2e58189197d2936
parent 472015 browser/components/payments/test/mochitest/formautofill/test_editCreditCard.html@a8fef63084795665c01e9753fb8647b71e9c0331
permissions -rw-r--r--
Backed out 2 changesets (bug 1457287) for browser chrome failures on browser_address_edit.js. CLOSED TREE Backed out changeset 0ae9810db352 (bug 1457287) Backed out changeset a8fef6308479 (bug 1457287)

<!DOCTYPE HTML>
<html>
<!--
Test that editCreditCard.xhtml is accessible for tests in the parent directory.
-->
<head>
  <meta charset="utf-8">
  <title>Test that editCreditCard.xhtml is accessible</title>
  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
  <script type="application/javascript" src="/tests/SimpleTest/AddTask.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
  <p id="display">
    <iframe id="editCreditCard" src="editCreditCard.xhtml"></iframe>
  </p>
<div id="content" style="display: none">

</div>
<pre id="test">
</pre>
<script type="application/javascript">

add_task(async function test_editCreditCard() {
  let editCreditCard = document.getElementById("editCreditCard").contentWindow;
  await SimpleTest.promiseFocus(editCreditCard);
  ok(editCreditCard.document.getElementById("form"), "Check form is present");
  ok(editCreditCard.document.getElementById("cc-number"), "Check cc-number is present");
});

</script>

</body>
</html>