| 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, |
| 13 'selection_only': false}); | 15 'selection_only': false}); |
| 14 chrome.send('SetPageParameters', [result]); | 16 chrome.send('SetPageParameters', [result]); |
| 15 } | 17 } |
| 16 | 18 |
| 17 function testWindowPrint() { | 19 function testWindowPrint() { |
| 18 window.print(); | 20 window.print(); |
| 19 } | 21 } |
| 20 | 22 |
| 21 function testWindowClose() { | 23 function testWindowClose() { |
| 22 window.close(); | 24 window.close(); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 <td align='right'> | 69 <td align='right'> |
| 68 <input type='button' value='Cancel' id='cancel' | 70 <input type='button' value='Cancel' id='cancel' |
| 69 onclick='testWindowClose();'/> | 71 onclick='testWindowClose();'/> |
| 70 </td> | 72 </td> |
| 71 </tr> | 73 </tr> |
| 72 </table> | 74 </table> |
| 73 <div id='message' style='font-weight:bolder;'> </div> | 75 <div id='message' style='font-weight:bolder;'> </div> |
| 74 <div id='advanced' class='advanced' style='display:none;'></div> | 76 <div id='advanced' class='advanced' style='display:none;'></div> |
| 75 </body> | 77 </body> |
| 76 </html> | 78 </html> |
| OLD | NEW |