summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/chromeos/mobile_activation.html
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/data/chromeos/mobile_activation.html')
-rwxr-xr-xchrome/test/data/chromeos/mobile_activation.html55
1 files changed, 55 insertions, 0 deletions
diff --git a/chrome/test/data/chromeos/mobile_activation.html b/chrome/test/data/chromeos/mobile_activation.html
new file mode 100755
index 0000000..8d44f4e
--- /dev/null
+++ b/chrome/test/data/chromeos/mobile_activation.html
@@ -0,0 +1,55 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<meta charset="utf-8">
+<title>Mobile activation testing page</title>
+
+<style>
+body {
+ background: -webkit-gradient(linear, left top, left bottom,
+ from(#EBEBEB), to(#CFCFCF));
+ font-family: 'Lucida Grande', Helvetica, sans-serif;
+ font-size: 10px;
+ height: 300px;
+ overflow: hidden;
+}
+</style>
+
+<script src="connection_manager.js"></script>
+<script>
+function $(id) {
+ return document.getElementById(id);
+}
+
+chromeos.connectionManager.getDeviceInfo(function(device) {
+ $('device-info').innerHTML =
+ 'carrier = ' + device.carrier + '<br>' +
+ 'MEID = ' + device.MEID + '<br>' +
+ 'IMEI = ' + device.IMEI + '<br>' +
+ 'IMSI = ' + device.IMSI + '<br>' +
+ 'ESN = ' + device.ESN + '<br>' +
+ 'MDN = ' + device.MDN;
+});
+
+function sendStatus(status) {
+ chromeos.connectionManager.setTransactionStatus(status,
+ function() {});
+}
+
+</script>
+
+</head>
+<body>
+<h2>Plan Payment Page<h2>
+<div>Press a button below to signal transaction status back to the browser</div>
+<div id='buttons'>
+<button id='ok-btn' onclick="sendStatus('OK')">OK</button>
+<button id='fail-btn' onclick="sendStatus('FAILED')">Failed</button>
+</div>
+<div>
+Device Information:
+<div id="device-info"></div>
+</div>
+</body>
+</html>
+