OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <body> |
| 4 <script src="../resources/testharness.js"></script> |
| 5 <script src="../resources/testharnessreport.js"></script> |
| 6 <script src="../fast/forms/resources/picker-common.js"></script> |
| 7 <input type=date id=date> |
| 8 <script> |
| 9 test(function() { |
| 10 function popupCallback() { |
| 11 // To handle platforms (Mac) that doesn't support testing popup menu win
dows, |
| 12 // phrase the check so that openPicker()'s errorCallback produces the sa
me |
| 13 // expected output when invoked. |
| 14 var popupWindowScreenOrientation = popupWindow ? popupWindow.screen.orie
ntation : null; |
| 15 assert_equals(popupWindowScreenOrientation, null); |
| 16 } |
| 17 openPicker(document.getElementById('date'), popupCallback, popupCallback); |
| 18 }, "Verify that accessing screen.orientation where unsupported doesn't crash."); |
| 19 </script> |
| 20 </body> |
| 21 </html> |
OLD | NEW |