Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / 19644-2.html
blobec1041825eaa79fd4011f182f1abb79158b0f8a7
1 <head>
2 <script>
3 function runTest() {
4 document.body.focus();
5 document.execCommand("SelectAll");
6 if (!testRunner)
7 return;
8 testRunner.dumpAsText();
9 document.execCommand("Cut");
10 document.body.style.backgroundColor = "white";
11 document.execCommand("Paste");
12 document.body.innerText = document.body.innerHTML;
15 </script>
16 </head>
17 <body onLoad="runTest();" contentEditable="true" style="background-color: #bbb;">This tests to make sure that we wrap copied markup in a div to hold a fully selected body's attributes and style when the that body has a background-color. If you copy and paste this text into Mail, it should have a grey background.</body>