Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(854)

Side by Side Diff: LayoutTests/screen_orientation/screenorientation-unsupported-no-crash.html

Issue 943483003: Gracefully handle screen.orientation access over unsupported frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Switch to testharness.js Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/modules/screen_orientation/ScreenOrientation.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | Source/modules/screen_orientation/ScreenOrientation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698