Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / test / data / chromeos / mobile_activation.html
blob8d44f4ec36574969993156640e0cc940102649f8
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Mobile activation testing page</title>
7 <style>
8 body {
9 background: -webkit-gradient(linear, left top, left bottom,
10 from(#EBEBEB), to(#CFCFCF));
11 font-family: 'Lucida Grande', Helvetica, sans-serif;
12 font-size: 10px;
13 height: 300px;
14 overflow: hidden;
16 </style>
18 <script src="connection_manager.js"></script>
19 <script>
20 function $(id) {
21 return document.getElementById(id);
24 chromeos.connectionManager.getDeviceInfo(function(device) {
25 $('device-info').innerHTML =
26 'carrier = ' + device.carrier + '<br>' +
27 'MEID = ' + device.MEID + '<br>' +
28 'IMEI = ' + device.IMEI + '<br>' +
29 'IMSI = ' + device.IMSI + '<br>' +
30 'ESN = ' + device.ESN + '<br>' +
31 'MDN = ' + device.MDN;
32 });
34 function sendStatus(status) {
35 chromeos.connectionManager.setTransactionStatus(status,
36 function() {});
39 </script>
41 </head>
42 <body>
43 <h2>Plan Payment Page<h2>
44 <div>Press a button below to signal transaction status back to the browser</div>
45 <div id='buttons'>
46 <button id='ok-btn' onclick="sendStatus('OK')">OK</button>
47 <button id='fail-btn' onclick="sendStatus('FAILED')">Failed</button>
48 </div>
49 <div>
50 Device Information:
51 <div id="device-info"></div>
52 </div>
53 </body>
54 </html>