Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / tests / Drupal / FunctionalJavascriptTests / JSWebAssert.php
index 81d379f915bf82e5182a7e7b73d9f5f2108f38ec..281cb783487a11d2a930a7abcebdeac444101c5b 100644 (file)
@@ -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.