[iOS] Layout tests editing/pasteboard/smart-paste-007.html and editing/pasteboard/smart-paste-008.html are failing
https://bugs.webkit.org/show_bug.cgi?id=194275

Reviewed by Ryosuke Niwa.

Smart paste tests 7 and 8 were outputting more information that was needed
to verify correct functionality. Also cleaned up test 8 to be more similar to
the other smart copy paste tests.

* editing/pasteboard/smart-paste-007.html:
* editing/pasteboard/smart-paste-008.html:
* platform/ios-wk1/editing/pasteboard/smart-paste-007-expected.txt: Removed.
* platform/ios-wk1/editing/pasteboard/smart-paste-008-expected.txt: Removed.
* platform/ios-wk2/editing/pasteboard/smart-paste-008-expected.txt: Removed.
* platform/ios/editing/pasteboard/smart-paste-007-expected.txt: Renamed from LayoutTests/platform/ios-wk2/editing/pasteboard/smart-paste-007-expected.txt.
* platform/ios/editing/pasteboard/smart-paste-008-expected.txt: Added.
* platform/mac/editing/pasteboard/smart-paste-007-expected.txt:
* platform/mac/editing/pasteboard/smart-paste-008-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@241010 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/editing/pasteboard/smart-paste-007.html b/LayoutTests/editing/pasteboard/smart-paste-007.html
index ab8837d..12155ca 100644
--- a/LayoutTests/editing/pasteboard/smart-paste-007.html
+++ b/LayoutTests/editing/pasteboard/smart-paste-007.html
@@ -57,7 +57,7 @@
 </div>
 
 <script>
-runEditingTest();
+runDumpAsTextEditingTest(true);
 </script>
 
 </body>
diff --git a/LayoutTests/editing/pasteboard/smart-paste-008.html b/LayoutTests/editing/pasteboard/smart-paste-008.html
index 312902e..779bf97 100644
--- a/LayoutTests/editing/pasteboard/smart-paste-008.html
+++ b/LayoutTests/editing/pasteboard/smart-paste-008.html
@@ -1,18 +1,27 @@
-<script>
-if (window.testRunner)
-     testRunner.dumpEditingCallbacks();
-</script>
-<p>There was a bug in paste's smart replace whitespace handling.  In some cases, it used information gathered at the start of the selection being pasted into to decide whether or not a space needed to be added to the end of the incoming content.</p>
-<p>A smart paste is performed into a selection starting in one block and ending in another.  Spaces should surround the pasted word.</p>
-<div id="test" contenteditable="true"><div>foo</div><div>x bar</div></div>
+<html> 
+<head>
+
+<style>
+.editing { 
+    border: 2px solid red; 
+    font-size: 24px; 
+}
+.explanation { 
+    border: 2px solid blue; 
+    padding: 12px; 
+    font-size: 24px; 
+    margin-bottom: 24px;
+}
+.scenario { margin-bottom: 16px;}
+.scenario:first-line { font-weight: bold; margin-bottom: 16px;}
+.expected-results:first-line { font-weight: bold }
+</style>
 
 <script src="../editing.js"></script>
 <script src="../../resources/ui-helper.js"></script>
 <script>
-var e = document.getElementById("test");
 
-async function runTest() {
-    getSelection().setBaseAndExtent(e, 0, e, 0);
+async function editingTest() {
     await UIHelper.selectWordByDoubleTapOrClick(document.getElementById('test'));
     copyCommand();
     moveSelectionBackwardByCharacterCommand();
@@ -20,6 +29,20 @@
     extendSelectionForwardByLineCommand();
     pasteCommand();
 }
+</script>
 
-UIHelper.wait(runTest());
+<div class="explanation">
+<div class="scenario">
+<p>There was a bug in paste's smart replace whitespace handling.  In some cases, it used information gathered at the start of the selection being pasted into to decide whether or not a space needed to be added to the end of the incoming content.</p>
+<div class="expected-results">
+Expected Results:
+<br>
+A smart paste is performed into a selection starting in one block and ending in another.  Spaces should surround the pasted word and look like:
+<br>
+f foo bar
+</div>
+<div id="test" contenteditable="true"><div>foo</div><div>x bar</div></div>
+
+<script>
+runDumpAsTextEditingTest(true);
 </script>