Text Autosizing: Add test framework and simple test.
https://bugs.webkit.org/show_bug.cgi?id=90561
Source/WebCore:
Exposes methods allowing Layout Tests to enable Text Autosizing and
get the same results as if they were running on a mobile device.
Patch by John Mellor <johnme@chromium.org> on 2012-07-05
Reviewed by Adam Barth.
Test: fast/text-autosizing/simple-paragraph.html
* page/Settings.cpp:
(WebCore::Settings::Settings):
(WebCore):
(WebCore::Settings::setTextAutosizingWindowSizeOverride):
* page/Settings.h:
(Settings):
(WebCore::Settings::textAutosizingWindowSizeOverride):
* rendering/TextAutosizer.cpp:
(WebCore::TextAutosizer::boostSubtree):
* testing/InternalSettings.cpp:
(WebCore::InternalSettings::InternalSettings):
(WebCore::InternalSettings::restoreTo):
(WebCore::InternalSettings::setTextAutosizingEnabled):
(WebCore):
(WebCore::InternalSettings::setTextAutosizingWindowSizeOverride):
* testing/InternalSettings.h:
(InternalSettings):
* testing/InternalSettings.idl:
Source/WebKit/chromium:
ENABLE(TEXT_AUTOSIZING) is now on in Chromium (but disabled at runtime).
This allows it to be used in Layout Tests (and in future by Web
Inspector's mobile device emulation).
Patch by John Mellor <johnme@chromium.org> on 2012-07-05
Reviewed by Adam Barth.
* features.gypi:
LayoutTests:
Added a RefTest checking that Text Autosizing is active.
Skipped the text-autosizing test directory on platforms that
currently disable ENABLE(TEXT_AUTOSIZING).
Patch by John Mellor <johnme@chromium.org> on 2012-07-05
Reviewed by Adam Barth.
* fast/text-autosizing/simple-paragraph-expected.html: Added.
* fast/text-autosizing/simple-paragraph.html: Added.
* platform/efl/TestExpectations:
* platform/gtk/TestExpectations:
* platform/mac/TestExpectations:
* platform/qt/TestExpectations:
* platform/win/Skipped:
* platform/wincairo/Skipped:
* platform/wk2/Skipped:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121907
268f45cc-cd09-0410-ab3c-
d52691b4dbfc