| Index: chrome/test/data/android/keygen.html
|
| diff --git a/chrome/test/data/android/keygen.html b/chrome/test/data/android/keygen.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..560692fe1fbe57c81b48b6264b01f5928847e214
|
| --- /dev/null
|
| +++ b/chrome/test/data/android/keygen.html
|
| @@ -0,0 +1,35 @@
|
| +<html>
|
| +
|
| +<head>
|
| +<title>Test page for key generation</title>
|
| +
|
| +<script>
|
| +var keygen = false;
|
| +
|
| +function runKeygen() {
|
| + if (window.location.search.indexOf('?') == -1) {
|
| + document.getElementById('test_form').submit();
|
| + } else {
|
| + // Verify that the form submission includes a generated key. A successful
|
| + // key generation will send a binary blob starting with 0x30, 0x82, 0x02
|
| + // ('MIIC' in base64) to the target. We check whether the GET request
|
| + // includes this data to determine whether the key generation successfully
|
| + // occurred.
|
| + keygen = (window.location.search.indexOf('?key=MIIC') == 0)
|
| + }
|
| +}
|
| +
|
| +function didKeygen() {
|
| + return keygen;
|
| +}
|
| +</script>
|
| +</head>
|
| +
|
| +<body onload="runKeygen()">
|
| +This page tries to use a keygen element when it is loaded.
|
| +<form id='test_form'>
|
| +<keygen name='key'>
|
| +</form>
|
| +</body>
|
| +
|
| +</html>
|
|
|