LayoutTests:
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Sep 2006 20:25:15 +0000 (20:25 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Sep 2006 20:25:15 +0000 (20:25 +0000)
        Reviewed by Justin.

        Call clearKillRing() so we are guaranteed to start with empty kill ring.

        * editing/pasteboard/emacs-cntl-y-001.html:

WebKitTools:

        Reviewed by Justin.

        Add clearKillRing so we can test emacs support with empty kill ring.

        * DumpRenderTree/EventSendingController.m:
        (+[EventSendingController isSelectorExcludedFromWebScript:]):
        (+[EventSendingController webScriptNameForSelector:]):
        (-[EventSendingController clearKillRing]):

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

LayoutTests/ChangeLog
LayoutTests/editing/pasteboard/emacs-cntl-y-001.html
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/EventSendingController.m

index 49dc4f94c9017fffe5e4126fddc38e147af094aa..6f79b49697ab0a3744741207a5fb144d203282f7 100644 (file)
@@ -1,3 +1,11 @@
+2006-09-28  David Harrison  <harrison@apple.com>
+
+        Reviewed by Justin.
+
+        Call clearKillRing() so we are guaranteed to start with empty kill ring.
+
+        * editing/pasteboard/emacs-cntl-y-001.html:
+
 2006-09-27  Eric Seidel  <eric@eseidel.com>
 
         Reviewed by mitz.
index 19cb25ec769edbcf06799cf3dc428a885ec0e6de..69efaf2728b7f40bc7cf93eb4b9d383d519f7e1e 100644 (file)
 function editingTest() {
     moveSelectionForwardByWordCommand();
     moveSelectionForwardByWordCommand();
-    if (window.eventSender)
+    if (window.eventSender) {
+        eventSender.clearKillRing();
         eventSender.keyDown("y", ["ctrlKey"]);
+    }
 }
 
 </script>
index 38eb27816f2ee7492f8218e4c8911d15d7b65b06..b93eebce6ddc73265185555902b20238eca49cca 100644 (file)
@@ -1,3 +1,14 @@
+2006-09-28  David Harrison  <harrison@apple.com>
+
+        Reviewed by Justin.
+        
+        Add clearKillRing so we can test emacs support with empty kill ring.
+
+        * DumpRenderTree/EventSendingController.m:
+        (+[EventSendingController isSelectorExcludedFromWebScript:]):
+        (+[EventSendingController webScriptNameForSelector:]):
+        (-[EventSendingController clearKillRing]):
+
 2006-09-27  MorganL  <morganl.webkit@yahoo.com>
 
         Reviewed by Maciej, landed by Brady
index e667e4413f00aa9f29a44e06c60f99a01b879a25..315ac987d5d93e60e322a0c4fd980471765f49e4 100644 (file)
@@ -101,7 +101,8 @@ NSArray *webkitDomEventNames;
             || aSelector == @selector(leapForward:)
             || aSelector == @selector(keyDown:withModifiers:)
             || aSelector == @selector(enableDOMUIEventLogging:)
-            || aSelector == @selector(fireKeyboardEventsToElement:))
+            || aSelector == @selector(fireKeyboardEventsToElement:)
+            || aSelector == @selector(clearKillRing))
         return NO;
     return YES;
 }
@@ -118,6 +119,8 @@ NSArray *webkitDomEventNames;
         return @"enableDOMUIEventLogging";
     if (aSelector == @selector(fireKeyboardEventsToElement:))
         return @"fireKeyboardEventsToElement";
+    if (aSelector == @selector(clearKillRing))
+        return @"clearKillRing";
     return nil;
 }
 
@@ -131,6 +134,13 @@ NSArray *webkitDomEventNames;
     timeOffset += milliseconds / 1000.0;
 }
 
+- (void)clearKillRing
+{
+    extern void _NSNewKillRingSequence();
+    
+    _NSNewKillRingSequence();
+}
+
 - (void)mouseDown
 {
     [[[frame frameView] documentView] layout];