From 589cf3248b19b4d4c716df4fc1a27e50f7477a2d Mon Sep 17 00:00:00 2001 From: David Grudl Date: Fri, 3 May 2024 20:39:32 +0200 Subject: [PATCH] tester 2.5.3 --- tester/bg/helpers.texy | 5 ++++- tester/cs/helpers.texy | 5 ++++- tester/de/helpers.texy | 5 ++++- tester/el/helpers.texy | 5 ++++- tester/en/helpers.texy | 5 ++++- tester/es/helpers.texy | 5 ++++- tester/fr/helpers.texy | 5 ++++- tester/hu/helpers.texy | 5 ++++- tester/it/helpers.texy | 5 ++++- tester/pl/helpers.texy | 5 ++++- tester/pt/helpers.texy | 5 ++++- tester/ro/helpers.texy | 5 ++++- tester/ru/helpers.texy | 5 ++++- tester/sl/helpers.texy | 5 ++++- tester/tr/helpers.texy | 5 ++++- tester/uk/helpers.texy | 5 ++++- 16 files changed, 64 insertions(+), 16 deletions(-) diff --git a/tester/bg/helpers.texy b/tester/bg/helpers.texy index 4ece019d59..2f173d8c93 100644 --- a/tester/bg/helpers.texy +++ b/tester/bg/helpers.texy @@ -7,7 +7,7 @@ DomQuery .[#toc-domquery] `Tester\DomQuery` е клас, разширяващ `SimpleXMLElement` с методи за улесняване на тестването на HTML или XML съдържание. ```php -# let's have an HTML document in $html that we load +# в $html е низ с HTML документа, а в $dom получаваме кореновия елемент $dom = Tester\DomQuery::fromHtml($html); # we can test the presence of elements using CSS selectors @@ -17,6 +17,9 @@ Assert::true($dom->has('input[type="submit"]')); # or select elements as array of DomQuery $elems = $dom->find('input[data-autocomplete]'); + +# или проверете дали елементът отговаря на селектора (от версия 2.5.3) +Assert::true($elems[0]->matches('[type="submit"]')); ``` diff --git a/tester/cs/helpers.texy b/tester/cs/helpers.texy index d418974dc0..4027ad0888 100644 --- a/tester/cs/helpers.texy +++ b/tester/cs/helpers.texy @@ -7,7 +7,7 @@ DomQuery `Tester\DomQuery` je třída rozšiřující `SimpleXMLElement` o metody usnadňující testování obsahu HTML nebo XML. ```php -# mějme v $html HTML dokument, který načteme +# v $html je řetězec s HTML dokumentem, v $dom získáme kořenový element $dom = Tester\DomQuery::fromHtml($html); # můžeme testovat přítomnost elementů podle CSS selektorů @@ -17,6 +17,9 @@ Assert::true($dom->has('input[type="submit"]')); # nebo vybrat elementy jako pole DomQuery $elems = $dom->find('input[data-autocomplete]'); + +# nebo ověřovat, zda element vyhovuje selektoru (od verze 2.5.3) +Assert::true($elems[0]->matches('[type="submit"]')); ``` diff --git a/tester/de/helpers.texy b/tester/de/helpers.texy index 3428c3427f..0451557d1a 100644 --- a/tester/de/helpers.texy +++ b/tester/de/helpers.texy @@ -7,7 +7,7 @@ DomQuery `Tester\DomQuery` ist eine Klasse, die `SimpleXMLElement` mit Methoden erweitert, die das Testen von HTML- oder XML-Inhalten erleichtern. ```php -# let's have an HTML document in $html that we load +# $html ist ein String mit dem HTML-Dokument, $dom ist das Root-Element. $dom = Tester\DomQuery::fromHtml($html); # we can test the presence of elements using CSS selectors @@ -17,6 +17,9 @@ Assert::true($dom->has('input[type="submit"]')); # or select elements as array of DomQuery $elems = $dom->find('input[data-autocomplete]'); + +# oder überprüfen, ob das Element mit dem Selektor übereinstimmt (ab Version 2.5.3) +Assert::true($elems[0]->matches('[type="submit"]')); ``` diff --git a/tester/el/helpers.texy b/tester/el/helpers.texy index 1a62106e61..9063fd3527 100644 --- a/tester/el/helpers.texy +++ b/tester/el/helpers.texy @@ -7,7 +7,7 @@ DomQuery .[#toc-domquery] `Tester\DomQuery` είναι μια κλάση που επεκτείνει το `SimpleXMLElement` με μεθόδους που διευκολύνουν τον έλεγχο περιεχομένου HTML ή XML. ```php -# let's have an HTML document in $html that we load +# στο $html είναι μια συμβολοσειρά με το έγγραφο HTML, στο $dom παίρνουμε το στοιχείο ρίζα $dom = Tester\DomQuery::fromHtml($html); # we can test the presence of elements using CSS selectors @@ -17,6 +17,9 @@ Assert::true($dom->has('input[type="submit"]')); # or select elements as array of DomQuery $elems = $dom->find('input[data-autocomplete]'); + +# ή να επαληθεύσει ότι το στοιχείο ταιριάζει με τον επιλογέα (από την έκδοση 2.5.3) +Assert::true($elems[0]->matches('[type="submit"]')); ``` diff --git a/tester/en/helpers.texy b/tester/en/helpers.texy index 63956a79ed..937d3c6527 100644 --- a/tester/en/helpers.texy +++ b/tester/en/helpers.texy @@ -7,7 +7,7 @@ DomQuery `Tester\DomQuery` is a class that extends `SimpleXMLElement` with methods that make it easier to test HTML or XML content. ```php -# let's have an HTML document in $html that we load +# in $html is a string with the HTML document, in $dom we get the root element $dom = Tester\DomQuery::fromHtml($html); # we can test the presence of elements using CSS selectors @@ -17,6 +17,9 @@ Assert::true($dom->has('input[type="submit"]')); # or select elements as array of DomQuery $elems = $dom->find('input[data-autocomplete]'); + +# or verify that the element matches the selector (from version 2.5.3) +Assert::true($elems[0]->matches('[type="submit"]')); ``` diff --git a/tester/es/helpers.texy b/tester/es/helpers.texy index 8293e79f4b..20f568e17d 100644 --- a/tester/es/helpers.texy +++ b/tester/es/helpers.texy @@ -7,7 +7,7 @@ DomQuery `Tester\DomQuery` es una clase que amplía `SimpleXMLElement` con métodos que facilitan la comprobación de contenidos HTML o XML. ```php -# tengamos un documento HTML en $html que cargamos +# en $html es una cadena con el documento HTML, en $dom obtenemos el elemento raíz $dom = Tester\DomQuery::fromHtml($html); # podemos comprobar la presencia de elementos utilizando selectores CSS @@ -17,6 +17,9 @@ Assert::true($dom->has('input[type="submit"]')); # o seleccionar elementos como array de DomQuery $elems = $dom->find('input[data-autocomplete]'); + +# o verificar que el elemento coincide con el selector (a partir de la versión 2.5.3) +Assert::true($elems[0]->matches('[type="submit"]')); ``` diff --git a/tester/fr/helpers.texy b/tester/fr/helpers.texy index bfa3af317e..48ad49c8bf 100644 --- a/tester/fr/helpers.texy +++ b/tester/fr/helpers.texy @@ -7,7 +7,7 @@ DomQuery `Tester\DomQuery` est une classe qui étend `SimpleXMLElement` avec des méthodes qui facilitent le test du contenu HTML ou XML. ```php -# let's have an HTML document in $html that we load +# dans $html est une chaîne avec le document HTML, dans $dom nous obtenons l'élément racine $dom = Tester\DomQuery::fromHtml($html); # we can test the presence of elements using CSS selectors @@ -17,6 +17,9 @@ Assert::true($dom->has('input[type="submit"]')); # or select elements as array of DomQuery $elems = $dom->find('input[data-autocomplete]'); + +# ou vérifier que l'élément correspond au sélecteur (à partir de la version 2.5.3) +Assert::true($elems[0]->matches('[type="submit"]')); ``` diff --git a/tester/hu/helpers.texy b/tester/hu/helpers.texy index bf2f868a77..6312705ce2 100644 --- a/tester/hu/helpers.texy +++ b/tester/hu/helpers.texy @@ -7,7 +7,7 @@ DomQuery .[#toc-domquery] `Tester\DomQuery` egy olyan osztály, amely a `SimpleXMLElement` címet bővíti olyan metódusokkal, amelyek megkönnyítik a HTML- vagy XML-tartalom tesztelését. ```php -# let's have an HTML document in $html that we load +# a $html-ben egy karakterlánc a HTML dokumentummal, a $dom-ban pedig a gyökérelemet kapjuk meg. $dom = Tester\DomQuery::fromHtml($html); # we can test the presence of elements using CSS selectors @@ -17,6 +17,9 @@ Assert::true($dom->has('input[type="submit"]')); # or select elements as array of DomQuery $elems = $dom->find('input[data-autocomplete]'); + +# vagy ellenőrizze, hogy az elem megfelel-e a szelektornak (a 2.5.3. verziótól) +Assert::true($elems[0]->matches('[type="submit"]')); ``` diff --git a/tester/it/helpers.texy b/tester/it/helpers.texy index 24537ac55e..f9674eb746 100644 --- a/tester/it/helpers.texy +++ b/tester/it/helpers.texy @@ -7,7 +7,7 @@ DomQuery .[#toc-domquery] `Tester\DomQuery` è una classe che estende `SimpleXMLElement` con metodi che facilitano il test di contenuti HTML o XML. ```php -# let's have an HTML document in $html that we load +# in $html c'è una stringa con il documento HTML, in $dom c'è l'elemento root $dom = Tester\DomQuery::fromHtml($html); # we can test the presence of elements using CSS selectors @@ -17,6 +17,9 @@ Assert::true($dom->has('input[type="submit"]')); # or select elements as array of DomQuery $elems = $dom->find('input[data-autocomplete]'); + +# o verificare che l'elemento corrisponda al selettore (dalla versione 2.5.3) +Assert::true($elems[0]->matches('[type="submit"]')); ``` diff --git a/tester/pl/helpers.texy b/tester/pl/helpers.texy index c1bc600fb1..87c0d1ab10 100644 --- a/tester/pl/helpers.texy +++ b/tester/pl/helpers.texy @@ -7,7 +7,7 @@ DomQuery .[#toc-domquery] `Tester\DomQuery` jest klasą rozszerzającą `SimpleXMLElement` o metody ułatwiające testowanie zawartości HTML lub XML. ```php -# mějme v $html HTML dokument, který načteme +# w $html jest łańcuch z dokumentem HTML, w $dom otrzymujemy element główny $dom = Tester\DomQuery::fromHtml($html); # můžeme testovat přítomnost elementů podle CSS selektorů @@ -17,6 +17,9 @@ Assert::true($dom->has('input[type="submit"]')); # nebo vybrat elementy jako pole DomQuery $elems = $dom->find('input[data-autocomplete]'); + +# lub sprawdzić, czy element pasuje do selektora (od wersji 2.5.3) +Assert::true($elems[0]->matches('[type="submit"]')); ``` diff --git a/tester/pt/helpers.texy b/tester/pt/helpers.texy index 9e52095a31..2fdc8a72b0 100644 --- a/tester/pt/helpers.texy +++ b/tester/pt/helpers.texy @@ -7,7 +7,7 @@ DomQuery .[#toc-domquery] `Tester\DomQuery` é uma classe que se estende `SimpleXMLElement` com métodos que facilitam o teste de conteúdo HTML ou XML. ```php -# let's have an HTML document in $html that we load +# em $html é uma string com o documento HTML, em $dom obtemos o elemento raiz $dom = Tester\DomQuery::fromHtml($html); # we can test the presence of elements using CSS selectors @@ -17,6 +17,9 @@ Assert::true($dom->has('input[type="submit"]')); # or select elements as array of DomQuery $elems = $dom->find('input[data-autocomplete]'); + +# ou verificar se o elemento corresponde ao seletor (a partir da versão 2.5.3) +Assert::true($elems[0]->matches('[type="submit"]')); ``` diff --git a/tester/ro/helpers.texy b/tester/ro/helpers.texy index df0565ba97..7f93e9a4df 100644 --- a/tester/ro/helpers.texy +++ b/tester/ro/helpers.texy @@ -7,7 +7,7 @@ DomQuery .[#toc-domquery] `Tester\DomQuery` este o clasă care extinde `SimpleXMLElement` cu metode care facilitează testarea conținutului HTML sau XML. ```php -# let's have an HTML document in $html that we load +# în $html este un șir de caractere cu documentul HTML, în $dom obținem elementul rădăcină $dom = Tester\DomQuery::fromHtml($html); # we can test the presence of elements using CSS selectors @@ -17,6 +17,9 @@ Assert::true($dom->has('input[type="submit"]')); # or select elements as array of DomQuery $elems = $dom->find('input[data-autocomplete]'); + +# sau verifică dacă elementul se potrivește cu selectorul (din versiunea 2.5.3) +Assert::true($elems[0]->matches('[type="submit"]')); ``` diff --git a/tester/ru/helpers.texy b/tester/ru/helpers.texy index 81f6692992..ce17cc0fe1 100644 --- a/tester/ru/helpers.texy +++ b/tester/ru/helpers.texy @@ -7,7 +7,7 @@ DomQuery `Tester\DomQuery` это класс, расширяющий `SimpleXMLElement` с методами, облегчающими тестирование содержимого HTML или XML. ```php -# let's have an HTML document in $html that we load +# в $html - строка с HTML-документом, в $dom - корневой элемент $dom = Tester\DomQuery::fromHtml($html); # we can test the presence of elements using CSS selectors @@ -17,6 +17,9 @@ Assert::true($dom->has('input[type="submit"]')); # or select elements as array of DomQuery $elems = $dom->find('input[data-autocomplete]'); + +# или проверьте, соответствует ли элемент селектору (начиная с версии 2.5.3) +Assert::true($elems[0]->matches('[type="submit"]')); ``` diff --git a/tester/sl/helpers.texy b/tester/sl/helpers.texy index 2a27dcac2c..9ca0cf7705 100644 --- a/tester/sl/helpers.texy +++ b/tester/sl/helpers.texy @@ -7,7 +7,7 @@ DomQuery .[#toc-domquery] `Tester\DomQuery` je razred, ki razširja `SimpleXMLElement` z metodami, ki olajšajo testiranje vsebine HTML ali XML. ```php -# let's have an HTML document in $html that we load +# v $html je niz z dokumentom HTML, v $dom dobimo korenski element $dom = Tester\DomQuery::fromHtml($html); # we can test the presence of elements using CSS selectors @@ -17,6 +17,9 @@ Assert::true($dom->has('input[type="submit"]')); # or select elements as array of DomQuery $elems = $dom->find('input[data-autocomplete]'); + +# ali preverite, ali element ustreza izbirniku (od različice 2.5.3) +Assert::true($elems[0]->matches('[type="submit"]')); ``` diff --git a/tester/tr/helpers.texy b/tester/tr/helpers.texy index 67c2100649..dd4834f341 100644 --- a/tester/tr/helpers.texy +++ b/tester/tr/helpers.texy @@ -7,7 +7,7 @@ DomQuery .[#toc-domquery] `Tester\DomQuery` HTML veya XML içeriğini test etmeyi kolaylaştıran yöntemlerle `SimpleXMLElement` adresini genişleten bir sınıftır. ```php -# let's have an HTML document in $html that we load +# in $html HTML belgesini içeren bir dizedir, $dom içinde kök öğeyi alırız $dom = Tester\DomQuery::fromHtml($html); # we can test the presence of elements using CSS selectors @@ -17,6 +17,9 @@ Assert::true($dom->has('input[type="submit"]')); # or select elements as array of DomQuery $elems = $dom->find('input[data-autocomplete]'); + +# veya öğenin seçiciyle eşleştiğini doğrulayın (2.5.3 sürümünden itibaren) +Assert::true($elems[0]->matches('[type="submit"]')); ``` diff --git a/tester/uk/helpers.texy b/tester/uk/helpers.texy index d39955e840..36b74139bb 100644 --- a/tester/uk/helpers.texy +++ b/tester/uk/helpers.texy @@ -7,7 +7,7 @@ DomQuery .[#toc-domquery] `Tester\DomQuery` це клас, що розширює `SimpleXMLElement` з методами, які полегшують тестування вмісту HTML або XML. ```php -# let's have an HTML document in $html that we load +# в $html знаходиться рядок з HTML-документом, в $dom ми отримуємо кореневий елемент $dom = Tester\DomQuery::fromHtml($html); # we can test the presence of elements using CSS selectors @@ -17,6 +17,9 @@ Assert::true($dom->has('input[type="submit"]')); # or select elements as array of DomQuery $elems = $dom->find('input[data-autocomplete]'); + +# або перевірка відповідності елемента селектору (починаючи з версії 2.5.3) +Assert::true($elems[0]->matches('[type="submit"]')); ```