Chromium Code Reviews| 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..e2c7d5daf3cccad1c0c5a38854cc68a39c5d3b09 |
| --- /dev/null |
| +++ b/chrome/test/data/android/keygen.html |
| @@ -0,0 +1,32 @@ |
| +<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. |
| + // We check for base64 'MIIC' to match the first 3 bytes: 0x30 0x82 0x02 |
|
Finnur
2015/12/11 21:06:12
nit: Generally, comments should end with some punc
|
| + 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> |