Fix tests after r183770 on non-Mac ports. These tests are expecting Mac editing behavior.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 May 2015 04:39:57 +0000 (04:39 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 May 2015 04:39:57 +0000 (04:39 +0000)
* editing/execCommand/strikethroughSelection.html:
* editing/execCommand/toggle-mixed-text-decorations.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183848 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/editing/execCommand/strikethroughSelection.html
LayoutTests/editing/execCommand/toggle-mixed-text-decorations.html

index 9be8eb4bd42b7c17ce16d869ae10cf509f47db22..0ef3f16d91cc02078da3fb01a97e335eb14ba39f 100644 (file)
@@ -1,3 +1,10 @@
+2015-05-05  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Fix tests after r183770 on non-Mac ports. These tests are expecting Mac editing behavior.
+
+        * editing/execCommand/strikethroughSelection.html:
+        * editing/execCommand/toggle-mixed-text-decorations.html:
+
 2015-05-05  Roger Fong  <roger_fong@apple.com>
 
         Unreviewed. Some assertion failures in compositing code after r183820.
index e791bf2dbb90fa98ffee15a26beca692cddbdc8e..09b8bf2ca93e4e9beb1df5ba4f47fd4399ce20d1 100644 (file)
 <script>
 
 function editingTest() {
+    if (window.internals)
+        internals.settings.setEditingBehavior('mac');
 
     for (i = 0; i < 21; i++) {
-            execExtendSelectionForwardByCharacterCommand();
-            execStrikethroughCommand();
-            
+        execExtendSelectionForwardByCharacterCommand();
+        execStrikethroughCommand();
     }
  }
 
index 678742434660f5ad5410a743c71f11cbb4ef8c5f..9ff7a213b1fd7565a7c2c324f9416660d1133430 100644 (file)
@@ -8,6 +8,9 @@
 
 description("Test to make sure we can toggle underline and strike through separately.")
 
+if (window.internals)
+    internals.settings.setEditingBehavior('mac');
+
 var testContainer = document.createElement("div");
 testContainer.contentEditable = true;
 document.body.appendChild(testContainer);