Changeset 66930 in webkit
- Timestamp:
- Sep 7, 2010, 4:34:11 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r66926 r66930 1 2010-09-07 Joseph Pecoraro <joepeck@webkit.org> 2 3 Reviewed by Darin Adler. 4 5 Provide a way to trigger a <select multiple> onchange event on changes 6 https://bugs.webkit.org/show_bug.cgi?id=45192 7 8 Testing the DOMHTMLSelectElement interface for selecting an 9 index in a <select> and triggering a "change" event. This also 10 tests for allowing multiple selections. 11 12 * platform/mac/fast/objc/dom-html-select-activate-expected.txt: Added. 13 * platform/mac/fast/objc/dom-html-select-activate.html: Added. 14 1 15 2010-09-07 Tony Chang <tony@chromium.org> 2 16 -
trunk/WebKitTools/ChangeLog
r66927 r66930 1 2010-09-07 Joseph Pecoraro <joepeck@webkit.org> 2 3 Reviewed by Darin Adler. 4 5 Provide a way to trigger a <select multiple> onchange event on changes 6 https://bugs.webkit.org/show_bug.cgi?id=45192 7 8 Adds a selector on ObjCController for testing 9 -[DOMHTMLSelectElement _activateItemAtIndex:allowMultipleSelection:] and 10 its different uses. 11 12 * DumpRenderTree/mac/ObjCController.m: 13 (+[ObjCController isSelectorExcludedFromWebScript:]): 14 (+[ObjCController webScriptNameForSelector:]): 15 (-[ObjCController setSelectElement:selectedIndex:allowingMultiple:]): 16 1 17 2010-09-07 James Robinson <jamesr@chromium.org> 2 18 -
trunk/WebKitTools/DumpRenderTree/mac/ObjCController.m
r63763 r66930 30 30 #import "ObjCController.h" 31 31 32 // Avoid compile error in DOMPrivate.h. 33 @class NSFont; 34 32 35 #import <JavaScriptCore/JavaScriptCore.h> 33 36 #import <WebKit/DOMAbstractView.h> 37 #import <WebKit/DOMPrivate.h> 34 38 #import <WebKit/WebScriptObject.h> 35 39 #import <WebKit/WebView.h> … … 74 78 || aSelector == @selector(testHasWebScriptKey:) 75 79 || aSelector == @selector(testArray) 80 || aSelector == @selector(setSelectElement:selectedIndex:allowingMultiple:) 76 81 ) 77 82 return NO; … … 103 108 if (aSelector == @selector(testArray)) 104 109 return @"testArray"; 110 if (aSelector == @selector(setSelectElement:selectedIndex:allowingMultiple:)) 111 return @"setSelectElementSelectedIndexAllowingMultiple"; 105 112 106 113 return nil; … … 264 271 } 265 272 273 #pragma mark - 274 #pragma mark Testing Objective-C DOM HTML Bindings 275 276 - (void)setSelectElement:(WebScriptObject *)element selectedIndex:(int)index allowingMultiple:(BOOL)allowingMultiple 277 { 278 if (![element isKindOfClass:[DOMHTMLSelectElement class]]) 279 return; 280 281 DOMHTMLSelectElement *select = (DOMHTMLSelectElement*)element; 282 [select _activateItemAtIndex:index allowMultipleSelection:allowingMultiple]; 283 } 284 266 285 @end
Note:
See TracChangeset
for help on using the changeset viewer.