protected function TestBase::scrollToBottom in The CodeMirror Editor 8
Scrolls down the page.
2 calls to TestBase::scrollToBottom()
- FilterTest::testFilter in tests/
src/ FunctionalJavascript/ FilterTest.php - Test callback.
- TextEditorTest::testTextEditor in tests/
src/ FunctionalJavascript/ TextEditorTest.php - Test callback.
File
- tests/
src/ FunctionalJavascript/ TestBase.php, line 186
Class
- TestBase
- Base class for CodeMirror editor tests.
Namespace
Drupal\Tests\codemirror_editor\FunctionalJavascriptCode
protected function scrollToBottom() {
$this
->getSession()
->getDriver()
->evaluateScript('window.scrollTo(0, document.body.scrollHeight)');
}