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

Unified Diff: LayoutTests/fast/repaint/selection-partial-invalidation-between-blocks.html

Issue 659983002: Block selection gaps are not invalidated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added a TestExpectation for the new test. Created 6 years, 2 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/repaint/selection-partial-invalidation-between-blocks.html
diff --git a/LayoutTests/fast/repaint/selection-partial-invalidation-between-blocks.html b/LayoutTests/fast/repaint/selection-partial-invalidation-between-blocks.html
new file mode 100644
index 0000000000000000000000000000000000000000..4a5de2b414be9f29a97be922ca462018a40bc004
--- /dev/null
+++ b/LayoutTests/fast/repaint/selection-partial-invalidation-between-blocks.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<table width="100%">
+ <tr>
+ <td id="firstCell">First cell</td>
+ </tr>
+ <tr>
+ <td id="secondCell">Second cell</td>
+ </tr>
+</table>
+<script src="../../resources/run-after-display.js" type="text/javascript"></script>
+<script src="resources/text-based-repaint.js" type="text/javascript"></script>
+<script>
+window.testIsAsync = true;
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+document.execCommand("selectAll");
+
+function repaintTest() {
+ var selection = window.getSelection();
+ var firstCell = document.getElementById("firstCell");
+ selection.setBaseAndExtent(firstCell, 0, firstCell, 1);
+ finishRepaintTest();
+}
+runAfterDisplay(runRepaintTest);
+</script>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/repaint/selection-partial-invalidation-between-blocks-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698