file_resize_move_windows_1.html (737B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>Helper file for test_resize_move_windows.html</title> 5 </head> 6 <body> 7 <script> 8 function check(next) { 9 var is_range = function(aTest, aValue, aRange, aMsg) { 10 window.opener.ok(aTest < aValue + aRange && aTest > aValue - aRange, aMsg + `: ${aTest} vs. ${aValue}`); 11 }; 12 is_range(window.innerWidth, 170, 5, 'parameter width should be taken into account'); 13 is_range(window.innerHeight, 170, 5, 'parameter height should be taken into account'); 14 is_range(window.screenX, 65, 5, 'parameter screenX should be taken into account'); 15 is_range(window.screenY, 65, 5, 'parameter screenY should be taken into account'); 16 window.opener.checkChangeIsEnabled(window, next); 17 } 18 </script> 19 </body> 20 </html>