From 70bc3557b47ddb5e4afd6e07b39ca5e1b3b59b2a Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Fri, 19 Nov 2010 00:38:34 -0300 Subject: [PATCH] Simplify. --- .../CPKeyValueBindingSimpleBindingsTest.j | 21 ++++++------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/Tests/AppKit/CPKeyValueBindingSimpleBindingsTest.j b/Tests/AppKit/CPKeyValueBindingSimpleBindingsTest.j index 142ee2512..5c0286b1e 100644 --- a/Tests/AppKit/CPKeyValueBindingSimpleBindingsTest.j +++ b/Tests/AppKit/CPKeyValueBindingSimpleBindingsTest.j @@ -51,12 +51,12 @@ // Test the interaction. [textField setStringValue:@"0.7"]; // Simulate user interaction to fire action. - [textField simulateAction]; + [textField performClick:self]; [self verifyVolume:0.7 method:"actions"]; [slider setFloatValue:9.0]; - [slider simulateAction]; + [slider performClick:self]; [self verifyVolume:9 method:"actions"]; @@ -84,12 +84,12 @@ // Test the interaction. [textField setStringValue:@"0.7"]; // Simulate user interaction. By default bindings update on action only. - [textField simulateAction]; + [textField performClick:self]; [self verifyVolume:0.7 method:"bindings"]; [slider setFloatValue:9.0]; - [slider simulateAction]; + [slider performClick:self]; [self verifyVolume:9 method:"bindings"]; @@ -110,12 +110,12 @@ // Test the interaction. [textField setStringValue:@"0.7"]; // Simulate user interaction. By default bindings update on action only. - [textField simulateAction]; + [textField performClick:self]; [self verifyVolume:0.7 method:"bindings"]; [slider setFloatValue:9.0]; - [slider simulateAction]; + [slider performClick:self]; [self verifyVolume:9 method:"bindings"]; @@ -187,12 +187,3 @@ } @end - -@implementation CPControl (Simulation) - -- (void)simulateAction -{ - [self sendAction:[self action] to:[self target]]; -} - -@end \ No newline at end of file