Index: LayoutTests/fullscreen/api/element-request-fullscreen-non-top.html |
diff --git a/LayoutTests/fullscreen/model/remove-last.html b/LayoutTests/fullscreen/api/element-request-fullscreen-non-top.html |
similarity index 71% |
copy from LayoutTests/fullscreen/model/remove-last.html |
copy to LayoutTests/fullscreen/api/element-request-fullscreen-non-top.html |
index b7a3807193caf94240c1f5532edc0977ccc2cb6b..3a5c657c6a278e6145f42783e0371193882519a5 100644 |
--- a/LayoutTests/fullscreen/model/remove-last.html |
+++ b/LayoutTests/fullscreen/api/element-request-fullscreen-non-top.html |
@@ -1,5 +1,5 @@ |
<!DOCTYPE html> |
-<title>Remove the last element on the fullscreen element stack</title> |
+<title>Element.requestFullscreen() for non-top element in fullscreen element stack</title> |
<script src="../../resources/testharness.js"></script> |
<script src="../../resources/testharnessreport.js"></script> |
<script src="../trusted-event.js"></script> |
@@ -20,12 +20,8 @@ async_test(function(t) |
document.onfullscreenchange = t.step_func(function() |
{ |
assert_equals(document.fullscreenElement, last); |
- last.remove(); |
- document.onfullscreenchange = t.step_func(function() |
- { |
- assert_equals(document.fullscreenElement, first); |
- t.done(); |
- }); |
+ trusted_request(first, last); |
+ document.onfullscreenerror = t.step_func_done(); |
}); |
}); |
}); |