public function JavascriptEvaluationTest::provideExecutedScript in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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";})();',
),
);
}