| <!DOCTYPE html> |
| <!-- |
| Copyright 2018 The Chromium Authors. All rights reserved. |
| Use of this source code is governed by a BSD-style license that can be |
| found in the LICENSE file. |
| --> |
| <html> |
| <head> |
| <title>Show Promise Test</title> |
| <meta charset="utf-8"> |
| <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1"> |
| <link rel="stylesheet" type="text/css" href="style.css"> |
| </head> |
| <body> |
| <button onclick="buyWithNoPromise()" id="buyWithNoPromise">Buy with no promise</button> |
| <button onclick="buyWithResolvingPromise()" id="buyWithResolvingPromise">Buy with resolving promise</button> |
| <button onclick="buyWithRejectingPromise()" id="buyWithRejectingPromise">Buy with rejecting promise</button> |
| <pre id="result"></pre> |
| <script src="util.js"></script> |
| <script src="show_promise.js"></script> |
| </body> |
| </html> |