Changeset 200590 in webkit
- Timestamp:
- May 9, 2016, 1:22:58 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r200589 r200590 1 2016-05-09 Simon Fraser <simon.fraser@apple.com> 2 3 Remove testRunner.setTextAutosizingEnabled and migrate the one test that uses it 4 https://bugs.webkit.org/show_bug.cgi?id=157480 5 6 Reviewed by Zalan Bujtas. 7 8 Migrate the one test that used testRunner.setTextAutosizingEnabled() to window.internals.settings.setTextAutosizingEnabled() 9 and move it next to the other iOS text autosizing tests. 10 11 * fast/text-autosizing/ios/textarea-auto-sizing-disable-expected.txt: Renamed from LayoutTests/platform/ios-simulator/ios/fast/html/textarea-auto-sizing-disable-expected.txt. 12 * fast/text-autosizing/ios/textarea-auto-sizing-disable.html: Renamed from LayoutTests/platform/ios-simulator/ios/fast/html/textarea-auto-sizing-disable.html. 13 * platform/ios-simulator/TestExpectations: 14 1 15 2016-05-09 Simon Fraser <simon.fraser@apple.com> 2 16 -
trunk/LayoutTests/fast/text-autosizing/ios/textarea-auto-sizing-disable.html
r200589 r200590 15 15 return; 16 16 17 // Enable autosizing18 testRunner.setTextAutosizingEnabled(true);17 window.internals.settings.setTextAutosizingEnabled(true); 18 window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480); 19 19 20 20 var obj = document.getElementById('test'); … … 30 30 eventSender.keyDown('\n'); 31 31 32 // Textarea heig thshouldn't change after we add new lines.32 // Textarea height shouldn't change after we add new lines. 33 33 document.getElementById("result").innerHTML= obj.offsetHeight == oldHeight ? 'SUCCESS' : 'FAIL'; 34 34 -
trunk/LayoutTests/platform/ios-simulator/TestExpectations
r200534 r200590 120 120 platform/ios-simulator/ios/fast/forms/range-input-readonly-and-disabled.html [ Skip ] 121 121 platform/ios-simulator/ios/fast/forms/range-input-touches.html [ Skip ] 122 platform/ios-simulator/ios/fast/html/textarea-auto-sizing-disable.html [ Skip ]123 122 platform/ios-simulator/ios/fast/text/data-detectors/phone-disabled.html [ Skip ] 124 123 platform/ios-simulator/ios/fast/text/data-detectors/phone.html [ Skip ] -
trunk/Tools/ChangeLog
r200547 r200590 1 2016-05-09 Simon Fraser <simon.fraser@apple.com> 2 3 Remove testRunner.setTextAutosizingEnabled and migrate the one test that uses it 4 https://bugs.webkit.org/show_bug.cgi?id=157480 5 6 Reviewed by Zalan Bujtas. 7 8 Migrate the one test that used testRunner.setTextAutosizingEnabled() to window.internals.settings.setTextAutosizingEnabled() 9 and move it next to the other iOS text autosizing tests. 10 11 Remove testRunner.setTextAutosizingEnabled(), which was only implemented in DumpRenderTree. 12 13 * DumpRenderTree/TestRunner.cpp: 14 (setTextAutosizingEnabledCallback): Deleted. 15 (TestRunner::staticFunctions): Deleted. 16 * DumpRenderTree/mac/TestRunnerMac.mm: 17 (TestRunner::setTextAutosizingEnabled): Deleted. 18 1 19 2016-05-07 Darin Adler <darin@apple.com> 2 20 -
trunk/Tools/DumpRenderTree/TestRunner.cpp
r200346 r200590 1241 1241 controller->setPagePaused(JSValueToBoolean(context, arguments[0])); 1242 1242 1243 return JSValueMakeUndefined(context);1244 }1245 #endif1246 1247 #if ENABLE(IOS_TEXT_AUTOSIZING)1248 static JSValueRef setTextAutosizingEnabledCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)1249 {1250 if (argumentCount < 1)1251 return JSValueMakeUndefined(context);1252 1253 TestRunner* controller = static_cast<TestRunner*>(JSObjectGetPrivate(thisObject));1254 controller->setTextAutosizingEnabled(JSValueToBoolean(context, arguments[0]));1255 1256 1243 return JSValueMakeUndefined(context); 1257 1244 } … … 2147 2134 { "setPagePaused", setPagePausedCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 2148 2135 #endif 2149 #if ENABLE(IOS_TEXT_AUTOSIZING)2150 { "setTextAutosizingEnabled", setTextAutosizingEnabledCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },2151 #endif2152 2136 { "setUseDashboardCompatibilityMode", setUseDashboardCompatibilityModeCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 2153 2137 { "setUserStyleSheetEnabled", setUserStyleSheetEnabledCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, -
trunk/Tools/DumpRenderTree/mac/TestRunnerMac.mm
r200534 r200590 537 537 #endif 538 538 539 #if ENABLE(IOS_TEXT_AUTOSIZING)540 void TestRunner::setTextAutosizingEnabled(bool enabled)541 {542 [[[mainFrame webView] preferences] _setTextAutosizingEnabled:enabled];543 }544 #endif545 546 539 void TestRunner::setUseDashboardCompatibilityMode(bool flag) 547 540 {
Note:
See TracChangeset
for help on using the changeset viewer.