Index: content/test/data/screen_orientation/screen_orientation_lock_smoke.html |
diff --git a/content/test/data/screen_orientation/screen_orientation_lock_smoke.html b/content/test/data/screen_orientation/screen_orientation_lock_smoke.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..25af22d67e8647010b023473112128fab2d6185c |
--- /dev/null |
+++ b/content/test/data/screen_orientation/screen_orientation_lock_smoke.html |
@@ -0,0 +1,16 @@ |
+<!DOCTYPE HTML> |
+<html> |
+<head> |
+</head> |
+<script> |
+ screen.orientation.lock('landscape').then(function() { |
+ document.location.hash = |
+ screen.orientation.search("landscape") == 0 ? "#Pass" : "#Fail"; |
+ }, function(e) { |
+ document.location.hash = "#" + e.name; |
+ }); |
+</script> |
+<body> |
+ <div>Starting...</div> |
+</body> |
+</html> |