Files
tubestation/toolkit/components/payments/res/debugging.html
Sam Foster bd65a65911 Bug 1444240 - Filter address options to eliminate dupes based on fields to display. r=MattN
* Add an observed attribute to address-picker to render when address-fields is changed
* Add a filter step to address-picker, to exclude addresses that represent duplicates given the requested fields
* Filter out addresses that do not contain one or more of the requested fields
* Use a default set of fields to establish duplicates and meet the bar for adding an address as an option

MozReview-Commit-ID: 7lg4suNHv60
2018-03-09 11:49:21 -08:00

47 lines
2.2 KiB
HTML

<!DOCTYPE html>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'">
<link rel="stylesheet" href="debugging.css"/>
<script src="debugging.js"></script>
</head>
<body>
<div>
<button id="refresh">Refresh</button>
<button id="rerender">Re-render</button>
<button id="logState">Log state</button>
<button id="debugFrame" hidden>Debug frame</button>
<h1>Requests</h1>
<button id="setRequest1">Request 1</button>
<button id="setRequest2">Request 2</button>
<fieldset id="paymentOptions">
<legend>Payment Options</legend>
<label><input type="checkbox" autocomplete="off" name="requestPayerName" id="setRequestPayerName">requestPayerName</label>
<label><input type="checkbox" autocomplete="off" name="requestPayerEmail" id="setRequestPayerEmail">requestPayerEmail</label>
<label><input type="checkbox" autocomplete="off" name="requestPayerPhone" id="setRequestPayerPhone">requestPayerPhone</label>
<label><input type="checkbox" autocomplete="off" name="requestShipping" id="setRequestShipping">requestShipping</label>
</fieldset>
<h1>Addresses</h1>
<button id="setAddresses1">Set Addreses 1</button>
<button id="setDupesAddresses">Set Duped Addresses</button>
<button id="delete1Address">Delete 1 Address</button>
<h1>Payment Methods</h1>
<button id="setBasicCards1">Set Basic Cards 1</button>
<button id="delete1Card">Delete 1 Card</button>
<h1>States</h1>
<button id="setChangesPrevented">Prevent changes</button>
<button id="setChangesAllowed">Allow changes</button>
<button id="setShippingError">Shipping Error</button>
<button id="setStateDefault">Default</button>
<button id="setStateProcessing">Processing</button>
<button id="setStateSuccess">Success</button>
<button id="setStateFail">Fail</button>
<button id="setStateUnknown">Unknown</button>
</div>
</body>
</html>