OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Cloud Print Dialog unittest</title> | 4 <title>Cloud Print Dialog unittest</title> |
5 <script language="javascript"> | 5 <script language="javascript"> |
6 window.onload = onLoad; | 6 window.onload = onLoad; |
7 | 7 |
8 function onLoad() { | 8 function onLoad() { |
9 } | 9 } |
10 | 10 |
11 function testPageSetup() { | 11 function testPageSetup() { |
12 var result = JSON.stringify({'dpi': 300, | 12 var result = JSON.stringify({'dpi': 300, |
13 'min_shrink': 1.25, | |
14 'max_shrink': 2.0, | |
15 'selection_only': false}); | 13 'selection_only': false}); |
16 chrome.send('SetPageParameters', [result]); | 14 chrome.send('SetPageParameters', [result]); |
17 } | 15 } |
18 | 16 |
19 function testWindowPrint() { | 17 function testWindowPrint() { |
20 window.print(); | 18 window.print(); |
21 } | 19 } |
22 | 20 |
23 function testWindowClose() { | 21 function testWindowClose() { |
24 window.close(); | 22 window.close(); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 <td align='right'> | 67 <td align='right'> |
70 <input type='button' value='Cancel' id='cancel' | 68 <input type='button' value='Cancel' id='cancel' |
71 onclick='testWindowClose();'/> | 69 onclick='testWindowClose();'/> |
72 </td> | 70 </td> |
73 </tr> | 71 </tr> |
74 </table> | 72 </table> |
75 <div id='message' style='font-weight:bolder;'> </div> | 73 <div id='message' style='font-weight:bolder;'> </div> |
76 <div id='advanced' class='advanced' style='display:none;'></div> | 74 <div id='advanced' class='advanced' style='display:none;'></div> |
77 </body> | 75 </body> |
78 </html> | 76 </html> |
OLD | NEW |