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

Unified Diff: webkit/data/layout_tests/chrome/editing/selection/click-before-and-after-table.html

Issue 55025: Remove tests that have been upstreamed. Update test_expectations list... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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: webkit/data/layout_tests/chrome/editing/selection/click-before-and-after-table.html
===================================================================
--- webkit/data/layout_tests/chrome/editing/selection/click-before-and-after-table.html (revision 12362)
+++ webkit/data/layout_tests/chrome/editing/selection/click-before-and-after-table.html (working copy)
@@ -1,77 +0,0 @@
-<script>
-if (window.layoutTestController)
- layoutTestController.dumpEditingCallbacks();
-</script>
-<style>
-td {
- border: 1px solid #aaa;
-}
-</style>
-
-<body onload="runTest()" style="border: 1px solid red;" contenteditable="true"><table id="table" style="margin: 25px; border:10px solid #ccc; padding: 10px;"><tr><td>cell one</td><td>cell two</td></tr></table>
-<ul id="console"></ul>
-<script>
-function log(message) {
- var console = document.getElementById("console");
- var li = document.createElement("li");
- var text = document.createTextNode(message);
-
- console.appendChild(li);
- li.appendChild(text);
-}
-function runTest() {
- if (!window.layoutTestController)
- log("This test uses the eventSender to do mouse clicks. To run it manually, click after the table, the caret should appear there (and not inside the table). Then click inside the table. The caret should appear inside it.");
- else {
- window.layoutTestController.dumpAsText();
- var s, x, y, e, top, bottom, left, right;
- table = document.getElementById("table");
-
- top = table.offsetTop;
- left = table.offsetLeft;
- bottom = top + table.offsetHeight;
- right = left + table.offsetWidth;
-
- x = right + 5;
- y = (top + bottom) / 2;
- eventSender.mouseMoveTo(x, y);
- eventSender.mouseDown();
- eventSender.mouseUp();
- s = window.getSelection();
- if (!(s.anchorNode == document.body && s.anchorOffset == 1))
- log("Failure: Clicking after the table didn't put the caret after it.");
-
- x = right - 5;
- y = (top + bottom) / 2;
- eventSender.leapForward(1000);
- eventSender.mouseMoveTo(x, y);
- eventSender.mouseDown();
- eventSender.mouseUp();
- s = window.getSelection();
- if (s.anchorNode == document.body)
- log("Failure: Clicking inside the table put the caret before or after it.");
-
- x = left - 5;
- y = (top + bottom) / 2;
- eventSender.leapForward(1000);
- eventSender.mouseMoveTo(x, y);
- eventSender.mouseDown();
- eventSender.mouseUp();
- s = window.getSelection();
- if (s.anchorNode != table || s.anchorOffset != 0)
- if (!(s.anchorNode == document.body && s.anchorOffset == 0))
- log("Failure: Clicking before the table should be the caret before it.");
-
- x = left + 5;
- y = (top + bottom) / 2;
- eventSender.leapForward(1000);
- eventSender.mouseMoveTo(x, y);
- eventSender.mouseDown();
- eventSender.mouseUp();
- s = window.getSelection();
- if (s.anchorNode == document.body)
- log("Failure: Clicking inside the table put the caret before or after it.");
- }
-}
-</script>
-</body>

Powered by Google App Engine
This is Rietveld 408576698