Search for js

  1. Search 7.x for js
  2. Search 9.5.x for js
  3. Search 8.9.x for js
  4. Search 10.3.x for js
  5. Other projects
Title Object type File name Summary
JsOptimizer::optimize function core/lib/Drupal/Core/Asset/JsOptimizer.php Optimizes an asset.
JsOptimizer::__construct function core/lib/Drupal/Core/Asset/JsOptimizer.php Constructs a new JsOptimizer object.
JsOptimizerUnitTest class core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php Tests the JS asset optimizer.
JsOptimizerUnitTest.php file core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php
JsOptimizerUnitTest::$optimizer property core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php A JS asset optimizer.
JsOptimizerUnitTest::providerTestClean function core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php Provides data for the JS asset cleaning test.
JsOptimizerUnitTest::providerTestOptimize function core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php Provides data for the JS asset optimize test.
JsOptimizerUnitTest::setUp function core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php
JsOptimizerUnitTest::testClean function core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php Tests cleaning of a JS asset group containing 'type' => 'file'.
JsOptimizerUnitTest::testOptimize function core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php Tests cleaning of a JS asset group containing 'type' => 'file'.
JsTestingAjaxRequestTestHooks class core/modules/system/tests/modules/js_testing_ajax_request_test/src/Hook/JsTestingAjaxRequestTestHooks.php Hook implementations for js_testing_ajax_request_test.
JsTestingAjaxRequestTestHooks.php file core/modules/system/tests/modules/js_testing_ajax_request_test/src/Hook/JsTestingAjaxRequestTestHooks.php
JsTestingAjaxRequestTestHooks::pageAttachments function core/modules/system/tests/modules/js_testing_ajax_request_test/src/Hook/JsTestingAjaxRequestTestHooks.php Implements hook_page_attachments().
JsTestingLogTestHooks class core/modules/system/tests/modules/js_testing_log_test/src/Hook/JsTestingLogTestHooks.php Hook implementations for js_testing_log_test.
JsTestingLogTestHooks.php file core/modules/system/tests/modules/js_testing_log_test/src/Hook/JsTestingLogTestHooks.php
JsTestingLogTestHooks::jsSettingsAlter function core/modules/system/tests/modules/js_testing_log_test/src/Hook/JsTestingLogTestHooks.php Implements hook_js_settings_alter().
JsTestingLogTestHooks::pageAttachments function core/modules/system/tests/modules/js_testing_log_test/src/Hook/JsTestingLogTestHooks.php Implements hook_page_attachments().
JSTranslationTest class core/modules/ckeditor5/tests/src/FunctionalJavascript/JSTranslationTest.php Tests for CKEditor 5 plugins using Drupal's translation system.
JSTranslationTest.php file core/modules/ckeditor5/tests/src/FunctionalJavascript/JSTranslationTest.php
JSTranslationTest::$modules property core/modules/ckeditor5/tests/src/FunctionalJavascript/JSTranslationTest.php Modules to install.
JSTranslationTest::setUp function core/modules/ckeditor5/tests/src/FunctionalJavascript/JSTranslationTest.php
JSTranslationTest::test function core/modules/ckeditor5/tests/src/FunctionalJavascript/JSTranslationTest.php Integration test to ensure that CKEditor 5 Plugins translations are loaded.
JSWebAssert class core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Defines a class with methods for asserting presence of elements during tests.
JSWebAssert.php file core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php
JSWebAssert::assertEscaped function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Passes if the raw text IS found escaped on the loaded page.
JSWebAssert::assertExpectedAjaxRequest function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that an AJAX request has been completed.
JSWebAssert::assertNoElementAfterWait function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that no matching element exists on the page after a wait.
JSWebAssert::assertNoEscaped function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Passes if the raw text IS NOT found escaped on the loaded page.
JSWebAssert::assertNotVisibleInViewport function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Tests that a node, or its specific corner, is not visible in the viewport.
JSWebAssert::assertVisibleInViewport function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Tests that a node, or its specific corner, is visible in the viewport.
JSWebAssert::assertWaitOnAjaxRequest function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for AJAX request to be completed.
JSWebAssert::buildJavascriptStatusMessageSelector function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Builds a xpath selector for a message with given type and text.
JSWebAssert::checkNodeVisibilityInViewport function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Check the visibility of a node, or its specific corner.
JSWebAssert::escapeHtml function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Escapes HTML for testing.
JSWebAssert::isExceptionNotClickable function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Determines if an exception is due to an element not being clickable.
JSWebAssert::statusMessageContains function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that a status message containing a given string exists.
JSWebAssert::statusMessageContainsAfterWait function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that a status message containing given string exists after wait.
JSWebAssert::statusMessageExistsAfterWait function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that a status message exists after wait.
JSWebAssert::statusMessageNotContains function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that a status message containing a given string does not exist.
JSWebAssert::statusMessageNotContainsAfterWait function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that no status message containing given string exists after wait.
JSWebAssert::statusMessageNotExistsAfterWait function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that a status message does not exist after wait.
JSWebAssert::waitForButton function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for the button specified by the locator and returns it.
JSWebAssert::waitForElement function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for the specified selector and returns it when available.
JSWebAssert::waitForElementRemoved function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Looks for the specified selector and returns TRUE when it is unavailable.
JSWebAssert::waitForElementVisible function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for the specified selector and returns it when available and visible.
JSWebAssert::waitForField function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for a field with specified locator and returns it when available.
JSWebAssert::waitForHelper function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Wraps waits in a function to catch curl exceptions to continue waiting.
JSWebAssert::waitForId function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for an element by its id and returns it when available.
JSWebAssert::waitForLink function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for a link with specified locator and returns it when available.
JSWebAssert::waitForText function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for the specified text and returns TRUE when it is available.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.