class ActiveLinkTest
Tests active link JS behavior.
@group system
Hierarchy
- class \Drupal\Tests\system\FunctionalJavascript\ActiveLinkTest extends \Drupal\FunctionalJavascriptTests\WebDriverTestBase
Expanded class hierarchy of ActiveLinkTest
See also
Drupal.behaviors.activeLinks
File
-
core/
modules/ system/ tests/ src/ FunctionalJavascript/ ActiveLinkTest.php, line 16
Namespace
Drupal\Tests\system\FunctionalJavascriptView source
class ActiveLinkTest extends WebDriverTestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Ensures no JS error is thrown with query strings containing special chars.
*/
public function testQueryStringQuotes() : void {
$user = $this->createUser();
$this->drupalLogin($user);
$this->drupalGet($this->getSession()
->getCurrentUrl(), [
'query' => [
'foo' => "\"'[](){}*+~>|\\/:;,.!@#\$%^&-_=?<>",
],
]);
$this->failOnJavaScriptErrors();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.