Index: LayoutTests/screen_orientation/lockOrientation-basic.html |
diff --git a/LayoutTests/screen_orientation/lockOrientation-basic.html b/LayoutTests/screen_orientation/lockOrientation-basic.html |
index 5ae52de880e70be3c49c2a3109045ccd997e9a0c..9a48a806fc6fbe10c7c1eb63018bde719e2204ec 100644 |
--- a/LayoutTests/screen_orientation/lockOrientation-basic.html |
+++ b/LayoutTests/screen_orientation/lockOrientation-basic.html |
@@ -10,19 +10,19 @@ |
test(function() { |
var caught = false; |
try { |
- screen.orientation.unlock(); |
+ screen.unlockOrientation(); |
} catch (e) { |
caught = true; |
} |
assert_false(caught); |
-}, "Test that screen.orientation.unlock() doesn't throw when there is no lock"); |
+}, "Test that unlockOrientation() doesn't throw when there is no lock"); |
test(function() { |
[ 'any', 'portrait', 'landscape', 'portrait-primary', 'portrait-secondary', |
'landscape-primary', 'landscape-secondary' ].forEach(function(orientation) { |
var pending = true; |
- screen.orientation.lock(orientation).then(function() { |
+ screen.lockOrientation(orientation).then(function() { |
pending = false; |
}, function() { |
pending = false; |
@@ -30,22 +30,22 @@ |
assert_true(pending); |
}); |
-}, "Test that screen.orientation.lock returns a pending promise."); |
+}, "Test that screen.lockOrientation returns a pending promise."); |
test(function() { |
assert_equals(screen.orientation, previousOrientation); |
-}, "Test that screen.orientation.lock() is actually async"); |
+}, "Test that screen.lockOrientation() is actually async"); |
test(function() { |
var caught = false; |
try { |
- screen.orientation.unlock(); |
+ screen.unlockOrientation(); |
} catch (e) { |
caught = true; |
} |
assert_false(caught); |
-}, "Test that screen.unlock() doesn't throw when there is a lock"); |
+}, "Test that unlockOrientation doesn't throw when there is a lock"); |
</script> |
</body> |