haikuwebkit/LayoutTests/editing/spelling/markers-expected.txt

49 lines
1.8 KiB
Plaintext
Raw Permalink Normal View History

Tests spelling and grammar markers for misspellings.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
[macOS] It should be possible to override spellchecking results in WebKitTestRunner https://bugs.webkit.org/show_bug.cgi?id=215290 Reviewed by Devin Rousso. Tools: Refactor `setSpellCheckerResults` so that it is on `UIScriptController` instead of `TestRunner`, such that it can be triggered asynchronously from a layout test. This allows the testing hook to work in WebKit2, where the swizzled spell checker is in the UI process. * DumpRenderTree/TestRunner.cpp: (TestRunner::staticFunctions): (setSpellCheckerResultsCallback): Deleted. * DumpRenderTree/TestRunner.h: * DumpRenderTree/ios/UIScriptControllerIOS.h: Add a method implementation stub for iOS. * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::setSpellCheckerResults): Deleted. * DumpRenderTree/mac/UIScriptControllerMac.h: * DumpRenderTree/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): * DumpRenderTree/win/TestRunnerWin.cpp: (TestRunner::setSpellCheckerLoggingEnabled): (TestRunner::setSpellCheckerResults): Deleted. * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * TestRunnerShared/UIScriptContext/UIScriptController.h: (WTR::UIScriptController::setSpellCheckerResults): * TestRunnerShared/cocoa/LayoutTestSpellChecker.h: * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestSpellChecker setResultsFromJSValue:inContext:]): (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Deleted. * WebKitTestRunner/ios/UIScriptControllerIOS.h: * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::platformResetStateToConsistentValues): Make sure that we uninstall the swizzled `LayoutTestSpellChecker` between tests. * WebKitTestRunner/mac/UIScriptControllerMac.h: * WebKitTestRunner/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): LayoutTests: * editing/spelling/markers-expected.txt: * editing/spelling/markers.html: Rewrite this layout test to use async-await, instead of asynchronously calling the recursive `done` function. Additionally, adopt `UIHelper.setSpellCheckerResults`. * editing/spelling/text-replacement-after-typing-to-word.html: Adopt `UIHelper.setSpellCheckerResults`. This allows us to enable the test on macOS WebKit2, since the only thing that prevented it from working before was the ability to `setSpellCheckerResults` in WebKit2. * platform/mac-wk2/TestExpectations: * resources/ui-helper.js: Add a `UIHelper` method to override the system spell checker with given results. (window.UIHelper.async setSpellCheckerResults): Canonical link: https://commits.webkit.org/228074@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-07 23:05:36 +00:00
Checking for issue on "I have a issue."
PASS internals.markerRangeForNode(element.firstChild, misspellingData.marker, 0) became different from null
[WK1] editing/spelling/markers.html is failing on recent builds of macOS Mojave https://bugs.webkit.org/show_bug.cgi?id=187253 Reviewed by Tim Horton. Tools: Enhances and refactors LayoutTestSpellChecker, which was introduced in r233412. * DumpRenderTree/TestRunner.cpp: (setSpellCheckerResultsCallback): Rename setSpellCheckerTextReplacements to setSpellCheckerResults. (TestRunner::staticFunctions): (setSpellCheckerTextReplacementsCallback): Deleted. * DumpRenderTree/TestRunner.h: * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::setSpellCheckerResults): (TestRunner::setSpellCheckerTextReplacements): Deleted. * DumpRenderTree/win/TestRunnerWin.cpp: (TestRunner::setSpellCheckerResults): (TestRunner::setSpellCheckerTextReplacements): Deleted. * TestRunnerShared/cocoa/LayoutTestSpellChecker.h: * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestTextCheckingResult initWithType:range:replacement:details:]): (-[LayoutTestTextCheckingResult grammarDetails]): (-[LayoutTestSpellChecker reset]): (-[LayoutTestSpellChecker results]): (-[LayoutTestSpellChecker setResults:]): (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Add support for passing in a list of grammar correction detail ranges. Necessary for simulating grammar errors. (-[LayoutTestSpellChecker checkString:range:types:options:inSpellDocumentWithTag:orthography:wordCount:]): Tweaked to always call the superclass method. This ensures that we set the `orthography` and `wordCount` outpointers if applicable. (-[LayoutTestSpellChecker requestCheckingOfString:range:types:options:inSpellDocumentWithTag:completionHandler:]): Added support for simulating asynchronous spell checking. (-[LayoutTestTextCheckingResult initWithType:range:replacement:]): Deleted. (-[LayoutTestSpellChecker replacements]): Deleted. (-[LayoutTestSpellChecker setReplacements:]): Deleted. (-[LayoutTestSpellChecker setReplacementsFromJSObject:inContext:]): Deleted. LayoutTests: In recent builds of macOS Mojave, NSSpellChecker returns both grammar and spelling errors when asked to analyze the string "I have a issue.". While arguably correct, the change causes this existing layout test to fail due to one of the calls to `verifyUnexpectedMarkers` expecting either grammar markers and not spelling markers, or vice versa. To fix this, we can leverage the mechanism added in r233412 to simulate different results from the platform spellchecker, such that the test now exercises all combinations of grammar and spelling corrections observed on each macOS platform, regardless of the actual platform where the test is being run. This patch also enhances the capabilities of `LayoutTestSpellChecker`. See `Tools/ChangeLog` for more details. * editing/spelling/markers-expected.txt: * editing/spelling/markers.html: * editing/spelling/text-replacement-after-typing-to-word.html: Adjusted for a renamed TestRunner method. Canonical link: https://commits.webkit.org/202524@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233439 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-07-02 22:04:51 +00:00
PASS range.toString() is "a"
[macOS] It should be possible to override spellchecking results in WebKitTestRunner https://bugs.webkit.org/show_bug.cgi?id=215290 Reviewed by Devin Rousso. Tools: Refactor `setSpellCheckerResults` so that it is on `UIScriptController` instead of `TestRunner`, such that it can be triggered asynchronously from a layout test. This allows the testing hook to work in WebKit2, where the swizzled spell checker is in the UI process. * DumpRenderTree/TestRunner.cpp: (TestRunner::staticFunctions): (setSpellCheckerResultsCallback): Deleted. * DumpRenderTree/TestRunner.h: * DumpRenderTree/ios/UIScriptControllerIOS.h: Add a method implementation stub for iOS. * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::setSpellCheckerResults): Deleted. * DumpRenderTree/mac/UIScriptControllerMac.h: * DumpRenderTree/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): * DumpRenderTree/win/TestRunnerWin.cpp: (TestRunner::setSpellCheckerLoggingEnabled): (TestRunner::setSpellCheckerResults): Deleted. * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * TestRunnerShared/UIScriptContext/UIScriptController.h: (WTR::UIScriptController::setSpellCheckerResults): * TestRunnerShared/cocoa/LayoutTestSpellChecker.h: * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestSpellChecker setResultsFromJSValue:inContext:]): (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Deleted. * WebKitTestRunner/ios/UIScriptControllerIOS.h: * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::platformResetStateToConsistentValues): Make sure that we uninstall the swizzled `LayoutTestSpellChecker` between tests. * WebKitTestRunner/mac/UIScriptControllerMac.h: * WebKitTestRunner/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): LayoutTests: * editing/spelling/markers-expected.txt: * editing/spelling/markers.html: Rewrite this layout test to use async-await, instead of asynchronously calling the recursive `done` function. Additionally, adopt `UIHelper.setSpellCheckerResults`. * editing/spelling/text-replacement-after-typing-to-word.html: Adopt `UIHelper.setSpellCheckerResults`. This allows us to enable the test on macOS WebKit2, since the only thing that prevented it from working before was the ability to `setSpellCheckerResults` in WebKit2. * platform/mac-wk2/TestExpectations: * resources/ui-helper.js: Add a `UIHelper` method to override the system spell checker with given results. (window.UIHelper.async setSpellCheckerResults): Canonical link: https://commits.webkit.org/228074@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-07 23:05:36 +00:00
Checking for issue on "I have a issue."
PASS internals.markerRangeForNode(element.firstChild, misspellingData.marker, 0) became different from null
[WK1] editing/spelling/markers.html is failing on recent builds of macOS Mojave https://bugs.webkit.org/show_bug.cgi?id=187253 Reviewed by Tim Horton. Tools: Enhances and refactors LayoutTestSpellChecker, which was introduced in r233412. * DumpRenderTree/TestRunner.cpp: (setSpellCheckerResultsCallback): Rename setSpellCheckerTextReplacements to setSpellCheckerResults. (TestRunner::staticFunctions): (setSpellCheckerTextReplacementsCallback): Deleted. * DumpRenderTree/TestRunner.h: * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::setSpellCheckerResults): (TestRunner::setSpellCheckerTextReplacements): Deleted. * DumpRenderTree/win/TestRunnerWin.cpp: (TestRunner::setSpellCheckerResults): (TestRunner::setSpellCheckerTextReplacements): Deleted. * TestRunnerShared/cocoa/LayoutTestSpellChecker.h: * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestTextCheckingResult initWithType:range:replacement:details:]): (-[LayoutTestTextCheckingResult grammarDetails]): (-[LayoutTestSpellChecker reset]): (-[LayoutTestSpellChecker results]): (-[LayoutTestSpellChecker setResults:]): (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Add support for passing in a list of grammar correction detail ranges. Necessary for simulating grammar errors. (-[LayoutTestSpellChecker checkString:range:types:options:inSpellDocumentWithTag:orthography:wordCount:]): Tweaked to always call the superclass method. This ensures that we set the `orthography` and `wordCount` outpointers if applicable. (-[LayoutTestSpellChecker requestCheckingOfString:range:types:options:inSpellDocumentWithTag:completionHandler:]): Added support for simulating asynchronous spell checking. (-[LayoutTestTextCheckingResult initWithType:range:replacement:]): Deleted. (-[LayoutTestSpellChecker replacements]): Deleted. (-[LayoutTestSpellChecker setReplacements:]): Deleted. (-[LayoutTestSpellChecker setReplacementsFromJSObject:inContext:]): Deleted. LayoutTests: In recent builds of macOS Mojave, NSSpellChecker returns both grammar and spelling errors when asked to analyze the string "I have a issue.". While arguably correct, the change causes this existing layout test to fail due to one of the calls to `verifyUnexpectedMarkers` expecting either grammar markers and not spelling markers, or vice versa. To fix this, we can leverage the mechanism added in r233412 to simulate different results from the platform spellchecker, such that the test now exercises all combinations of grammar and spelling corrections observed on each macOS platform, regardless of the actual platform where the test is being run. This patch also enhances the capabilities of `LayoutTestSpellChecker`. See `Tools/ChangeLog` for more details. * editing/spelling/markers-expected.txt: * editing/spelling/markers.html: * editing/spelling/text-replacement-after-typing-to-word.html: Adjusted for a renamed TestRunner method. Canonical link: https://commits.webkit.org/202524@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233439 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-07-02 22:04:51 +00:00
PASS range.toString() is "a"
[macOS] It should be possible to override spellchecking results in WebKitTestRunner https://bugs.webkit.org/show_bug.cgi?id=215290 Reviewed by Devin Rousso. Tools: Refactor `setSpellCheckerResults` so that it is on `UIScriptController` instead of `TestRunner`, such that it can be triggered asynchronously from a layout test. This allows the testing hook to work in WebKit2, where the swizzled spell checker is in the UI process. * DumpRenderTree/TestRunner.cpp: (TestRunner::staticFunctions): (setSpellCheckerResultsCallback): Deleted. * DumpRenderTree/TestRunner.h: * DumpRenderTree/ios/UIScriptControllerIOS.h: Add a method implementation stub for iOS. * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::setSpellCheckerResults): Deleted. * DumpRenderTree/mac/UIScriptControllerMac.h: * DumpRenderTree/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): * DumpRenderTree/win/TestRunnerWin.cpp: (TestRunner::setSpellCheckerLoggingEnabled): (TestRunner::setSpellCheckerResults): Deleted. * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * TestRunnerShared/UIScriptContext/UIScriptController.h: (WTR::UIScriptController::setSpellCheckerResults): * TestRunnerShared/cocoa/LayoutTestSpellChecker.h: * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestSpellChecker setResultsFromJSValue:inContext:]): (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Deleted. * WebKitTestRunner/ios/UIScriptControllerIOS.h: * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::platformResetStateToConsistentValues): Make sure that we uninstall the swizzled `LayoutTestSpellChecker` between tests. * WebKitTestRunner/mac/UIScriptControllerMac.h: * WebKitTestRunner/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): LayoutTests: * editing/spelling/markers-expected.txt: * editing/spelling/markers.html: Rewrite this layout test to use async-await, instead of asynchronously calling the recursive `done` function. Additionally, adopt `UIHelper.setSpellCheckerResults`. * editing/spelling/text-replacement-after-typing-to-word.html: Adopt `UIHelper.setSpellCheckerResults`. This allows us to enable the test on macOS WebKit2, since the only thing that prevented it from working before was the ability to `setSpellCheckerResults` in WebKit2. * platform/mac-wk2/TestExpectations: * resources/ui-helper.js: Add a `UIHelper` method to override the system spell checker with given results. (window.UIHelper.async setSpellCheckerResults): Canonical link: https://commits.webkit.org/228074@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-07 23:05:36 +00:00
Checking for issue on "I have a issue."
PASS internals.markerRangeForNode(element.firstChild, misspellingData.marker, 0) became different from null
[WK1] editing/spelling/markers.html is failing on recent builds of macOS Mojave https://bugs.webkit.org/show_bug.cgi?id=187253 Reviewed by Tim Horton. Tools: Enhances and refactors LayoutTestSpellChecker, which was introduced in r233412. * DumpRenderTree/TestRunner.cpp: (setSpellCheckerResultsCallback): Rename setSpellCheckerTextReplacements to setSpellCheckerResults. (TestRunner::staticFunctions): (setSpellCheckerTextReplacementsCallback): Deleted. * DumpRenderTree/TestRunner.h: * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::setSpellCheckerResults): (TestRunner::setSpellCheckerTextReplacements): Deleted. * DumpRenderTree/win/TestRunnerWin.cpp: (TestRunner::setSpellCheckerResults): (TestRunner::setSpellCheckerTextReplacements): Deleted. * TestRunnerShared/cocoa/LayoutTestSpellChecker.h: * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestTextCheckingResult initWithType:range:replacement:details:]): (-[LayoutTestTextCheckingResult grammarDetails]): (-[LayoutTestSpellChecker reset]): (-[LayoutTestSpellChecker results]): (-[LayoutTestSpellChecker setResults:]): (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Add support for passing in a list of grammar correction detail ranges. Necessary for simulating grammar errors. (-[LayoutTestSpellChecker checkString:range:types:options:inSpellDocumentWithTag:orthography:wordCount:]): Tweaked to always call the superclass method. This ensures that we set the `orthography` and `wordCount` outpointers if applicable. (-[LayoutTestSpellChecker requestCheckingOfString:range:types:options:inSpellDocumentWithTag:completionHandler:]): Added support for simulating asynchronous spell checking. (-[LayoutTestTextCheckingResult initWithType:range:replacement:]): Deleted. (-[LayoutTestSpellChecker replacements]): Deleted. (-[LayoutTestSpellChecker setReplacements:]): Deleted. (-[LayoutTestSpellChecker setReplacementsFromJSObject:inContext:]): Deleted. LayoutTests: In recent builds of macOS Mojave, NSSpellChecker returns both grammar and spelling errors when asked to analyze the string "I have a issue.". While arguably correct, the change causes this existing layout test to fail due to one of the calls to `verifyUnexpectedMarkers` expecting either grammar markers and not spelling markers, or vice versa. To fix this, we can leverage the mechanism added in r233412 to simulate different results from the platform spellchecker, such that the test now exercises all combinations of grammar and spelling corrections observed on each macOS platform, regardless of the actual platform where the test is being run. This patch also enhances the capabilities of `LayoutTestSpellChecker`. See `Tools/ChangeLog` for more details. * editing/spelling/markers-expected.txt: * editing/spelling/markers.html: * editing/spelling/text-replacement-after-typing-to-word.html: Adjusted for a renamed TestRunner method. Canonical link: https://commits.webkit.org/202524@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233439 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-07-02 22:04:51 +00:00
PASS range.toString() is "a"
[macOS] It should be possible to override spellchecking results in WebKitTestRunner https://bugs.webkit.org/show_bug.cgi?id=215290 Reviewed by Devin Rousso. Tools: Refactor `setSpellCheckerResults` so that it is on `UIScriptController` instead of `TestRunner`, such that it can be triggered asynchronously from a layout test. This allows the testing hook to work in WebKit2, where the swizzled spell checker is in the UI process. * DumpRenderTree/TestRunner.cpp: (TestRunner::staticFunctions): (setSpellCheckerResultsCallback): Deleted. * DumpRenderTree/TestRunner.h: * DumpRenderTree/ios/UIScriptControllerIOS.h: Add a method implementation stub for iOS. * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::setSpellCheckerResults): Deleted. * DumpRenderTree/mac/UIScriptControllerMac.h: * DumpRenderTree/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): * DumpRenderTree/win/TestRunnerWin.cpp: (TestRunner::setSpellCheckerLoggingEnabled): (TestRunner::setSpellCheckerResults): Deleted. * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * TestRunnerShared/UIScriptContext/UIScriptController.h: (WTR::UIScriptController::setSpellCheckerResults): * TestRunnerShared/cocoa/LayoutTestSpellChecker.h: * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestSpellChecker setResultsFromJSValue:inContext:]): (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Deleted. * WebKitTestRunner/ios/UIScriptControllerIOS.h: * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::platformResetStateToConsistentValues): Make sure that we uninstall the swizzled `LayoutTestSpellChecker` between tests. * WebKitTestRunner/mac/UIScriptControllerMac.h: * WebKitTestRunner/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): LayoutTests: * editing/spelling/markers-expected.txt: * editing/spelling/markers.html: Rewrite this layout test to use async-await, instead of asynchronously calling the recursive `done` function. Additionally, adopt `UIHelper.setSpellCheckerResults`. * editing/spelling/text-replacement-after-typing-to-word.html: Adopt `UIHelper.setSpellCheckerResults`. This allows us to enable the test on macOS WebKit2, since the only thing that prevented it from working before was the ability to `setSpellCheckerResults` in WebKit2. * platform/mac-wk2/TestExpectations: * resources/ui-helper.js: Add a `UIHelper` method to override the system spell checker with given results. (window.UIHelper.async setSpellCheckerResults): Canonical link: https://commits.webkit.org/228074@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-07 23:05:36 +00:00
Checking for issue on "I have a issue."
PASS internals.markerRangeForNode(element.firstChild, misspellingData.marker, 0) became different from null
Update some layout test expected results https://bugs.webkit.org/show_bug.cgi?id=73755 Reviewed by Sam Weinig. * editing/spelling/markers-expected.txt: Added. We just forgot to check this in when the test was added, and the test is skipped on most platforms so that was not noticed. * fast/css/getComputedStyle/computed-style-without-renderer.html: Changed this test to share the list of properties to skip and the list of hidden properties. * fast/css/getComputedStyle/computed-style.html: Ditt. * fast/css/getComputedStyle/resources/property-names.js: Added. Besides the structural change the change is that CSS_GRID_LAYOUT properties are now in the list to skip. * platform/mac/accessibility/multiselect-list-reports-active-option-expected.txt: Added. Shows this test is failing on Mac, even though it is passing on Chromium. That needs a bug report. * platform/mac/fast/forms/input-placeholder-visibility-1-expected.txt: * platform/mac/fast/forms/input-placeholder-visibility-3-expected.txt: * platform/mac/fast/forms/textarea-placeholder-visibility-1-expected.txt: * platform/mac/fast/forms/textarea-placeholder-visibility-2-expected.txt: Updated these results now that we don't use relative positioning for placeholders any more. The original patch r101742 updated other platforms, including mac-snowleopard, but missed this one. * platform/mac/svg/css/getComputedStyle-basic-expected.txt: Removed. The Mac platform can share the platform-independent expected results as long as we skip the CSS_GRID_LAYOUT properties. * svg/css/getComputedStyle-basic.xhtml: Updated to skip the same properties that the tests in fast/css/getComputedStyle skip. Canonical link: https://commits.webkit.org/90404@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@101941 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-12-04 03:25:41 +00:00
PASS range.toString() is "a"
[macOS] It should be possible to override spellchecking results in WebKitTestRunner https://bugs.webkit.org/show_bug.cgi?id=215290 Reviewed by Devin Rousso. Tools: Refactor `setSpellCheckerResults` so that it is on `UIScriptController` instead of `TestRunner`, such that it can be triggered asynchronously from a layout test. This allows the testing hook to work in WebKit2, where the swizzled spell checker is in the UI process. * DumpRenderTree/TestRunner.cpp: (TestRunner::staticFunctions): (setSpellCheckerResultsCallback): Deleted. * DumpRenderTree/TestRunner.h: * DumpRenderTree/ios/UIScriptControllerIOS.h: Add a method implementation stub for iOS. * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::setSpellCheckerResults): Deleted. * DumpRenderTree/mac/UIScriptControllerMac.h: * DumpRenderTree/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): * DumpRenderTree/win/TestRunnerWin.cpp: (TestRunner::setSpellCheckerLoggingEnabled): (TestRunner::setSpellCheckerResults): Deleted. * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * TestRunnerShared/UIScriptContext/UIScriptController.h: (WTR::UIScriptController::setSpellCheckerResults): * TestRunnerShared/cocoa/LayoutTestSpellChecker.h: * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestSpellChecker setResultsFromJSValue:inContext:]): (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Deleted. * WebKitTestRunner/ios/UIScriptControllerIOS.h: * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::platformResetStateToConsistentValues): Make sure that we uninstall the swizzled `LayoutTestSpellChecker` between tests. * WebKitTestRunner/mac/UIScriptControllerMac.h: * WebKitTestRunner/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): LayoutTests: * editing/spelling/markers-expected.txt: * editing/spelling/markers.html: Rewrite this layout test to use async-await, instead of asynchronously calling the recursive `done` function. Additionally, adopt `UIHelper.setSpellCheckerResults`. * editing/spelling/text-replacement-after-typing-to-word.html: Adopt `UIHelper.setSpellCheckerResults`. This allows us to enable the test on macOS WebKit2, since the only thing that prevented it from working before was the ability to `setSpellCheckerResults` in WebKit2. * platform/mac-wk2/TestExpectations: * resources/ui-helper.js: Add a `UIHelper` method to override the system spell checker with given results. (window.UIHelper.async setSpellCheckerResults): Canonical link: https://commits.webkit.org/228074@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-07 23:05:36 +00:00
Checking for issue on "zz."
PASS internals.markerRangeForNode(element.firstChild, misspellingData.marker, 0) became different from null
Update some layout test expected results https://bugs.webkit.org/show_bug.cgi?id=73755 Reviewed by Sam Weinig. * editing/spelling/markers-expected.txt: Added. We just forgot to check this in when the test was added, and the test is skipped on most platforms so that was not noticed. * fast/css/getComputedStyle/computed-style-without-renderer.html: Changed this test to share the list of properties to skip and the list of hidden properties. * fast/css/getComputedStyle/computed-style.html: Ditt. * fast/css/getComputedStyle/resources/property-names.js: Added. Besides the structural change the change is that CSS_GRID_LAYOUT properties are now in the list to skip. * platform/mac/accessibility/multiselect-list-reports-active-option-expected.txt: Added. Shows this test is failing on Mac, even though it is passing on Chromium. That needs a bug report. * platform/mac/fast/forms/input-placeholder-visibility-1-expected.txt: * platform/mac/fast/forms/input-placeholder-visibility-3-expected.txt: * platform/mac/fast/forms/textarea-placeholder-visibility-1-expected.txt: * platform/mac/fast/forms/textarea-placeholder-visibility-2-expected.txt: Updated these results now that we don't use relative positioning for placeholders any more. The original patch r101742 updated other platforms, including mac-snowleopard, but missed this one. * platform/mac/svg/css/getComputedStyle-basic-expected.txt: Removed. The Mac platform can share the platform-independent expected results as long as we skip the CSS_GRID_LAYOUT properties. * svg/css/getComputedStyle-basic.xhtml: Updated to skip the same properties that the tests in fast/css/getComputedStyle skip. Canonical link: https://commits.webkit.org/90404@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@101941 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-12-04 03:25:41 +00:00
PASS range.toString() is "zz"
[macOS] It should be possible to override spellchecking results in WebKitTestRunner https://bugs.webkit.org/show_bug.cgi?id=215290 Reviewed by Devin Rousso. Tools: Refactor `setSpellCheckerResults` so that it is on `UIScriptController` instead of `TestRunner`, such that it can be triggered asynchronously from a layout test. This allows the testing hook to work in WebKit2, where the swizzled spell checker is in the UI process. * DumpRenderTree/TestRunner.cpp: (TestRunner::staticFunctions): (setSpellCheckerResultsCallback): Deleted. * DumpRenderTree/TestRunner.h: * DumpRenderTree/ios/UIScriptControllerIOS.h: Add a method implementation stub for iOS. * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::setSpellCheckerResults): Deleted. * DumpRenderTree/mac/UIScriptControllerMac.h: * DumpRenderTree/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): * DumpRenderTree/win/TestRunnerWin.cpp: (TestRunner::setSpellCheckerLoggingEnabled): (TestRunner::setSpellCheckerResults): Deleted. * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * TestRunnerShared/UIScriptContext/UIScriptController.h: (WTR::UIScriptController::setSpellCheckerResults): * TestRunnerShared/cocoa/LayoutTestSpellChecker.h: * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestSpellChecker setResultsFromJSValue:inContext:]): (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Deleted. * WebKitTestRunner/ios/UIScriptControllerIOS.h: * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::platformResetStateToConsistentValues): Make sure that we uninstall the swizzled `LayoutTestSpellChecker` between tests. * WebKitTestRunner/mac/UIScriptControllerMac.h: * WebKitTestRunner/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): LayoutTests: * editing/spelling/markers-expected.txt: * editing/spelling/markers.html: Rewrite this layout test to use async-await, instead of asynchronously calling the recursive `done` function. Additionally, adopt `UIHelper.setSpellCheckerResults`. * editing/spelling/text-replacement-after-typing-to-word.html: Adopt `UIHelper.setSpellCheckerResults`. This allows us to enable the test on macOS WebKit2, since the only thing that prevented it from working before was the ability to `setSpellCheckerResults` in WebKit2. * platform/mac-wk2/TestExpectations: * resources/ui-helper.js: Add a `UIHelper` method to override the system spell checker with given results. (window.UIHelper.async setSpellCheckerResults): Canonical link: https://commits.webkit.org/228074@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-07 23:05:36 +00:00
Checking for issue on "orange,zz,apple."
PASS internals.markerRangeForNode(element.firstChild, misspellingData.marker, 0) became different from null
[macOS] Spelling errors in the middle of an inserted paragraph are not displayed https://bugs.webkit.org/show_bug.cgi?id=185584 <rdar://problem/38676081> Reviewed by Ryosuke Niwa. Source/WebCore: Currently when typing, we only consider the range of adjacent words when determining where to place spelling correction markers, even though we provide NSSpellChecker with the full context of the sentence (and get back results encompassing the full range). In macOS Mojave, NSSpellChecker may now return spell checking results that include correctly spelled words that are misused in the context of the sentence. This means that while typing a sentence, a different part of the sentence may gain or lose spelling markers as a result. To support this, WebKit needs to mark or unmark spelling corrections in the full range of the sentence whenever a full word is typed (since the context of other words within the sentence may have changed, resulting in different platform spellchecking results). In markMisspellingsAfterTypingToWord, we expand the spell checking range past the adjacent words so that it encompasses the largest subrange of the full sentence that includes the start of the typed word, and does not include any position that is under an element with `spellcheck=false`. This guarantees that we don't erroneously place spelling document markers under elements where spellchecking is disabled, while allowing for sentence retro corrections when spellchecking is enabled. However, this doesn't handle the case where an element with spellchecking disabled lies between a sentence retro correction range and the currently typed word. In the future, we could fix this by refactoring SpellCheckRequest to track a list of non-contiguous spelling correction ranges — see the FIXME in markMisspellingsAfterTypingToWord for more detail. Covered by 2 new layout tests, as well as an existing spell-checking test that should now be passing. Tests: editing/spelling/retro-correction-spelling-markers.html editing/spelling/spelling-markers-after-pasting-sentence.html * editing/Editor.cpp: (WebCore::Editor::markMisspellingsAfterTypingToWord): * testing/Internals.h: * testing/Internals.idl: Add an internal testing helper to determine whether retro sentence corrections are enabled. LayoutTests: Adds 2 new spellchecking tests, and refactors some existing tests. * editing/spelling/grammar-expected.txt: * editing/spelling/grammar.html: * editing/spelling/markers-expected.txt: * editing/spelling/markers.html: Tweaked so that these tests pass regardless of whether sentence retro correction is enabled or disabled. * editing/spelling/retro-correction-spelling-markers-expected.txt: Added. * editing/spelling/retro-correction-spelling-markers.html: Added. Tests that typing at the end of a sentence will mark other parts of the sentence as misspellings, if retro sentence correction is enabled. * editing/spelling/spelling-changed-text-expected.txt: * editing/spelling/spelling-changed-text.html: Tweaked to correctly wait for the marker range to become the expected value. * editing/spelling/spelling-markers-after-pasting-sentence-expected.txt: Added. * editing/spelling/spelling-markers-after-pasting-sentence.html: Added. Tests that after pasting a sentence with misspelled words, those misspelled words will be marked as misspellings. * platform/ios/TestExpectations: * platform/mac-wk1/TestExpectations: * platform/mac-wk2/TestExpectations: Canonical link: https://commits.webkit.org/201711@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-06-06 01:44:03 +00:00
PASS range.toString() is "orange,zz,apple."
[macOS] It should be possible to override spellchecking results in WebKitTestRunner https://bugs.webkit.org/show_bug.cgi?id=215290 Reviewed by Devin Rousso. Tools: Refactor `setSpellCheckerResults` so that it is on `UIScriptController` instead of `TestRunner`, such that it can be triggered asynchronously from a layout test. This allows the testing hook to work in WebKit2, where the swizzled spell checker is in the UI process. * DumpRenderTree/TestRunner.cpp: (TestRunner::staticFunctions): (setSpellCheckerResultsCallback): Deleted. * DumpRenderTree/TestRunner.h: * DumpRenderTree/ios/UIScriptControllerIOS.h: Add a method implementation stub for iOS. * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::setSpellCheckerResults): Deleted. * DumpRenderTree/mac/UIScriptControllerMac.h: * DumpRenderTree/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): * DumpRenderTree/win/TestRunnerWin.cpp: (TestRunner::setSpellCheckerLoggingEnabled): (TestRunner::setSpellCheckerResults): Deleted. * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * TestRunnerShared/UIScriptContext/UIScriptController.h: (WTR::UIScriptController::setSpellCheckerResults): * TestRunnerShared/cocoa/LayoutTestSpellChecker.h: * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestSpellChecker setResultsFromJSValue:inContext:]): (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Deleted. * WebKitTestRunner/ios/UIScriptControllerIOS.h: * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::platformResetStateToConsistentValues): Make sure that we uninstall the swizzled `LayoutTestSpellChecker` between tests. * WebKitTestRunner/mac/UIScriptControllerMac.h: * WebKitTestRunner/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): LayoutTests: * editing/spelling/markers-expected.txt: * editing/spelling/markers.html: Rewrite this layout test to use async-await, instead of asynchronously calling the recursive `done` function. Additionally, adopt `UIHelper.setSpellCheckerResults`. * editing/spelling/text-replacement-after-typing-to-word.html: Adopt `UIHelper.setSpellCheckerResults`. This allows us to enable the test on macOS WebKit2, since the only thing that prevented it from working before was the ability to `setSpellCheckerResults` in WebKit2. * platform/mac-wk2/TestExpectations: * resources/ui-helper.js: Add a `UIHelper` method to override the system spell checker with given results. (window.UIHelper.async setSpellCheckerResults): Canonical link: https://commits.webkit.org/228074@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-07 23:05:36 +00:00
Checking for issue on "orange,zz,apple."
PASS internals.markerRangeForNode(element.firstChild, misspellingData.marker, 0) became different from null
[macOS] Spelling errors in the middle of an inserted paragraph are not displayed https://bugs.webkit.org/show_bug.cgi?id=185584 <rdar://problem/38676081> Reviewed by Ryosuke Niwa. Source/WebCore: Currently when typing, we only consider the range of adjacent words when determining where to place spelling correction markers, even though we provide NSSpellChecker with the full context of the sentence (and get back results encompassing the full range). In macOS Mojave, NSSpellChecker may now return spell checking results that include correctly spelled words that are misused in the context of the sentence. This means that while typing a sentence, a different part of the sentence may gain or lose spelling markers as a result. To support this, WebKit needs to mark or unmark spelling corrections in the full range of the sentence whenever a full word is typed (since the context of other words within the sentence may have changed, resulting in different platform spellchecking results). In markMisspellingsAfterTypingToWord, we expand the spell checking range past the adjacent words so that it encompasses the largest subrange of the full sentence that includes the start of the typed word, and does not include any position that is under an element with `spellcheck=false`. This guarantees that we don't erroneously place spelling document markers under elements where spellchecking is disabled, while allowing for sentence retro corrections when spellchecking is enabled. However, this doesn't handle the case where an element with spellchecking disabled lies between a sentence retro correction range and the currently typed word. In the future, we could fix this by refactoring SpellCheckRequest to track a list of non-contiguous spelling correction ranges — see the FIXME in markMisspellingsAfterTypingToWord for more detail. Covered by 2 new layout tests, as well as an existing spell-checking test that should now be passing. Tests: editing/spelling/retro-correction-spelling-markers.html editing/spelling/spelling-markers-after-pasting-sentence.html * editing/Editor.cpp: (WebCore::Editor::markMisspellingsAfterTypingToWord): * testing/Internals.h: * testing/Internals.idl: Add an internal testing helper to determine whether retro sentence corrections are enabled. LayoutTests: Adds 2 new spellchecking tests, and refactors some existing tests. * editing/spelling/grammar-expected.txt: * editing/spelling/grammar.html: * editing/spelling/markers-expected.txt: * editing/spelling/markers.html: Tweaked so that these tests pass regardless of whether sentence retro correction is enabled or disabled. * editing/spelling/retro-correction-spelling-markers-expected.txt: Added. * editing/spelling/retro-correction-spelling-markers.html: Added. Tests that typing at the end of a sentence will mark other parts of the sentence as misspellings, if retro sentence correction is enabled. * editing/spelling/spelling-changed-text-expected.txt: * editing/spelling/spelling-changed-text.html: Tweaked to correctly wait for the marker range to become the expected value. * editing/spelling/spelling-markers-after-pasting-sentence-expected.txt: Added. * editing/spelling/spelling-markers-after-pasting-sentence.html: Added. Tests that after pasting a sentence with misspelled words, those misspelled words will be marked as misspellings. * platform/ios/TestExpectations: * platform/mac-wk1/TestExpectations: * platform/mac-wk2/TestExpectations: Canonical link: https://commits.webkit.org/201711@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-06-06 01:44:03 +00:00
PASS range.toString() is "orange,zz,apple"
[macOS] It should be possible to override spellchecking results in WebKitTestRunner https://bugs.webkit.org/show_bug.cgi?id=215290 Reviewed by Devin Rousso. Tools: Refactor `setSpellCheckerResults` so that it is on `UIScriptController` instead of `TestRunner`, such that it can be triggered asynchronously from a layout test. This allows the testing hook to work in WebKit2, where the swizzled spell checker is in the UI process. * DumpRenderTree/TestRunner.cpp: (TestRunner::staticFunctions): (setSpellCheckerResultsCallback): Deleted. * DumpRenderTree/TestRunner.h: * DumpRenderTree/ios/UIScriptControllerIOS.h: Add a method implementation stub for iOS. * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::setSpellCheckerResults): Deleted. * DumpRenderTree/mac/UIScriptControllerMac.h: * DumpRenderTree/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): * DumpRenderTree/win/TestRunnerWin.cpp: (TestRunner::setSpellCheckerLoggingEnabled): (TestRunner::setSpellCheckerResults): Deleted. * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * TestRunnerShared/UIScriptContext/UIScriptController.h: (WTR::UIScriptController::setSpellCheckerResults): * TestRunnerShared/cocoa/LayoutTestSpellChecker.h: * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestSpellChecker setResultsFromJSValue:inContext:]): (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Deleted. * WebKitTestRunner/ios/UIScriptControllerIOS.h: * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::platformResetStateToConsistentValues): Make sure that we uninstall the swizzled `LayoutTestSpellChecker` between tests. * WebKitTestRunner/mac/UIScriptControllerMac.h: * WebKitTestRunner/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): LayoutTests: * editing/spelling/markers-expected.txt: * editing/spelling/markers.html: Rewrite this layout test to use async-await, instead of asynchronously calling the recursive `done` function. Additionally, adopt `UIHelper.setSpellCheckerResults`. * editing/spelling/text-replacement-after-typing-to-word.html: Adopt `UIHelper.setSpellCheckerResults`. This allows us to enable the test on macOS WebKit2, since the only thing that prevented it from working before was the ability to `setSpellCheckerResults` in WebKit2. * platform/mac-wk2/TestExpectations: * resources/ui-helper.js: Add a `UIHelper` method to override the system spell checker with given results. (window.UIHelper.async setSpellCheckerResults): Canonical link: https://commits.webkit.org/228074@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-07 23:05:36 +00:00
Checking for no other issues on "I have a issue."
PASS internals.markerCountForNode(element.firstChild, oppositeMarker) became 0
[macOS] It should be possible to override spellchecking results in WebKitTestRunner https://bugs.webkit.org/show_bug.cgi?id=215290 Reviewed by Devin Rousso. Tools: Refactor `setSpellCheckerResults` so that it is on `UIScriptController` instead of `TestRunner`, such that it can be triggered asynchronously from a layout test. This allows the testing hook to work in WebKit2, where the swizzled spell checker is in the UI process. * DumpRenderTree/TestRunner.cpp: (TestRunner::staticFunctions): (setSpellCheckerResultsCallback): Deleted. * DumpRenderTree/TestRunner.h: * DumpRenderTree/ios/UIScriptControllerIOS.h: Add a method implementation stub for iOS. * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::setSpellCheckerResults): Deleted. * DumpRenderTree/mac/UIScriptControllerMac.h: * DumpRenderTree/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): * DumpRenderTree/win/TestRunnerWin.cpp: (TestRunner::setSpellCheckerLoggingEnabled): (TestRunner::setSpellCheckerResults): Deleted. * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * TestRunnerShared/UIScriptContext/UIScriptController.h: (WTR::UIScriptController::setSpellCheckerResults): * TestRunnerShared/cocoa/LayoutTestSpellChecker.h: * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestSpellChecker setResultsFromJSValue:inContext:]): (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Deleted. * WebKitTestRunner/ios/UIScriptControllerIOS.h: * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::platformResetStateToConsistentValues): Make sure that we uninstall the swizzled `LayoutTestSpellChecker` between tests. * WebKitTestRunner/mac/UIScriptControllerMac.h: * WebKitTestRunner/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): LayoutTests: * editing/spelling/markers-expected.txt: * editing/spelling/markers.html: Rewrite this layout test to use async-await, instead of asynchronously calling the recursive `done` function. Additionally, adopt `UIHelper.setSpellCheckerResults`. * editing/spelling/text-replacement-after-typing-to-word.html: Adopt `UIHelper.setSpellCheckerResults`. This allows us to enable the test on macOS WebKit2, since the only thing that prevented it from working before was the ability to `setSpellCheckerResults` in WebKit2. * platform/mac-wk2/TestExpectations: * resources/ui-helper.js: Add a `UIHelper` method to override the system spell checker with given results. (window.UIHelper.async setSpellCheckerResults): Canonical link: https://commits.webkit.org/228074@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-07 23:05:36 +00:00
Checking for no other issues on "I have a issue."
[WK1] editing/spelling/markers.html is failing on recent builds of macOS Mojave https://bugs.webkit.org/show_bug.cgi?id=187253 Reviewed by Tim Horton. Tools: Enhances and refactors LayoutTestSpellChecker, which was introduced in r233412. * DumpRenderTree/TestRunner.cpp: (setSpellCheckerResultsCallback): Rename setSpellCheckerTextReplacements to setSpellCheckerResults. (TestRunner::staticFunctions): (setSpellCheckerTextReplacementsCallback): Deleted. * DumpRenderTree/TestRunner.h: * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::setSpellCheckerResults): (TestRunner::setSpellCheckerTextReplacements): Deleted. * DumpRenderTree/win/TestRunnerWin.cpp: (TestRunner::setSpellCheckerResults): (TestRunner::setSpellCheckerTextReplacements): Deleted. * TestRunnerShared/cocoa/LayoutTestSpellChecker.h: * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestTextCheckingResult initWithType:range:replacement:details:]): (-[LayoutTestTextCheckingResult grammarDetails]): (-[LayoutTestSpellChecker reset]): (-[LayoutTestSpellChecker results]): (-[LayoutTestSpellChecker setResults:]): (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Add support for passing in a list of grammar correction detail ranges. Necessary for simulating grammar errors. (-[LayoutTestSpellChecker checkString:range:types:options:inSpellDocumentWithTag:orthography:wordCount:]): Tweaked to always call the superclass method. This ensures that we set the `orthography` and `wordCount` outpointers if applicable. (-[LayoutTestSpellChecker requestCheckingOfString:range:types:options:inSpellDocumentWithTag:completionHandler:]): Added support for simulating asynchronous spell checking. (-[LayoutTestTextCheckingResult initWithType:range:replacement:]): Deleted. (-[LayoutTestSpellChecker replacements]): Deleted. (-[LayoutTestSpellChecker setReplacements:]): Deleted. (-[LayoutTestSpellChecker setReplacementsFromJSObject:inContext:]): Deleted. LayoutTests: In recent builds of macOS Mojave, NSSpellChecker returns both grammar and spelling errors when asked to analyze the string "I have a issue.". While arguably correct, the change causes this existing layout test to fail due to one of the calls to `verifyUnexpectedMarkers` expecting either grammar markers and not spelling markers, or vice versa. To fix this, we can leverage the mechanism added in r233412 to simulate different results from the platform spellchecker, such that the test now exercises all combinations of grammar and spelling corrections observed on each macOS platform, regardless of the actual platform where the test is being run. This patch also enhances the capabilities of `LayoutTestSpellChecker`. See `Tools/ChangeLog` for more details. * editing/spelling/markers-expected.txt: * editing/spelling/markers.html: * editing/spelling/text-replacement-after-typing-to-word.html: Adjusted for a renamed TestRunner method. Canonical link: https://commits.webkit.org/202524@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233439 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-07-02 22:04:51 +00:00
PASS internals.markerCountForNode(element.firstChild, oppositeMarker) became 0
[macOS] It should be possible to override spellchecking results in WebKitTestRunner https://bugs.webkit.org/show_bug.cgi?id=215290 Reviewed by Devin Rousso. Tools: Refactor `setSpellCheckerResults` so that it is on `UIScriptController` instead of `TestRunner`, such that it can be triggered asynchronously from a layout test. This allows the testing hook to work in WebKit2, where the swizzled spell checker is in the UI process. * DumpRenderTree/TestRunner.cpp: (TestRunner::staticFunctions): (setSpellCheckerResultsCallback): Deleted. * DumpRenderTree/TestRunner.h: * DumpRenderTree/ios/UIScriptControllerIOS.h: Add a method implementation stub for iOS. * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::setSpellCheckerResults): Deleted. * DumpRenderTree/mac/UIScriptControllerMac.h: * DumpRenderTree/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): * DumpRenderTree/win/TestRunnerWin.cpp: (TestRunner::setSpellCheckerLoggingEnabled): (TestRunner::setSpellCheckerResults): Deleted. * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * TestRunnerShared/UIScriptContext/UIScriptController.h: (WTR::UIScriptController::setSpellCheckerResults): * TestRunnerShared/cocoa/LayoutTestSpellChecker.h: * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestSpellChecker setResultsFromJSValue:inContext:]): (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Deleted. * WebKitTestRunner/ios/UIScriptControllerIOS.h: * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::platformResetStateToConsistentValues): Make sure that we uninstall the swizzled `LayoutTestSpellChecker` between tests. * WebKitTestRunner/mac/UIScriptControllerMac.h: * WebKitTestRunner/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::setSpellCheckerResults): LayoutTests: * editing/spelling/markers-expected.txt: * editing/spelling/markers.html: Rewrite this layout test to use async-await, instead of asynchronously calling the recursive `done` function. Additionally, adopt `UIHelper.setSpellCheckerResults`. * editing/spelling/text-replacement-after-typing-to-word.html: Adopt `UIHelper.setSpellCheckerResults`. This allows us to enable the test on macOS WebKit2, since the only thing that prevented it from working before was the ability to `setSpellCheckerResults` in WebKit2. * platform/mac-wk2/TestExpectations: * resources/ui-helper.js: Add a `UIHelper` method to override the system spell checker with given results. (window.UIHelper.async setSpellCheckerResults): Canonical link: https://commits.webkit.org/228074@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-07 23:05:36 +00:00
Checking for no other issues on "zz."
PASS internals.markerCountForNode(element.firstChild, oppositeMarker) became 0
Update some layout test expected results https://bugs.webkit.org/show_bug.cgi?id=73755 Reviewed by Sam Weinig. * editing/spelling/markers-expected.txt: Added. We just forgot to check this in when the test was added, and the test is skipped on most platforms so that was not noticed. * fast/css/getComputedStyle/computed-style-without-renderer.html: Changed this test to share the list of properties to skip and the list of hidden properties. * fast/css/getComputedStyle/computed-style.html: Ditt. * fast/css/getComputedStyle/resources/property-names.js: Added. Besides the structural change the change is that CSS_GRID_LAYOUT properties are now in the list to skip. * platform/mac/accessibility/multiselect-list-reports-active-option-expected.txt: Added. Shows this test is failing on Mac, even though it is passing on Chromium. That needs a bug report. * platform/mac/fast/forms/input-placeholder-visibility-1-expected.txt: * platform/mac/fast/forms/input-placeholder-visibility-3-expected.txt: * platform/mac/fast/forms/textarea-placeholder-visibility-1-expected.txt: * platform/mac/fast/forms/textarea-placeholder-visibility-2-expected.txt: Updated these results now that we don't use relative positioning for placeholders any more. The original patch r101742 updated other platforms, including mac-snowleopard, but missed this one. * platform/mac/svg/css/getComputedStyle-basic-expected.txt: Removed. The Mac platform can share the platform-independent expected results as long as we skip the CSS_GRID_LAYOUT properties. * svg/css/getComputedStyle-basic.xhtml: Updated to skip the same properties that the tests in fast/css/getComputedStyle skip. Canonical link: https://commits.webkit.org/90404@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@101941 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-12-04 03:25:41 +00:00
PASS successfullyParsed is true
TEST COMPLETE
I have a issue.
zz.
orange,zz,apple.