<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[150593] trunk/LayoutTests</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/150593">150593</a></dd>
<dt>Author</dt> <dd>rniwa@webkit.org</dd>
<dt>Date</dt> <dd>2013-05-23 10:50:03 -0700 (Thu, 23 May 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>Several editing tests that copy &amp; paste slow down Mac WK2 EWS
https://bugs.webkit.org/show_bug.cgi?id=116681

Reviewed by Anders Carlsson.

Move editing tests that trigger copy and paste from execCommand into pasteboard.
Since NWRT uses a single instance of WebKitTestRunner to run tests in single directory,
this should mitigate the issue for now.

In the long term, we should really mock out the clipboard in WebKitTestRunner.

* editing/execCommand/4128080-2-expected.txt: Removed.
* editing/execCommand/4128080-2.html: Removed.
* editing/execCommand/5939887-expected.txt: Removed.
* editing/execCommand/5939887.html: Removed.
* editing/execCommand/copy-without-selection-expected.txt: Removed.
* editing/execCommand/copy-without-selection.html: Removed.
* editing/execCommand/paste-2.html: Removed.
* editing/pasteboard/copy-cut-paste-events-fired-when-disabled-expected.txt: Copied from LayoutTests/editing/execCommand/5939887-expected.txt.
* editing/pasteboard/copy-cut-paste-events-fired-when-disabled.html: Copied from LayoutTests/editing/execCommand/5939887.html.
* editing/pasteboard/copy-inside-h1-preserves-h1-expected.txt: Copied from LayoutTests/editing/execCommand/4128080-2-expected.txt.
* editing/pasteboard/copy-inside-h1-preserves-h1.html: Copied from LayoutTests/editing/execCommand/4128080-2.html.
* editing/pasteboard/copy-without-selection-expected.txt: Copied from LayoutTests/editing/execCommand/copy-without-selection-expected.txt.
* editing/pasteboard/copy-without-selection.html: Copied from LayoutTests/editing/execCommand/copy-without-selection.html.
* editing/pasteboard/paste-2.html: Copied from LayoutTests/editing/execCommand/paste-2.html.
* platform/gtk/editing/execCommand/paste-2-expected.png: Removed.
* platform/gtk/editing/execCommand/paste-2-expected.txt: Removed.
* platform/gtk/editing/pasteboard/paste-2-expected.png: Copied from LayoutTests/platform/gtk/editing/execCommand/paste-2-expected.png.
* platform/gtk/editing/pasteboard/paste-2-expected.txt: Copied from LayoutTests/platform/gtk/editing/execCommand/paste-2-expected.txt.
* platform/mac/editing/execCommand/paste-2-expected.png: Removed.
* platform/mac/editing/execCommand/paste-2-expected.txt: Removed.
* platform/mac/editing/pasteboard/paste-2-expected.png: Copied from LayoutTests/platform/mac/editing/execCommand/paste-2-expected.png.
* platform/mac/editing/pasteboard/paste-2-expected.txt: Copied from LayoutTests/platform/mac/editing/execCommand/paste-2-expected.txt.
* platform/qt/editing/execCommand/paste-2-expected.png: Removed.
* platform/qt/editing/execCommand/paste-2-expected.txt: Removed.
* platform/qt/editing/pasteboard/paste-2-expected.png: Copied from LayoutTests/platform/qt/editing/execCommand/paste-2-expected.png.
* platform/qt/editing/pasteboard/paste-2-expected.txt: Copied from LayoutTests/platform/qt/editing/execCommand/paste-2-expected.txt.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestseditingpasteboardcopycutpasteeventsfiredwhendisabledexpectedtxt">trunk/LayoutTests/editing/pasteboard/copy-cut-paste-events-fired-when-disabled-expected.txt</a></li>
<li><a href="#trunkLayoutTestseditingpasteboardcopycutpasteeventsfiredwhendisabledhtml">trunk/LayoutTests/editing/pasteboard/copy-cut-paste-events-fired-when-disabled.html</a></li>
<li><a href="#trunkLayoutTestseditingpasteboardcopyinsideh1preservesh1expectedtxt">trunk/LayoutTests/editing/pasteboard/copy-inside-h1-preserves-h1-expected.txt</a></li>
<li><a href="#trunkLayoutTestseditingpasteboardcopyinsideh1preservesh1html">trunk/LayoutTests/editing/pasteboard/copy-inside-h1-preserves-h1.html</a></li>
<li><a href="#trunkLayoutTestseditingpasteboardcopywithoutselectionexpectedtxt">trunk/LayoutTests/editing/pasteboard/copy-without-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestseditingpasteboardcopywithoutselectionhtml">trunk/LayoutTests/editing/pasteboard/copy-without-selection.html</a></li>
<li><a href="#trunkLayoutTestseditingpasteboardpaste2html">trunk/LayoutTests/editing/pasteboard/paste-2.html</a></li>
<li><a href="#trunkLayoutTestsplatformgtkeditingpasteboardpaste2expectedpng">trunk/LayoutTests/platform/gtk/editing/pasteboard/paste-2-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformgtkeditingpasteboardpaste2expectedtxt">trunk/LayoutTests/platform/gtk/editing/pasteboard/paste-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingpasteboardpaste2expectedpng">trunk/LayoutTests/platform/mac/editing/pasteboard/paste-2-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingpasteboardpaste2expectedtxt">trunk/LayoutTests/platform/mac/editing/pasteboard/paste-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformqteditingpasteboardpaste2expectedpng">trunk/LayoutTests/platform/qt/editing/pasteboard/paste-2-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformqteditingpasteboardpaste2expectedtxt">trunk/LayoutTests/platform/qt/editing/pasteboard/paste-2-expected.txt</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestseditingexecCommand41280802expectedtxt">trunk/LayoutTests/editing/execCommand/4128080-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestseditingexecCommand41280802html">trunk/LayoutTests/editing/execCommand/4128080-2.html</a></li>
<li><a href="#trunkLayoutTestseditingexecCommand5939887expectedtxt">trunk/LayoutTests/editing/execCommand/5939887-expected.txt</a></li>
<li><a href="#trunkLayoutTestseditingexecCommand5939887html">trunk/LayoutTests/editing/execCommand/5939887.html</a></li>
<li><a href="#trunkLayoutTestseditingexecCommandcopywithoutselectionexpectedtxt">trunk/LayoutTests/editing/execCommand/copy-without-selection-expected.txt</a></li>
<li><a href="#trunkLayoutTestseditingexecCommandcopywithoutselectionhtml">trunk/LayoutTests/editing/execCommand/copy-without-selection.html</a></li>
<li><a href="#trunkLayoutTestseditingexecCommandpaste2html">trunk/LayoutTests/editing/execCommand/paste-2.html</a></li>
<li><a href="#trunkLayoutTestsplatformgtkeditingexecCommandpaste2expectedpng">trunk/LayoutTests/platform/gtk/editing/execCommand/paste-2-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformgtkeditingexecCommandpaste2expectedtxt">trunk/LayoutTests/platform/gtk/editing/execCommand/paste-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingexecCommandpaste2expectedpng">trunk/LayoutTests/platform/mac/editing/execCommand/paste-2-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformmaceditingexecCommandpaste2expectedtxt">trunk/LayoutTests/platform/mac/editing/execCommand/paste-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformqteditingexecCommandpaste2expectedpng">trunk/LayoutTests/platform/qt/editing/execCommand/paste-2-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformqteditingexecCommandpaste2expectedtxt">trunk/LayoutTests/platform/qt/editing/execCommand/paste-2-expected.txt</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (150592 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2013-05-23 17:49:45 UTC (rev 150592)
+++ trunk/LayoutTests/ChangeLog        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -1,3 +1,43 @@
</span><ins>+2013-05-23  Ryosuke Niwa  &lt;rniwa@webkit.org&gt;
+
+        Several editing tests that copy &amp; paste slow down Mac WK2 EWS
+        https://bugs.webkit.org/show_bug.cgi?id=116681
+
+        Reviewed by Anders Carlsson.
+
+        Move editing tests that trigger copy and paste from execCommand into pasteboard.
+        Since NWRT uses a single instance of WebKitTestRunner to run tests in single directory,
+        this should mitigate the issue for now.
+
+        In the long term, we should really mock out the clipboard in WebKitTestRunner.
+
+        * editing/execCommand/4128080-2-expected.txt: Removed.
+        * editing/execCommand/4128080-2.html: Removed.
+        * editing/execCommand/5939887-expected.txt: Removed.
+        * editing/execCommand/5939887.html: Removed.
+        * editing/execCommand/copy-without-selection-expected.txt: Removed.
+        * editing/execCommand/copy-without-selection.html: Removed.
+        * editing/execCommand/paste-2.html: Removed.
+        * editing/pasteboard/copy-cut-paste-events-fired-when-disabled-expected.txt: Copied from LayoutTests/editing/execCommand/5939887-expected.txt.
+        * editing/pasteboard/copy-cut-paste-events-fired-when-disabled.html: Copied from LayoutTests/editing/execCommand/5939887.html.
+        * editing/pasteboard/copy-inside-h1-preserves-h1-expected.txt: Copied from LayoutTests/editing/execCommand/4128080-2-expected.txt.
+        * editing/pasteboard/copy-inside-h1-preserves-h1.html: Copied from LayoutTests/editing/execCommand/4128080-2.html.
+        * editing/pasteboard/copy-without-selection-expected.txt: Copied from LayoutTests/editing/execCommand/copy-without-selection-expected.txt.
+        * editing/pasteboard/copy-without-selection.html: Copied from LayoutTests/editing/execCommand/copy-without-selection.html.
+        * editing/pasteboard/paste-2.html: Copied from LayoutTests/editing/execCommand/paste-2.html.
+        * platform/gtk/editing/execCommand/paste-2-expected.png: Removed.
+        * platform/gtk/editing/execCommand/paste-2-expected.txt: Removed.
+        * platform/gtk/editing/pasteboard/paste-2-expected.png: Copied from LayoutTests/platform/gtk/editing/execCommand/paste-2-expected.png.
+        * platform/gtk/editing/pasteboard/paste-2-expected.txt: Copied from LayoutTests/platform/gtk/editing/execCommand/paste-2-expected.txt.
+        * platform/mac/editing/execCommand/paste-2-expected.png: Removed.
+        * platform/mac/editing/execCommand/paste-2-expected.txt: Removed.
+        * platform/mac/editing/pasteboard/paste-2-expected.png: Copied from LayoutTests/platform/mac/editing/execCommand/paste-2-expected.png.
+        * platform/mac/editing/pasteboard/paste-2-expected.txt: Copied from LayoutTests/platform/mac/editing/execCommand/paste-2-expected.txt.
+        * platform/qt/editing/execCommand/paste-2-expected.png: Removed.
+        * platform/qt/editing/execCommand/paste-2-expected.txt: Removed.
+        * platform/qt/editing/pasteboard/paste-2-expected.png: Copied from LayoutTests/platform/qt/editing/execCommand/paste-2-expected.png.
+        * platform/qt/editing/pasteboard/paste-2-expected.txt: Copied from LayoutTests/platform/qt/editing/execCommand/paste-2-expected.txt.
+
</ins><span class="cx"> 2013-05-23  Christophe Dumez  &lt;ch.dumez@sisa.samsung.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed, rolling out r150586.
</span></span></pre></div>
<a id="trunkLayoutTestseditingexecCommand41280802expectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/editing/execCommand/4128080-2-expected.txt (150592 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/execCommand/4128080-2-expected.txt        2013-05-23 17:49:45 UTC (rev 150592)
+++ trunk/LayoutTests/editing/execCommand/4128080-2-expected.txt        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-Success
</del></span></pre></div>
<a id="trunkLayoutTestseditingexecCommand41280802html"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/editing/execCommand/4128080-2.html (150592 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/execCommand/4128080-2.html        2013-05-23 17:49:45 UTC (rev 150592)
+++ trunk/LayoutTests/editing/execCommand/4128080-2.html        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -1,27 +0,0 @@
</span><del>-&lt;div id=&quot;description&quot;&gt;This tests to make sure that copying and pasting a paragraph or less of content inside a header preserves the header element. To run it manually, Paste, then inspect the pasted content and verify that it's in an H1 element.&lt;/div&gt;
-&lt;div id=&quot;copy&quot;&gt;&lt;h1&gt;foo&lt;/h1&gt;&lt;/div&gt;
-&lt;div id=&quot;paste&quot; contentEditable=&quot;true&quot;&gt;&lt;/div&gt;
-
-&lt;script&gt;
-
-if (window.testRunner)
-    window.testRunner.dumpAsText();
-
-// Test 2: Verify that a header at the end of inserted content is preserved.
-copy = document.getElementById(&quot;copy&quot;);
-window.getSelection().setBaseAndExtent(copy, 0, copy, copy.childNodes.length);
-document.execCommand(&quot;Copy&quot;);
-
-paste = document.getElementById(&quot;paste&quot;);
-window.getSelection().setPosition(paste, 0);
-document.execCommand(&quot;Paste&quot;);
-
-expected = &quot;&lt;h1&gt;foo&lt;/h1&gt;&quot;;
-actual = paste.innerHTML;
-
-if (window.testRunner &amp;&amp; actual == expected)
-    document.body.innerText = &quot;Success&quot;;
-else
-    document.body.innerText = &quot;Failure.  Found: &quot; + actual + &quot;, but expected: &quot; + expected;
-
-&lt;/script&gt;
</del></span></pre></div>
<a id="trunkLayoutTestseditingexecCommand5939887expectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/editing/execCommand/5939887-expected.txt (150592 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/execCommand/5939887-expected.txt        2013-05-23 17:49:45 UTC (rev 150592)
+++ trunk/LayoutTests/editing/execCommand/5939887-expected.txt        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -1,4 +0,0 @@
</span><del>-This tests to see if Copy, Cut, and Paste fire oncopy, oncut and onpaste even when those operations are disabled. Since they are disabled they can't be performed from the Edit menu, they need to be explicitly performed via execCommand or -[WebView copy:].
-oncopy fired
-oncut fired
-onpaste fired
</del></span></pre></div>
<a id="trunkLayoutTestseditingexecCommand5939887html"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/editing/execCommand/5939887.html (150592 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/execCommand/5939887.html        2013-05-23 17:49:45 UTC (rev 150592)
+++ trunk/LayoutTests/editing/execCommand/5939887.html        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -1,18 +0,0 @@
</span><del>-&lt;body oncopy=&quot;log('oncopy fired'); return false;&quot; oncut=&quot;log('oncut fired'); return false&quot; onpaste=&quot;log('onpaste fired'); return false&quot;&gt;
-This tests to see if Copy, Cut, and Paste fire oncopy, oncut and onpaste even when those operations are disabled.   Since they are disabled they can't be performed from the Edit menu, they need to be explicitly performed via execCommand or -[WebView copy:].
-&lt;ul id=&quot;console&quot;&gt;&lt;/ul&gt;
-&lt;script&gt;
-function log(msg) {
-    console = document.getElementById(&quot;console&quot;);
-    li = document.createElement(&quot;li&quot;);
-    text = document.createTextNode(msg);
-    console.appendChild(li);
-    li.appendChild(text);
-}
-if (window.testRunner)
-    window.testRunner.dumpAsText();
-document.execCommand(&quot;Copy&quot;);
-document.execCommand(&quot;Cut&quot;);
-document.execCommand(&quot;Paste&quot;);
-&lt;/script&gt;
-&lt;/body&gt;
</del></span></pre></div>
<a id="trunkLayoutTestseditingexecCommandcopywithoutselectionexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/editing/execCommand/copy-without-selection-expected.txt (150592 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/execCommand/copy-without-selection-expected.txt        2013-05-23 17:49:45 UTC (rev 150592)
+++ trunk/LayoutTests/editing/execCommand/copy-without-selection-expected.txt        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-SUCCESS
</del></span></pre></div>
<a id="trunkLayoutTestseditingexecCommandcopywithoutselectionhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/editing/execCommand/copy-without-selection.html (150592 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/execCommand/copy-without-selection.html        2013-05-23 17:49:45 UTC (rev 150592)
+++ trunk/LayoutTests/editing/execCommand/copy-without-selection.html        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -1,35 +0,0 @@
</span><del>-&lt;html&gt;
-&lt;script src=&quot;../editing.js&quot;&gt;&lt;/script&gt;
-&lt;script&gt;
-
-function mycopy(event)
-{
-    event.clipboardData.setData('text/plain', &quot;SUCCESS&quot;);
-    event.preventDefault();
-}
-
-function mypaste(event)
-{
-    var clip = event.clipboardData.getData('text/plain');
-    document.getElementById('result').innerHTML = clip;
-    event.preventDefault();
-}
-
-function test()
-{
-    execCopyCommand();
-    var e = document.getElementById('result');
-    setSelectionCommand(e, 0, e, 0);
-    execPasteCommand();
-    
-    if (window.testRunner)
-        testRunner.dumpAsText();
-}
-
-&lt;/script&gt;
-&lt;body onload='test()' onbeforecopy='event.preventDefault()' oncopy='mycopy(event)' onbeforepaste='event.preventDefault()' onpaste='mypaste(event)'&gt;
-
-&lt;div id='result' contenteditable='true'&gt;FAILURE&lt;/div&gt;
-
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestseditingexecCommandpaste2html"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/editing/execCommand/paste-2.html (150592 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/execCommand/paste-2.html        2013-05-23 17:49:45 UTC (rev 150592)
+++ trunk/LayoutTests/editing/execCommand/paste-2.html        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -1,24 +0,0 @@
</span><del>-&lt;script&gt;
-if (window.testRunner)
-     testRunner.dumpEditingCallbacks();
-
-function runTest() {
-    var frame = frames[0];
-    var sel = frame.getSelection();
-    var doc = frame.document;
-    
-    sel.setPosition(doc.body, 0);
-    doc.execCommand(&quot;InsertText&quot;, false, &quot;foo bar baz&quot;);
-    sel.modify(&quot;extend&quot;, &quot;backward&quot;, &quot;word&quot;);
-    doc.execCommand(&quot;Copy&quot;);
-    doc.execCommand(&quot;Delete&quot;);
-    doc.execCommand(&quot;Paste&quot;);
-    if (window.testRunner)
-        window.testRunner.notifyDone();
-}
-
-if (window.testRunner)
-    window.testRunner.waitUntilDone();
-&lt;/script&gt;
-&lt;p&gt;This tests copy/delete/paste inside an editable iframe.  You should see 'foo bar baz' below.&lt;/p&gt;
-&lt;iframe src=&quot;../resources/contenteditable-iframe-src.html&quot; onload=&quot;runTest();&quot;&gt;&lt;/iframe&gt;
</del></span></pre></div>
<a id="trunkLayoutTestseditingpasteboardcopycutpasteeventsfiredwhendisabledexpectedtxtfromrev150560trunkLayoutTestseditingexecCommand5939887expectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/editing/pasteboard/copy-cut-paste-events-fired-when-disabled-expected.txt (from rev 150560, trunk/LayoutTests/editing/execCommand/5939887-expected.txt) (0 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/pasteboard/copy-cut-paste-events-fired-when-disabled-expected.txt                                (rev 0)
+++ trunk/LayoutTests/editing/pasteboard/copy-cut-paste-events-fired-when-disabled-expected.txt        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+This tests to see if Copy, Cut, and Paste fire oncopy, oncut and onpaste even when those operations are disabled. Since they are disabled they can't be performed from the Edit menu, they need to be explicitly performed via execCommand or -[WebView copy:].
+oncopy fired
+oncut fired
+onpaste fired
</ins></span></pre></div>
<a id="trunkLayoutTestseditingpasteboardcopycutpasteeventsfiredwhendisabledhtmlfromrev150560trunkLayoutTestseditingexecCommand5939887html"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/editing/pasteboard/copy-cut-paste-events-fired-when-disabled.html (from rev 150560, trunk/LayoutTests/editing/execCommand/5939887.html) (0 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/pasteboard/copy-cut-paste-events-fired-when-disabled.html                                (rev 0)
+++ trunk/LayoutTests/editing/pasteboard/copy-cut-paste-events-fired-when-disabled.html        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+&lt;body oncopy=&quot;log('oncopy fired'); return false;&quot; oncut=&quot;log('oncut fired'); return false&quot; onpaste=&quot;log('onpaste fired'); return false&quot;&gt;
+This tests to see if Copy, Cut, and Paste fire oncopy, oncut and onpaste even when those operations are disabled.   Since they are disabled they can't be performed from the Edit menu, they need to be explicitly performed via execCommand or -[WebView copy:].
+&lt;ul id=&quot;console&quot;&gt;&lt;/ul&gt;
+&lt;script&gt;
+function log(msg) {
+    console = document.getElementById(&quot;console&quot;);
+    li = document.createElement(&quot;li&quot;);
+    text = document.createTextNode(msg);
+    console.appendChild(li);
+    li.appendChild(text);
+}
+if (window.testRunner)
+    window.testRunner.dumpAsText();
+document.execCommand(&quot;Copy&quot;);
+document.execCommand(&quot;Cut&quot;);
+document.execCommand(&quot;Paste&quot;);
+&lt;/script&gt;
+&lt;/body&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestseditingpasteboardcopyinsideh1preservesh1expectedtxtfromrev150560trunkLayoutTestseditingexecCommand41280802expectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/editing/pasteboard/copy-inside-h1-preserves-h1-expected.txt (from rev 150560, trunk/LayoutTests/editing/execCommand/4128080-2-expected.txt) (0 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/pasteboard/copy-inside-h1-preserves-h1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/editing/pasteboard/copy-inside-h1-preserves-h1-expected.txt        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+Success
</ins></span></pre></div>
<a id="trunkLayoutTestseditingpasteboardcopyinsideh1preservesh1htmlfromrev150560trunkLayoutTestseditingexecCommand41280802html"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/editing/pasteboard/copy-inside-h1-preserves-h1.html (from rev 150560, trunk/LayoutTests/editing/execCommand/4128080-2.html) (0 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/pasteboard/copy-inside-h1-preserves-h1.html                                (rev 0)
+++ trunk/LayoutTests/editing/pasteboard/copy-inside-h1-preserves-h1.html        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+&lt;div id=&quot;description&quot;&gt;This tests to make sure that copying and pasting a paragraph or less of content inside a header preserves the header element. To run it manually, Paste, then inspect the pasted content and verify that it's in an H1 element.&lt;/div&gt;
+&lt;div id=&quot;copy&quot;&gt;&lt;h1&gt;foo&lt;/h1&gt;&lt;/div&gt;
+&lt;div id=&quot;paste&quot; contentEditable=&quot;true&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+if (window.testRunner)
+    window.testRunner.dumpAsText();
+
+// Test 2: Verify that a header at the end of inserted content is preserved.
+copy = document.getElementById(&quot;copy&quot;);
+window.getSelection().setBaseAndExtent(copy, 0, copy, copy.childNodes.length);
+document.execCommand(&quot;Copy&quot;);
+
+paste = document.getElementById(&quot;paste&quot;);
+window.getSelection().setPosition(paste, 0);
+document.execCommand(&quot;Paste&quot;);
+
+expected = &quot;&lt;h1&gt;foo&lt;/h1&gt;&quot;;
+actual = paste.innerHTML;
+
+if (window.testRunner &amp;&amp; actual == expected)
+    document.body.innerText = &quot;Success&quot;;
+else
+    document.body.innerText = &quot;Failure.  Found: &quot; + actual + &quot;, but expected: &quot; + expected;
+
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestseditingpasteboardcopywithoutselectionexpectedtxtfromrev150560trunkLayoutTestseditingexecCommandcopywithoutselectionexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/editing/pasteboard/copy-without-selection-expected.txt (from rev 150560, trunk/LayoutTests/editing/execCommand/copy-without-selection-expected.txt) (0 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/pasteboard/copy-without-selection-expected.txt                                (rev 0)
+++ trunk/LayoutTests/editing/pasteboard/copy-without-selection-expected.txt        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+SUCCESS
</ins></span></pre></div>
<a id="trunkLayoutTestseditingpasteboardcopywithoutselectionhtmlfromrev150560trunkLayoutTestseditingexecCommandcopywithoutselectionhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/editing/pasteboard/copy-without-selection.html (from rev 150560, trunk/LayoutTests/editing/execCommand/copy-without-selection.html) (0 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/pasteboard/copy-without-selection.html                                (rev 0)
+++ trunk/LayoutTests/editing/pasteboard/copy-without-selection.html        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+&lt;html&gt;
+&lt;script src=&quot;../editing.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+
+function mycopy(event)
+{
+    event.clipboardData.setData('text/plain', &quot;SUCCESS&quot;);
+    event.preventDefault();
+}
+
+function mypaste(event)
+{
+    var clip = event.clipboardData.getData('text/plain');
+    document.getElementById('result').innerHTML = clip;
+    event.preventDefault();
+}
+
+function test()
+{
+    execCopyCommand();
+    var e = document.getElementById('result');
+    setSelectionCommand(e, 0, e, 0);
+    execPasteCommand();
+    
+    if (window.testRunner)
+        testRunner.dumpAsText();
+}
+
+&lt;/script&gt;
+&lt;body onload='test()' onbeforecopy='event.preventDefault()' oncopy='mycopy(event)' onbeforepaste='event.preventDefault()' onpaste='mypaste(event)'&gt;
+
+&lt;div id='result' contenteditable='true'&gt;FAILURE&lt;/div&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestseditingpasteboardpaste2htmlfromrev150560trunkLayoutTestseditingexecCommandpaste2html"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/editing/pasteboard/paste-2.html (from rev 150560, trunk/LayoutTests/editing/execCommand/paste-2.html) (0 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/pasteboard/paste-2.html                                (rev 0)
+++ trunk/LayoutTests/editing/pasteboard/paste-2.html        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+&lt;script&gt;
+if (window.testRunner)
+     testRunner.dumpEditingCallbacks();
+
+function runTest() {
+    var frame = frames[0];
+    var sel = frame.getSelection();
+    var doc = frame.document;
+    
+    sel.setPosition(doc.body, 0);
+    doc.execCommand(&quot;InsertText&quot;, false, &quot;foo bar baz&quot;);
+    sel.modify(&quot;extend&quot;, &quot;backward&quot;, &quot;word&quot;);
+    doc.execCommand(&quot;Copy&quot;);
+    doc.execCommand(&quot;Delete&quot;);
+    doc.execCommand(&quot;Paste&quot;);
+    if (window.testRunner)
+        window.testRunner.notifyDone();
+}
+
+if (window.testRunner)
+    window.testRunner.waitUntilDone();
+&lt;/script&gt;
+&lt;p&gt;This tests copy/delete/paste inside an editable iframe.  You should see 'foo bar baz' below.&lt;/p&gt;
+&lt;iframe src=&quot;../resources/contenteditable-iframe-src.html&quot; onload=&quot;runTest();&quot;&gt;&lt;/iframe&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformgtkeditingexecCommandpaste2expectedpng"></a>
<div class="binary"><h4>Deleted: trunk/LayoutTests/platform/gtk/editing/execCommand/paste-2-expected.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformgtkeditingexecCommandpaste2expectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/gtk/editing/execCommand/paste-2-expected.txt (150592 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/gtk/editing/execCommand/paste-2-expected.txt        2013-05-23 17:49:45 UTC (rev 150592)
+++ trunk/LayoutTests/platform/gtk/editing/execCommand/paste-2-expected.txt        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -1,34 +0,0 @@
</span><del>-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldDeleteDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderBlock {HTML} at (0,0) size 800x600
-    RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock {P} at (0,0) size 784x17
-        RenderText {#text} at (0,0) size 562x17
-          text run at (0,0) width 336: &quot;This tests copy/delete/paste inside an editable iframe. &quot;
-          text run at (336,0) width 226: &quot;You should see 'foo bar baz' below.&quot;
-      RenderBlock (anonymous) at (0,33) size 784x154
-        RenderPartObject {IFRAME} at (0,0) size 304x154 [border: (2px inset #000000)]
-          layer at (0,0) size 300x150
-            RenderView at (0,0) size 300x150
-          layer at (0,0) size 300x150
-            RenderBlock {HTML} at (0,0) size 300x150
-              RenderBody {BODY} at (8,8) size 284x134 [bgcolor=#FFFFE0]
-                RenderText {#text} at (0,0) size 71x17
-                  text run at (0,0) width 71: &quot;foo bar baz&quot;
-        RenderText {#text} at (0,0) size 0x0
</del></span></pre></div>
<a id="trunkLayoutTestsplatformgtkeditingpasteboardpaste2expectedpngfromrev150560trunkLayoutTestsplatformgtkeditingexecCommandpaste2expectedpng"></a>
<div class="binary"><h4>Copied: trunk/LayoutTests/platform/gtk/editing/pasteboard/paste-2-expected.png (from rev 150560, trunk/LayoutTests/platform/gtk/editing/execCommand/paste-2-expected.png)</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformgtkeditingpasteboardpaste2expectedtxtfromrev150560trunkLayoutTestsplatformgtkeditingexecCommandpaste2expectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/gtk/editing/pasteboard/paste-2-expected.txt (from rev 150560, trunk/LayoutTests/platform/gtk/editing/execCommand/paste-2-expected.txt) (0 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/gtk/editing/pasteboard/paste-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/gtk/editing/pasteboard/paste-2-expected.txt        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x17
+        RenderText {#text} at (0,0) size 562x17
+          text run at (0,0) width 336: &quot;This tests copy/delete/paste inside an editable iframe. &quot;
+          text run at (336,0) width 226: &quot;You should see 'foo bar baz' below.&quot;
+      RenderBlock (anonymous) at (0,33) size 784x154
+        RenderPartObject {IFRAME} at (0,0) size 304x154 [border: (2px inset #000000)]
+          layer at (0,0) size 300x150
+            RenderView at (0,0) size 300x150
+          layer at (0,0) size 300x150
+            RenderBlock {HTML} at (0,0) size 300x150
+              RenderBody {BODY} at (8,8) size 284x134 [bgcolor=#FFFFE0]
+                RenderText {#text} at (0,0) size 71x17
+                  text run at (0,0) width 71: &quot;foo bar baz&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingexecCommandpaste2expectedpng"></a>
<div class="binary"><h4>Deleted: trunk/LayoutTests/platform/mac/editing/execCommand/paste-2-expected.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingexecCommandpaste2expectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/mac/editing/execCommand/paste-2-expected.txt (150592 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/execCommand/paste-2-expected.txt        2013-05-23 17:49:45 UTC (rev 150592)
+++ trunk/LayoutTests/platform/mac/editing/execCommand/paste-2-expected.txt        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -1,34 +0,0 @@
</span><del>-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldDeleteDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderBlock {HTML} at (0,0) size 800x600
-    RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock {P} at (0,0) size 784x18
-        RenderText {#text} at (0,0) size 562x18
-          text run at (0,0) width 336: &quot;This tests copy/delete/paste inside an editable iframe. &quot;
-          text run at (336,0) width 226: &quot;You should see 'foo bar baz' below.&quot;
-      RenderBlock (anonymous) at (0,34) size 784x154
-        RenderPartObject {IFRAME} at (0,0) size 304x154 [border: (2px inset #000000)]
-          layer at (0,0) size 300x150
-            RenderView at (0,0) size 300x150
-          layer at (0,0) size 300x150
-            RenderBlock {HTML} at (0,0) size 300x150
-              RenderBody {BODY} at (8,8) size 284x134 [bgcolor=#FFFFE0]
-                RenderText {#text} at (0,0) size 71x18
-                  text run at (0,0) width 71: &quot;foo bar baz&quot;
-        RenderText {#text} at (0,0) size 0x0
</del></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingpasteboardpaste2expectedpngfromrev150560trunkLayoutTestsplatformmaceditingexecCommandpaste2expectedpng"></a>
<div class="binary"><h4>Copied: trunk/LayoutTests/platform/mac/editing/pasteboard/paste-2-expected.png (from rev 150560, trunk/LayoutTests/platform/mac/editing/execCommand/paste-2-expected.png)</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaceditingpasteboardpaste2expectedtxtfromrev150560trunkLayoutTestsplatformmaceditingexecCommandpaste2expectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/mac/editing/pasteboard/paste-2-expected.txt (from rev 150560, trunk/LayoutTests/platform/mac/editing/execCommand/paste-2-expected.txt) (0 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/editing/pasteboard/paste-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/mac/editing/pasteboard/paste-2-expected.txt        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 562x18
+          text run at (0,0) width 336: &quot;This tests copy/delete/paste inside an editable iframe. &quot;
+          text run at (336,0) width 226: &quot;You should see 'foo bar baz' below.&quot;
+      RenderBlock (anonymous) at (0,34) size 784x154
+        RenderPartObject {IFRAME} at (0,0) size 304x154 [border: (2px inset #000000)]
+          layer at (0,0) size 300x150
+            RenderView at (0,0) size 300x150
+          layer at (0,0) size 300x150
+            RenderBlock {HTML} at (0,0) size 300x150
+              RenderBody {BODY} at (8,8) size 284x134 [bgcolor=#FFFFE0]
+                RenderText {#text} at (0,0) size 71x18
+                  text run at (0,0) width 71: &quot;foo bar baz&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformqteditingexecCommandpaste2expectedpng"></a>
<div class="binary"><h4>Deleted: trunk/LayoutTests/platform/qt/editing/execCommand/paste-2-expected.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformqteditingexecCommandpaste2expectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/qt/editing/execCommand/paste-2-expected.txt (150592 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/qt/editing/execCommand/paste-2-expected.txt        2013-05-23 17:49:45 UTC (rev 150592)
+++ trunk/LayoutTests/platform/qt/editing/execCommand/paste-2-expected.txt        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -1,34 +0,0 @@
</span><del>-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldDeleteDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
-EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderBlock {HTML} at (0,0) size 800x600
-    RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock {P} at (0,0) size 784x19
-        RenderText {#text} at (0,0) size 539x19
-          text run at (0,0) width 322: &quot;This tests copy/delete/paste inside an editable iframe. &quot;
-          text run at (322,0) width 217: &quot;You should see 'foo bar baz' below.&quot;
-      RenderBlock (anonymous) at (0,35) size 784x154
-        RenderPartObject {IFRAME} at (0,0) size 304x154 [border: (2px inset #000000)]
-          layer at (0,0) size 300x150
-            RenderView at (0,0) size 300x150
-          layer at (0,0) size 300x150
-            RenderBlock {HTML} at (0,0) size 300x150
-              RenderBody {BODY} at (8,8) size 284x134 [bgcolor=#FFFFE0]
-                RenderText {#text} at (0,0) size 69x19
-                  text run at (0,0) width 69: &quot;foo bar baz&quot;
-        RenderText {#text} at (0,0) size 0x0
</del></span></pre></div>
<a id="trunkLayoutTestsplatformqteditingpasteboardpaste2expectedpngfromrev150560trunkLayoutTestsplatformqteditingexecCommandpaste2expectedpng"></a>
<div class="binary"><h4>Copied: trunk/LayoutTests/platform/qt/editing/pasteboard/paste-2-expected.png (from rev 150560, trunk/LayoutTests/platform/qt/editing/execCommand/paste-2-expected.png)</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformqteditingpasteboardpaste2expectedtxtfromrev150560trunkLayoutTestsplatformqteditingexecCommandpaste2expectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/qt/editing/pasteboard/paste-2-expected.txt (from rev 150560, trunk/LayoutTests/platform/qt/editing/execCommand/paste-2-expected.txt) (0 => 150593)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/qt/editing/pasteboard/paste-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/qt/editing/pasteboard/paste-2-expected.txt        2013-05-23 17:50:03 UTC (rev 150593)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY &gt; HTML &gt; #document to 0 of BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldDeleteDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text &gt; BODY &gt; HTML &gt; #document to 7 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text &gt; BODY &gt; HTML &gt; #document to 8 of #text &gt; BODY &gt; HTML &gt; #document toDOMRange:range from 11 of #text &gt; BODY &gt; HTML &gt; #document to 11 of #text &gt; BODY &gt; HTML &gt; #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x19
+        RenderText {#text} at (0,0) size 539x19
+          text run at (0,0) width 322: &quot;This tests copy/delete/paste inside an editable iframe. &quot;
+          text run at (322,0) width 217: &quot;You should see 'foo bar baz' below.&quot;
+      RenderBlock (anonymous) at (0,35) size 784x154
+        RenderPartObject {IFRAME} at (0,0) size 304x154 [border: (2px inset #000000)]
+          layer at (0,0) size 300x150
+            RenderView at (0,0) size 300x150
+          layer at (0,0) size 300x150
+            RenderBlock {HTML} at (0,0) size 300x150
+              RenderBody {BODY} at (8,8) size 284x134 [bgcolor=#FFFFE0]
+                RenderText {#text} at (0,0) size 69x19
+                  text run at (0,0) width 69: &quot;foo bar baz&quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre>
</div>
</div>

</body>
</html>