Index: LayoutTests/editing/input/text-input-controller-no-editable-no-crash.html |
diff --git a/LayoutTests/editing/input/text-input-controller-no-editable-no-crash.html b/LayoutTests/editing/input/text-input-controller-no-editable-no-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c9a48ef85e7640c42909e961dc064afa45c98299 |
--- /dev/null |
+++ b/LayoutTests/editing/input/text-input-controller-no-editable-no-crash.html |
@@ -0,0 +1,15 @@ |
+<html> |
+<body onload="runTest();"> |
+ <script> |
+ testRunner.dumpAsText(); |
+ function runTest() |
+ { |
+ document.open(); |
+ textInputController.firstRectForCharacterRange(0, 0); |
+ document.write("Accessing a frame without an editable element should not crash."); |
+ document.write("<br/><br/>"); |
+ document.write("PASS (no crash)."); |
+ } |
+ </script> |
+</body> |
+</html> |