Commit a353c8cb authored by harrison's avatar harrison

LayoutTests:

        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: http://svn.webkit.org/repository/webkit/trunk@16620 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f64d1354
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.
......@@ -23,8 +23,10 @@
function editingTest() {
moveSelectionForwardByWordCommand();
moveSelectionForwardByWordCommand();
if (window.eventSender)
if (window.eventSender) {
eventSender.clearKillRing();
eventSender.keyDown("y", ["ctrlKey"]);
}
}
</script>
......
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
......
......@@ -101,7 +101,8 @@ + (BOOL)isSelectorExcludedFromWebScript:(SEL)aSelector
|| 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 @@ + (NSString *)webScriptNameForSelector:(SEL)aSelector
return @"enableDOMUIEventLogging";
if (aSelector == @selector(fireKeyboardEventsToElement:))
return @"fireKeyboardEventsToElement";
if (aSelector == @selector(clearKillRing))
return @"clearKillRing";
return nil;
}
......@@ -131,6 +134,13 @@ - (void)leapForward:(int)milliseconds
timeOffset += milliseconds / 1000.0;
}
- (void)clearKillRing
{
extern void _NSNewKillRingSequence();
_NSNewKillRingSequence();
}
- (void)mouseDown
{
[[[frame frameView] documentView] layout];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment