You are here

public function JavascriptEvaluationTest::provideExecutedScript in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/driver-testsuite/tests/Js/JavascriptEvaluationTest.php \Behat\Mink\Tests\Driver\Js\JavascriptEvaluationTest::provideExecutedScript()

File

vendor/behat/mink/driver-testsuite/tests/Js/JavascriptEvaluationTest.php, line 50

Class

JavascriptEvaluationTest

Namespace

Behat\Mink\Tests\Driver\Js

Code

public function provideExecutedScript() {
  return array(
    array(
      'document.querySelector("h1").textContent = "Hello world"',
    ),
    array(
      'document.querySelector("h1").textContent = "Hello world";',
    ),
    array(
      'function () {document.querySelector("h1").textContent = "Hello world";}()',
    ),
    array(
      'function () {document.querySelector("h1").textContent = "Hello world";}();',
    ),
    array(
      '(function () {document.querySelector("h1").textContent = "Hello world";})()',
    ),
    array(
      '(function () {document.querySelector("h1").textContent = "Hello world";})();',
    ),
  );
}