1 This test makes sure that calling the window moving and resizing methods with less than 2 arguments treats the missing arguments as 0.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
9 Testing - resizeTo with 0 arguments
10 PASS window.resizeTo() threw exception TypeError: Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only 0 present..
11 PASS window.outerWidth is resetWidth
12 PASS window.outerHeight is resetHeight
13 Testing - resizeTo with 1 argument
14 PASS window.resizeTo(width) threw exception TypeError: Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only 1 present..
15 PASS window.outerWidth is resetWidth
16 PASS window.outerHeight is resetHeight
17 Testing - resizeTo with more than 2 arguments
18 PASS window.outerWidth is width
19 PASS window.outerHeight is height
23 Testing - resizeBy with 0 arguments
24 PASS window.resizeBy() threw exception TypeError: Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only 0 present..
25 PASS window.outerWidth is resetWidth
26 PASS window.outerHeight is resetHeight
27 Testing - resizeBy with 1 argument
28 PASS window.resizeBy(x) threw exception TypeError: Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only 1 present..
29 PASS window.outerWidth is resetWidth
30 PASS window.outerHeight is resetHeight
31 Testing - resizeBy with more than 2 arguments
32 PASS window.outerWidth is resetWidth + x
33 PASS window.outerHeight is resetHeight + y
37 Testing - moveTo with 0 arguments
38 PASS window.moveTo() threw exception TypeError: Failed to execute 'moveTo' on 'Window': 2 arguments required, but only 0 present..
39 PASS window.screenX is resetX
40 PASS window.screenY is resetY
41 Testing - moveTo with 1 argument
42 PASS window.moveTo(x) threw exception TypeError: Failed to execute 'moveTo' on 'Window': 2 arguments required, but only 1 present..
43 PASS window.screenX is resetX
44 PASS window.screenY is resetY
45 Testing - moveTo with more than 2 arguments
46 PASS window.screenX is Math.max(x, screen.availLeft)
47 PASS window.screenY is Math.max(y, screen.availTop)
51 Testing - moveBy with 0 arguments
52 PASS window.moveBy() threw exception TypeError: Failed to execute 'moveBy' on 'Window': 2 arguments required, but only 0 present..
53 PASS window.screenX is resetX
54 PASS window.screenY is resetY
55 Testing - moveBy with 1 argument
56 PASS window.moveBy(x) threw exception TypeError: Failed to execute 'moveBy' on 'Window': 2 arguments required, but only 1 present..
57 PASS window.screenX is resetX
58 PASS window.screenY is resetY
59 Testing - moveBy with more than 2 arguments
60 PASS window.screenX is resetX + x
61 PASS window.screenY is resetY + y
62 PASS successfullyParsed is true