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

Unified Diff: content/test/data/screen_orientation/screen_orientation_lock_smoke.html

Issue 444033002: Fix screen.orientation.lock() rejection and an integration test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/screen_orientation/screen_orientation_dispatcher_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « content/browser/screen_orientation/screen_orientation_dispatcher_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698