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> |
- |