| OLD | NEW |
| 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> |
| OLD | NEW |