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

Unified Diff: LayoutTests/fast/text/caret-crash.html

Issue 834173003: Change about caret painting in slimming paint mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add tests Created 5 years, 11 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
Index: LayoutTests/fast/text/caret-crash.html
diff --git a/LayoutTests/fast/text/caret-crash.html b/LayoutTests/fast/text/caret-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..31cca15a9b4b569771520ed4728467525800af12
--- /dev/null
+++ b/LayoutTests/fast/text/caret-crash.html
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML>
+<body>
+This test passes if it does not crash.
+<script>
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
+
+ internals.settings.setCaretBrowsingEnabled(false);
+ testRunner.displayAsyncThen(function() {
+ internals.settings.setCaretBrowsingEnabled(true);
+ document.body.innerHTML += 'PASS';
+ testRunner.displayAsyncThen(function() {
+ testRunner.notifyDone();
+ });
+ });
+} else {
+ document.body.textContent = 'This test needs DumpRenderTree.';
+}
+</script>
+</body>
« no previous file with comments | « LayoutTests/fast/layers/layer-status-change-crash-expected.txt ('k') | LayoutTests/fast/text/caret-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698