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

Side by Side Diff: LayoutTests/screen_orientation/resources/sandboxed-iframe-locking.html

Issue 374623002: [screen-orientation] Update implementation to match recent spec changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 5 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <script> 3 <script>
4 var msg = ""; 4 var msg = "";
5 screen.lockOrientation("portrait-primary").then(function() { 5 screen.orientation.lock("portrait-primary").then(function() {
6 }, function(error) { 6 }, function(error) {
7 msg = error.name; 7 msg = error.name;
8 }); 8 });
9 9
10 // FIXME: for the moment, tests gets notified when there is a failure but 10 // FIXME: for the moment, tests gets notified when there is a failure but
11 // not a success, this hack should allow us to still have the test running. 11 // not a success, this hack should allow us to still have the test running.
12 // That should be removed as soon as we get a resolved promise in tests. 12 // That should be removed as soon as we get a resolved promise in tests.
13 setTimeout(function() { 13 setTimeout(function() {
14 parent.window.postMessage(msg, "*"); 14 parent.window.postMessage(msg, "*");
15 }) 15 })
16 </script> 16 </script>
17 </html> 17 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698