public function JavascriptEvaluationTest::provideExecutedScript in Zircon Profile 8.0
Same name and namespace in other branches
- 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
Namespace
Behat\Mink\Tests\Driver\JsCode
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";})();',
),
);
}