Index: LayoutTests/fullscreen/full-screen-contentEditable-crash.html |
diff --git a/LayoutTests/fullscreen/full-screen-contentEditable-crash.html b/LayoutTests/fullscreen/full-screen-contentEditable-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7c6df542bcf9e5794f46ddffa89ff92742c95908 |
--- /dev/null |
+++ b/LayoutTests/fullscreen/full-screen-contentEditable-crash.html |
@@ -0,0 +1,35 @@ |
+<!DOCTYPE html> |
+Pass if there is no crash. |
+<div></div> |
+<span></span> |
+Click anywhere to test manually. |
+<script> |
+if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ testRunner.waitUntilDone(); |
+} |
+ |
+function requestFullscreen() |
+{ |
+ document.querySelector("span").webkitRequestFullScreen(); |
+} |
+ |
+document.addEventListener("webkitfullscreenchange", function() |
+{ |
+ document.body.contentEditable = "true"; |
+ var range = document.createRange(); |
+ range.selectNode(document.body); |
+ document.getSelection().addRange(range); |
+ document.execCommand("hiliteColor", false, "#000"); |
+ if (window.testRunner) { |
+ testRunner.notifyDone(); |
+ } |
+}); |
+ |
+document.addEventListener("click", requestFullscreen); |
+ |
+if (window.eventSender) { |
+ eventSender.mouseDown(); |
+ eventSender.mouseUp(); |
+} |
+</script> |