Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / test / data / printing / cloud_print_uitest.html
blob2b79b4a34959fc02101c3320e7e6096c3b128041
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Cloud Print Dialog unittest</title>
5 <script language="javascript">
6 window.onload = onLoad;
8 function onLoad() {
11 function testPageSetup() {
12 var result = JSON.stringify({'dpi': 300,
13 'min_shrink': 1.25,
14 'max_shrink': 2.0,
15 'selection_only': false});
16 chrome.send('SetPageParameters', [result]);
19 function testWindowPrint() {
20 window.print();
23 function testWindowClose() {
24 window.close();
27 function testWindowSizeLarger() {
28 window.resizeBy(0, 50);
31 function testWindowSizeSmaller() {
32 window.resizeBy(0, -50);
35 function showDebugger() {
36 onLoad();
37 chrome.send('ShowDebugger', ['']);
40 function testSendPrintData() {
41 chrome.send('SendPrintData', ['']);
43 </script>
44 </head>
45 <body style='margin:0; border:0;'>
46 <hr>
47 <table border='0' width='100%'>
48 <tr>
49 <td align='right'>
50 <input type='button' value='Open Debug Window' id='debug'
51 onclick='showDebugger();'/>
52 <input type='button' value='Test Send Data' id='data'
53 onclick='testSendPrintData();'/>
54 <input type='button' name='test' value='Test window.print()'
55 onclick='testWindowPrint();'/>
56 </td>
57 </tr>
58 <tr>
59 <td align='right'>
60 <input type='button' name='larger' value='Make Window Larger'
61 onclick='makeWindowLarger();'/>
62 <input type='button' name='smaller' value='Make Window Smaller'
63 onclick='makeWindowSmaller();'/>
64 <input type='button' name='test' value='Test Page Setup'
65 onclick='testPageSetup();'/>
66 </td>
67 </tr>
68 <tr>
69 <td align='right'>
70 <input type='button' value='Cancel' id='cancel'
71 onclick='testWindowClose();'/>
72 </td>
73 </tr>
74 </table>
75 <div id='message' style='font-weight:bolder;'>&nbsp;</div>
76 <div id='advanced' class='advanced' style='display:none;'></div>
77 </body>
78 </html>