4 <title>Cloud Print Dialog unittest
</title>
5 <script language=
"javascript">
6 window
.onload
= onLoad
;
11 function testPageSetup() {
12 var result
= JSON
.stringify({'dpi': 300,
15 'selection_only': false});
16 chrome
.send('SetPageParameters', [result
]);
19 function testWindowPrint() {
23 function testWindowClose() {
27 function testWindowSizeLarger() {
28 window
.resizeBy(0, 50);
31 function testWindowSizeSmaller() {
32 window
.resizeBy(0, -50);
35 function showDebugger() {
37 chrome
.send('ShowDebugger', ['']);
40 function testSendPrintData() {
41 chrome
.send('SendPrintData', ['']);
45 <body style='margin:
0; border:
0;'
>
47 <table border='
0' width='
100%'
>
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();'
/>
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();'
/>
70 <input type='button' value='Cancel' id='cancel'
71 onclick='testWindowClose();'
/>
75 <div id='message' style='font-weight:bolder;'
> </div>
76 <div id='advanced' class='advanced' style='display:none;'
></div>