X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FFunctionalJavascriptTests%2FJSWebAssert.php;h=281cb783487a11d2a930a7abcebdeac444101c5b;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=81d379f915bf82e5182a7e7b73d9f5f2108f38ec;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php b/web/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php index 81d379f91..281cb7834 100644 --- a/web/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php +++ b/web/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php @@ -64,7 +64,7 @@ JS; public function waitForElement($selector, $locator, $timeout = 10000) { $page = $this->session->getPage(); - $result = $page->waitFor($timeout / 1000, function() use ($page, $selector, $locator) { + $result = $page->waitFor($timeout / 1000, function () use ($page, $selector, $locator) { return $page->find($selector, $locator); }); @@ -90,7 +90,7 @@ JS; public function waitForElementVisible($selector, $locator, $timeout = 10000) { $page = $this->session->getPage(); - $result = $page->waitFor($timeout / 1000, function() use ($page, $selector, $locator) { + $result = $page->waitFor($timeout / 1000, function () use ($page, $selector, $locator) { $element = $page->find($selector, $locator); if (!empty($element) && $element->isVisible()) { return $element; @@ -172,7 +172,7 @@ JS; } /** - * Test that a node, or it's specific corner, is visible in the viewport. + * Test that a node, or its specific corner, is visible in the viewport. * * Note: Always set the viewport size. This can be done with a PhantomJS * startup parameter or in your test with \Behat\Mink\Session->resizeWindow(). @@ -255,7 +255,7 @@ JS; } /** - * Check the visibility of a node, or it's specific corner. + * Check the visibility of a node, or its specific corner. * * @param \Behat\Mink\Element\NodeElement $node * A valid node.