https://bugs.webkit.org/show_bug.cgi?id=112362
Patch by Rouslan Solomakhin <rouslan@chromium.org> on 2013-03-15
Reviewed by Tony Chang.
The variable m_originalUnifiedSpellCheckerEnabled is never used. The generated
code from Settings.in already backs up and restores unified textchecker setting.
* testing/InternalSettings.h: Remove unusued m_originalUnifiedSpellCheckerEnabled variable.
Tools: Remove setAsynchronousSpellCheckingEnabled from test runners
https://bugs.webkit.org/show_bug.cgi?id=112362
Patch by Rouslan Solomakhin <rouslan@chromium.org> on 2013-03-15
Reviewed by Tony Chang.
Remove setAsynchronousSpellCheckingEnabled from test runners. The setting is now
in internals.settings, so all ports can share it.
* DumpRenderTree/TestRunner.cpp: Remove setAsynchronousSpellCheckingEnabled() method.
* DumpRenderTree/TestRunner.h: Remove setAsynchronousSpellCheckingEnabled() method.
* DumpRenderTree/blackberry/TestRunnerBlackBerry.cpp: Remove setAsynchronousSpellCheckingEnabled() method.
* DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp: Remove setAsynchronousSpellCheckingEnabled() method.
* DumpRenderTree/chromium/TestRunner/src/TestRunner.h: Remove setAsynchronousSpellCheckingEnabled() method.
* DumpRenderTree/efl/TestRunnerEfl.cpp: Remove setAsynchronousSpellCheckingEnabled() method.
* DumpRenderTree/gtk/TestRunnerGtk.cpp: Remove setAsynchronousSpellCheckingEnabled() method.
* DumpRenderTree/mac/TestRunnerMac.mm: Remove setAsynchronousSpellCheckingEnabled() method.
* DumpRenderTree/qt/TestRunnerQt.cpp: Remove setAsynchronousSpellCheckingEnabled() method.
* DumpRenderTree/qt/TestRunnerQt.h: Remove setAsynchronousSpellCheckingEnabled() method.
* DumpRenderTree/win/TestRunnerWin.cpp: Remove setAsynchronousSpellCheckingEnabled() method.
* DumpRenderTree/wx/TestRunnerWx.cpp: Remove setAsynchronousSpellCheckingEnabled() method.
LayoutTests: Move setAsynchronousSpellCheckingEnabled to internals.settings
https://bugs.webkit.org/show_bug.cgi?id=112362
Patch by Rouslan Solomakhin <rouslan@chromium.org> on 2013-03-15
Reviewed by Tony Chang.
Changed the tests from using testRunner.setAsynchronousSpellCheckingEnabled(bool)
with port-specific implementations to use internals.settings.setAsynchronousSpellCheckingEnabled(bool)
with one common implementation, similar to internals.settings.setUnifiedTextCheckerEnabled(bool).
Changed the tests to not reset these settings when they finish, because the test harness resets
the settings automatically.
* editing/spelling/grammar-markers-hidpi.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
* editing/spelling/grammar-markers.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
* editing/spelling/grammar-paste.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
* editing/spelling/resources/util.js: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
* editing/spelling/script-tests/spellcheck-paste.js: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
* editing/spelling/spellcheck-async-mutation.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
* editing/spelling/spellcheck-async-remove-frame.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
* editing/spelling/spellcheck-async.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
* editing/spelling/spellcheck-paste-disabled.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
* editing/spelling/spellcheck-queue.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
* editing/spelling/spellcheck-sequencenum.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
* editing/spelling/spelling-marker-description.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
* platform/chromium/editing/spelling/delete-misspelled-word.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
* platform/chromium/editing/spelling/move-cursor-to-misspelled-word.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@145940
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2013-03-15 Rouslan Solomakhin <rouslan@chromium.org>
+
+ Move setAsynchronousSpellCheckingEnabled to internals.settings
+ https://bugs.webkit.org/show_bug.cgi?id=112362
+
+ Reviewed by Tony Chang.
+
+ Changed the tests from using testRunner.setAsynchronousSpellCheckingEnabled(bool)
+ with port-specific implementations to use internals.settings.setAsynchronousSpellCheckingEnabled(bool)
+ with one common implementation, similar to internals.settings.setUnifiedTextCheckerEnabled(bool).
+ Changed the tests to not reset these settings when they finish, because the test harness resets
+ the settings automatically.
+
+ * editing/spelling/grammar-markers-hidpi.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
+ * editing/spelling/grammar-markers.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
+ * editing/spelling/grammar-paste.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
+ * editing/spelling/resources/util.js: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
+ * editing/spelling/script-tests/spellcheck-paste.js: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
+ * editing/spelling/spellcheck-async-mutation.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
+ * editing/spelling/spellcheck-async-remove-frame.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
+ * editing/spelling/spellcheck-async.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
+ * editing/spelling/spellcheck-paste-disabled.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
+ * editing/spelling/spellcheck-queue.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
+ * editing/spelling/spellcheck-sequencenum.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
+ * editing/spelling/spelling-marker-description.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
+ * platform/chromium/editing/spelling/delete-misspelled-word.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
+ * platform/chromium/editing/spelling/move-cursor-to-misspelled-word.html: Use internals.settings.setAsynchronousSpellCheckingEnabled(bool) instead of testRunner.setAsynchronousSpellCheckingEnabled(bool).
+
2013-03-14 Ojan Vafai <ojan@chromium.org>
Auto height column flexboxes with border and padding are too short
<div id="source" contenteditable="true" spellcheck="false">You has the right.</div>
<div id="target" contenteditable="true" spellcheck="true"></div>
<script>
+if (window.internals)
+ internals.settings.setAsynchronousSpellCheckingEnabled(true);
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText(true);
- testRunner.setAsynchronousSpellCheckingEnabled(true);
testRunner.setBackingScaleFactor(2, function () {
trial();
});
function trial() {
var hasMarker = internals.hasGrammarMarker(target, 4, 3);
if (hasMarker || --retry == 0) {
- if (window.testRunner) {
- testRunner.setAsynchronousSpellCheckingEnabled(false);
+ if (window.testRunner)
testRunner.notifyDone();
- }
return;
}
window.setTimeout(trial, 10);
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText(true);
- testRunner.setAsynchronousSpellCheckingEnabled(true);
}
+if (window.internals)
+ internals.settings.setAsynchronousSpellCheckingEnabled(true);
var source = document.getElementById('source');
window.getSelection().selectAllChildren(source);
function trial() {
var hasMarker = internals.hasGrammarMarker(target, 4, 3);
if (hasMarker || --retry == 0) {
- if (window.testRunner) {
- testRunner.setAsynchronousSpellCheckingEnabled(false);
+ if (window.testRunner)
testRunner.notifyDone();
- }
return;
}
window.setTimeout(trial, 10);
if (next)
return window.setTimeout(next, 0);
testRoot.style.display = "none";
-
- testRunner.setAsynchronousSpellCheckingEnabled(false);
testRunner.notifyDone();
}
trial();
};
-if (window.testRunner) {
- testRunner.setAsynchronousSpellCheckingEnabled(true);
-}
+if (window.internals)
+ internals.settings.setAsynchronousSpellCheckingEnabled(true);
tests.push(function() { pasteAndVerify(testSourcePlain, testEditable, ["has"]); });
tests.push(function() { pasteAndVerify(testSourceDecorated, testEditable, ["a"]); }); // Checks only 'a'.
function initSpellTest(testElementId, testText, testFunction)
{
- if (!window.internals || !window.testRunner || !window.testRunner.setAsynchronousSpellCheckingEnabled) {
+ if (!window.internals || !window.testRunner) {
log("FAIL Incomplete test environment");
return;
}
testFunctionCallback = testFunction;
jsTestIsAsync = true;
- testRunner.setAsynchronousSpellCheckingEnabled(true);
+ internals.settings.setAsynchronousSpellCheckingEnabled(true);
internals.settings.setSmartInsertDeleteEnabled(true);
internals.settings.setSelectTrailingWhitespaceEnabled(false);
internals.settings.setUnifiedTextCheckerEnabled(true);
if (next)
return window.setTimeout(next, 0);
testRoot.style.display = "none";
-
- testRunner.setAsynchronousSpellCheckingEnabled(false);
testRunner.notifyDone();
}
trial();
};
-if (window.testRunner)
- testRunner.setAsynchronousSpellCheckingEnabled(true);
+if (window.internals)
+ internals.settings.setAsynchronousSpellCheckingEnabled(true);
tests.push(function() { pasteAndVerify(testSourcePlain, testInput, [[0, 2]]); });
tests.push(function() { pasteAndVerify(testSourceDecorated, testInput, [[0, 2]]); });
var jsTestIsAsync = true;
-if (window.testRunner) {
+if (window.testRunner)
testRunner.dumpAsText();
- testRunner.setAsynchronousSpellCheckingEnabled(true);
-}
-if (window.internals)
+if (window.internals) {
+ internals.settings.setAsynchronousSpellCheckingEnabled(true);
internals.settings.setUnifiedTextCheckerEnabled(true);
+}
var sourceIds = ['source'];
var destElems = ['textarea', 'input', 'contenteditable'];
removeAllChildren(document.getElementById('container'));
removeAllChildren(document.getElementById('move-target'));
- if (window.internals)
- internals.settings.setUnifiedTextCheckerEnabled(false);
-
- if (window.testRunner) {
- testRunner.setAsynchronousSpellCheckingEnabled(false);
+ if (window.testRunner)
finishJSTest();
- }
}
var requestId;
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
- testRunner.setAsynchronousSpellCheckingEnabled(true);
+ internals.settings.setAsynchronousSpellCheckingEnabled(true);
internals.settings.setUnifiedTextCheckerEnabled(true);
}
if (window.testRunner) {
testRunner.dumpAsText();
- testRunner.setAsynchronousSpellCheckingEnabled(true);
testRunner.waitUntilDone();
}
-if (window.internals)
+if (window.internals) {
+ internals.settings.setAsynchronousSpellCheckingEnabled(true);
internals.settings.setUnifiedTextCheckerEnabled(true);
+}
var container = document.getElementById('container');
function removeChildren(node) {
// No more tests.
removeChildren(container);
- if (window.internals)
- internals.settings.setUnifiedTextCheckerEnabled(false);
-
- if (window.testRunner) {
- testRunner.setAsynchronousSpellCheckingEnabled(false);
+ if (window.testRunner)
testRunner.notifyDone();
- }
}
function createEditableElement(id) {
window.getSelection().selectAllChildren(srcNode);
document.execCommand('Copy');
-testRunner.setAsynchronousSpellCheckingEnabled(true);
+internals.settings.setAsynchronousSpellCheckingEnabled(true);
var dstNode = document.getElementById('dst');
dstNode.focus();
testFailed('The destination node should not have a marker.');
else
testPassed('The destination node does not have any markers.');
- testRunner.setAsynchronousSpellCheckingEnabled(false);
finishJSTest();
}
window.setTimeout(verifyMarker, sleepPeriod);
<script>
description('For Bug 72939: Asynchronous SpellChecker should consider multiple requests.');
-if (window.testRunner) {
+if (window.testRunner)
testRunner.waitUntilDone();
- testRunner.setAsynchronousSpellCheckingEnabled(true);
-}
+if (window.internals)
+ internals.settings.setAsynchronousSpellCheckingEnabled(true);
var testRoot = document.createElement("div");
document.body.insertBefore(testRoot, document.body.firstChild);
}
testRoot.style.display = "none";
- if (window.testRunner) {
- testRunner.setAsynchronousSpellCheckingEnabled(false);
+ if (window.testRunner)
testRunner.notifyDone();
- }
}
function findFirstTextNode(node)
<script>
description('For Bug 73511: Internals should have a method to return the max sequence number of spellcheck request.');
-if (window.testRunner) {
+if (window.internals) {
window.jsTestIsAsync = true;
- testRunner.setAsynchronousSpellCheckingEnabled(true);
+ internals.settings.setAsynchronousSpellCheckingEnabled(true);
}
var testRoot = document.createElement("div");
}
testRoot.style.display = "none";
- if (window.testRunner) {
- testRunner.setAsynchronousSpellCheckingEnabled(false);
- finishJSTest();
- }
+ finishJSTest();
}
function copyAndPaste(source, dest)
<script>
-function done()
-{
- testRunner.setAsynchronousSpellCheckingEnabled(false);
- internals.settings.setUnifiedTextCheckerEnabled(false);
- finishJSTest()
-}
-
function verify(nretry)
{
if (!nretry) {
- done();
+ finishJSTest()
return;
}
if (markedText != null) {
shouldBeEqualToString("markedText", "wellcome");
shouldBeEqualToString("markerDescription", "welcome");
- done();
+ finishJSTest();
}
// Wait until the async spellchecking is done.
{
jsTestIsAsync = true;
internals.settings.setUnifiedTextCheckerEnabled(true);
- testRunner.setAsynchronousSpellCheckingEnabled(true);
+ internals.settings.setAsynchronousSpellCheckingEnabled(true);
var sel = window.getSelection();
var destination = document.getElementById("destination");
shouldBeTrue('insertText("z"); insertText("z"); insertText(" "); internals.hasSpellingMarker(document, 0, 2)');
debug('Enable asynchronous spellchecking, delete two characters, and insert a space');
-testRunner.setAsynchronousSpellCheckingEnabled(true);
+internals.settings.setAsynchronousSpellCheckingEnabled(true);
internals.settings.setUnifiedTextCheckerEnabled(true);
testRunner.execCommand("DeleteBackward");
return;
}
shouldBeFalse('internals.hasSpellingMarker(document, 0, 1)');
- internals.settings.setUnifiedTextCheckerEnabled(false);
- testRunner.setAsynchronousSpellCheckingEnabled(false);
finishJSTest();
}
window.setTimeout(verifyMarker, 1);
'To test manually, type a misspelled word "zz " and type a left-arrow key to move the cursor on it.' +
'This test succeeds when "zz" is marked as misspelled.');
-testRunner.setAsynchronousSpellCheckingEnabled(true);
+internals.settings.setAsynchronousSpellCheckingEnabled(true);
var node = document.getElementById('src');
node.focus();
document.execCommand("InsertText", false, 'z');
document.execCommand("InsertText", false, ' ');
window.getSelection().modify('move', 'backward', 'character');
shouldBeTrue('internals.hasSpellingMarker(document, 0, 2)');
-testRunner.setAsynchronousSpellCheckingEnabled(false);
</script>
<script src="../../../../fast/js/resources/js-test-post.js"></script>
</body>
+2013-03-15 Rouslan Solomakhin <rouslan@chromium.org>
+
+ Remove unused unified textchecker variable
+ https://bugs.webkit.org/show_bug.cgi?id=112362
+
+ Reviewed by Tony Chang.
+
+ The variable m_originalUnifiedSpellCheckerEnabled is never used. The generated
+ code from Settings.in already backs up and restores unified textchecker setting.
+
+ * testing/InternalSettings.h: Remove unusued m_originalUnifiedSpellCheckerEnabled variable.
+
2013-03-14 Ojan Vafai <ojan@chromium.org>
Auto height column flexboxes with border and padding are too short
bool m_originalStyleScoped;
#endif
EditingBehaviorType m_originalEditingBehavior;
- bool m_originalUnifiedSpellCheckerEnabled;
#if ENABLE(TEXT_AUTOSIZING)
bool m_originalTextAutosizingEnabled;
IntSize m_originalTextAutosizingWindowSizeOverride;
+2013-03-15 Rouslan Solomakhin <rouslan@chromium.org>
+
+ Remove setAsynchronousSpellCheckingEnabled from test runners
+ https://bugs.webkit.org/show_bug.cgi?id=112362
+
+ Reviewed by Tony Chang.
+
+ Remove setAsynchronousSpellCheckingEnabled from test runners. The setting is now
+ in internals.settings, so all ports can share it.
+
+ * DumpRenderTree/TestRunner.cpp: Remove setAsynchronousSpellCheckingEnabled() method.
+ * DumpRenderTree/TestRunner.h: Remove setAsynchronousSpellCheckingEnabled() method.
+ * DumpRenderTree/blackberry/TestRunnerBlackBerry.cpp: Remove setAsynchronousSpellCheckingEnabled() method.
+ * DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp: Remove setAsynchronousSpellCheckingEnabled() method.
+ * DumpRenderTree/chromium/TestRunner/src/TestRunner.h: Remove setAsynchronousSpellCheckingEnabled() method.
+ * DumpRenderTree/efl/TestRunnerEfl.cpp: Remove setAsynchronousSpellCheckingEnabled() method.
+ * DumpRenderTree/gtk/TestRunnerGtk.cpp: Remove setAsynchronousSpellCheckingEnabled() method.
+ * DumpRenderTree/mac/TestRunnerMac.mm: Remove setAsynchronousSpellCheckingEnabled() method.
+ * DumpRenderTree/qt/TestRunnerQt.cpp: Remove setAsynchronousSpellCheckingEnabled() method.
+ * DumpRenderTree/qt/TestRunnerQt.h: Remove setAsynchronousSpellCheckingEnabled() method.
+ * DumpRenderTree/win/TestRunnerWin.cpp: Remove setAsynchronousSpellCheckingEnabled() method.
+ * DumpRenderTree/wx/TestRunnerWx.cpp: Remove setAsynchronousSpellCheckingEnabled() method.
+
2013-03-15 Simon Fraser <simon.fraser@apple.com>
Fix the stupid unit tests.
return JSValueMakeUndefined(context);
}
-static JSValueRef setAsynchronousSpellCheckingEnabledCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
-{
- if (argumentCount < 1)
- return JSValueMakeUndefined(context);
-
- TestRunner* controller = static_cast<TestRunner*>(JSObjectGetPrivate(thisObject));
- controller->setAsynchronousSpellCheckingEnabled(JSValueToBoolean(context, arguments[0]));
- return JSValueMakeUndefined(context);
-}
-
static JSValueRef showWebInspectorCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
{
TestRunner* controller = static_cast<TestRunner*>(JSObjectGetPrivate(thisObject));
{ "setWindowIsKey", setWindowIsKeyCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
{ "setJavaScriptCanAccessClipboard", setJavaScriptCanAccessClipboardCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
{ "setXSSAuditorEnabled", setXSSAuditorEnabledCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
- { "setAsynchronousSpellCheckingEnabled", setAsynchronousSpellCheckingEnabledCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
{ "showWebInspector", showWebInspectorCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
{ "simulateLegacyWebNotificationClick", simulateLegacyWebNotificationClickCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
{ "testOnscreen", testOnscreenCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
bool geolocationPermission() const { return m_geolocationPermission; }
void setDeveloperExtrasEnabled(bool);
- void setAsynchronousSpellCheckingEnabled(bool);
void showWebInspector();
void closeWebInspector();
void evaluateInWebInspector(long callId, JSStringRef script);
notImplemented();
}
-void TestRunner::setAsynchronousSpellCheckingEnabled(bool)
-{
- notImplemented();
-}
-
int TestRunner::numberOfPendingGeolocationPermissionRequests()
{
return DumpRenderTreeSupport::numberOfPendingGeolocationPermissionRequests(BlackBerry::WebKit::DumpRenderTree::currentInstance()->page());
bindMethod("setAllowFileAccessFromFileURLs", &TestRunner::setAllowFileAccessFromFileURLs);
bindMethod("overridePreference", &TestRunner::overridePreference);
bindMethod("setPluginsEnabled", &TestRunner::setPluginsEnabled);
- bindMethod("setAsynchronousSpellCheckingEnabled", &TestRunner::setAsynchronousSpellCheckingEnabled);
bindMethod("setTouchDragDropEnabled", &TestRunner::setTouchDragDropEnabled);
// The following modify the state of the TestRunner.
result->setNull();
}
-void TestRunner::setAsynchronousSpellCheckingEnabled(const CppArgumentList& arguments, CppVariant* result)
-{
- if (arguments.size() > 0 && arguments[0].isBool()) {
- m_delegate->preferences()->asynchronousSpellCheckingEnabled = cppVariantToBool(arguments[0]);
- m_delegate->applyPreferences();
- }
- result->setNull();
-}
-
void TestRunner::setTouchDragDropEnabled(const CppArgumentList& arguments, CppVariant* result)
{
if (arguments.size() > 0 && arguments[0].isBool()) {
// Enable or disable plugins.
void setPluginsEnabled(const CppArgumentList&, CppVariant*);
- // Changes asynchronous spellchecking flag on the settings.
- void setAsynchronousSpellCheckingEnabled(const CppArgumentList&, CppVariant*);
-
void setTouchDragDropEnabled(const CppArgumentList&, CppVariant*);
///////////////////////////////////////////////////////////////////////////
ewk_view_setting_enable_developer_extras_set(browser->mainView(), enabled);
}
-void TestRunner::setAsynchronousSpellCheckingEnabled(bool)
-{
- notImplemented();
-}
-
void TestRunner::showWebInspector()
{
ewk_view_inspector_show(browser->mainView());
g_object_set(webSettings, "enable-developer-extras", enabled, NULL);
}
-void TestRunner::setAsynchronousSpellCheckingEnabled(bool)
-{
- // FIXME: Implement this.
-}
-
void TestRunner::showWebInspector()
{
WebKitWebView* webView = webkit_web_frame_get_web_view(mainFrame);
[[[mainFrame webView] preferences] setDeveloperExtrasEnabled:enabled];
}
-void TestRunner::setAsynchronousSpellCheckingEnabled(bool enabled)
-{
- [[[mainFrame webView] preferences] setAsynchronousSpellCheckingEnabled:enabled];
-}
-
void TestRunner::showWebInspector()
{
[[[mainFrame webView] inspector] show:nil];
m_drt->webPage()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, enabled);
}
-void TestRunnerQt::setAsynchronousSpellCheckingEnabled(bool)
-{
- // FIXME: Implement this.
-}
-
void TestRunnerQt::showWebInspector()
{
m_drt->webPage()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
{
}
-void TestRunner::setAsynchronousSpellCheckingEnabled(bool)
-{
-}
-
void TestRunner::setXSSAuditorEnabled(bool flag)
{
}
QString decodeHostName(const QString& host);
void dumpSelectionRect() const { }
void setDeveloperExtrasEnabled(bool);
- void setAsynchronousSpellCheckingEnabled(bool);
void showWebInspector();
void closeWebInspector();
void evaluateInWebInspector(long callId, const QString& script);
prefsPrivate->setDeveloperExtrasEnabled(enabled);
}
-void TestRunner::setAsynchronousSpellCheckingEnabled(bool)
-{
- // FIXME: Implement this.
-}
-
void TestRunner::showWebInspector()
{
COMPtr<IWebView> webView;
{
}
-void TestRunner::setAsynchronousSpellCheckingEnabled(bool)
-{
- // FIXME: Implement this.
-}
-
bool TestRunner::findString(JSContextRef context, JSStringRef target, JSObjectRef optionsArray)
{
// FIXME: Implement