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

Unified Diff: LayoutTests/editing/pasteboard/do-not-copy-body-color.html

Issue 6975019: Revert 85494 - MERGE 85090 - 2011-04-27 Enrica Casucci <enrica@apple.com> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 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 | « LayoutTests/ChangeLog ('k') | LayoutTests/editing/pasteboard/do-not-copy-body-color-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/pasteboard/do-not-copy-body-color.html
===================================================================
--- LayoutTests/editing/pasteboard/do-not-copy-body-color.html (revision 86683)
+++ LayoutTests/editing/pasteboard/do-not-copy-body-color.html (working copy)
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script>
-function runTest() {
- if (!window.layoutTestController)
- return;
- layoutTestController.dumpAsText();
- var element = document.getElementById("test");
- window.getSelection().setPosition(element.firstChild, 0);
- window.getSelection().modify('extend', 'forward', 'word');
- window.getSelection().modify('extend', 'forward', 'word');
- window.getSelection().modify('extend', 'forward', 'word');
-
- document.execCommand("Cut");
- document.body.style.backgroundColor = "white";
- document.execCommand("Paste");
- document.body.innerText = document.body.innerHTML;
-
-}
-</script>
-</head>
-<body onLoad="runTest();" contentEditable="true" style="background-color: #bbb;">
-<div>
-This test verifies that, when the body element has a background color, we don't copy the color if the selection is not the entire content nor any of the intermediate elements. To manually this test, select the text inside the div with the border, cut and paste it back. You should not see an additional red border.
-<div style="border: 2px solid red">
- <div id="test">Select this text</div>
-</div>
-</div>
-</body>
-</html>
-
« no previous file with comments | « LayoutTests/ChangeLog ('k') | LayoutTests/editing/pasteboard/do-not-copy-body-color-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698