Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Unified Diff: LayoutTests/editing/input/text-input-controller-no-editable-no-crash.html

Issue 1122593004: firstRectForCharacterRange(): don't fall over in an editable-less frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/editing/input/text-input-controller-no-editable-no-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/editing/input/text-input-controller-no-editable-no-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698