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 9be8eb4..0ef3f16 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 e791bf2..09b8bf2 100644 (file)
 <script>
 
 function editingTest() {
+    if (window.internals)
+        internals.settings.setEditingBehavior('mac');
 
     for (i = 0; i < 21; i++) {
-            execExtendSelectionForwardByCharacterCommand();
-            execStrikethroughCommand();
-            
+        execExtendSelectionForwardByCharacterCommand();
+        execStrikethroughCommand();
     }
  }
 
index 6787424..9ff7a21 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);