| /plugin/multiselect/_test/ |
| D | syntax.test.php | 24 $mselector = pq("span.multiselector",$doc); 26 $this->assertTrue(pq("span",$mselector)->length === 4); 27 $this->assertEquals('a',trim(pq("span",$mselector)->eq(0)->text())); 28 $this->assertEquals('b',trim(pq("span",$mselector)->eq(1)->text())); 29 $this->assertEquals('c',trim(pq("span",$mselector)->eq(2)->text())); 30 $this->assertEquals('d',trim(pq("span",$mselector)->eq(3)->text())); 32 $this->assertEquals('a',trim(pq("span.multismiley",$doc)->text())); 45 $mselector = pq("span.multiselector",$doc); 47 $this->assertTrue(pq("span",$mselector)->length === 4); 48 $this->assertEquals('a a',trim(pq("span",$mselector)->eq(0)->text())); [all …]
|
| /plugin/bureaucracyau/_test/ |
| D | syntax.test.php | 16 $this->assertEquals(1, pq('form.bureaucracyau__plugin', $doc)->length); 17 $this->assertEquals(6, pq('form.bureaucracyau__plugin fieldset', $doc)->length); 28 $this->assertEquals(3, pq('option', $select)->length); 29 $this->assertEquals(1, pq('option:selected', $select)->length); 30 $this->assertEquals('Peaches', pq('option:selected', $select)->val()); 33 $this->assertEquals(1, pq('p:contains(Some static text)', $doc)->length); 37 $this->assertEquals('1', pq('input[type=hidden][value=0]', $cb->parent())->length); 46 $this->assertEquals(1, pq('button[type=submit]:contains(Submit Query)')->length); 57 $this->assertEquals(0, pq('bold', $doc)->length); 62 $field = pq('form.bureaucracyau__plugin label span:contains(' . $name . ')', $doc); [all …]
|
| /plugin/bureaucracy-au/_test/ |
| D | syntax.test.php | 16 $this->assertEquals(1, pq('form.bureaucracyau__plugin', $doc)->length); 17 $this->assertEquals(6, pq('form.bureaucracyau__plugin fieldset', $doc)->length); 28 $this->assertEquals(3, pq('option', $select)->length); 29 $this->assertEquals(1, pq('option:selected', $select)->length); 30 $this->assertEquals('Peaches', pq('option:selected', $select)->val()); 33 $this->assertEquals(1, pq('p:contains(Some static text)', $doc)->length); 37 $this->assertEquals('1', pq('input[type=hidden][value=0]', $cb->parent())->length); 46 $this->assertEquals(1, pq('button[type=submit]:contains(Submit Query)')->length); 57 $this->assertEquals(0, pq('bold', $doc)->length); 62 $field = pq('form.bureaucracyau__plugin label span:contains(' . $name . ')', $doc); [all …]
|
| /plugin/tagfilter/_test/ |
| D | syntax.test.php | 29 $form = pq('form[data-plugin=tagfilter]', $doc); 32 $select = pq('select', $form); 46 $options = pq('option', $select->eq(0)); 50 $options = pq('option', $select->eq(1)); 55 $options = pq('option', $select->eq(2)); 69 $form = pq('form[data-plugin=tagfilter]', $doc); 70 $select = pq('select', $form); 74 $options = pq('option', $select->eq(0)); 88 $form = pq('form[data-plugin=tagfilter]', $doc); 90 $select = pq('select', $form); [all …]
|
| /plugin/data-au/_test/ |
| D | syntax_plugin_data_entry.test.php | 342 $this->assertEquals(1, pq('div.inline.dataauplugin_entry.projects', $doc)->length); 343 $this->assertEquals(1, pq('dl dt.type')->length); 344 $this->assertEquals(1, pq('dl dd.type')->length); 345 $this->assertEquals(1, pq('dl dt.volume')->length); 346 $this->assertEquals(1, pq('dl dd.volume')->length); 347 $this->assertEquals(1, pq('dl dt.employee')->length); 348 $this->assertEquals(1, pq('dl dd.employee')->length); 349 $this->assertEquals(1, pq('dl dt.customer')->length); 350 $this->assertEquals(1, pq('dl dd.customer')->length); 351 $this->assertEquals(1, pq('dl dt.deadline')->length); [all …]
|
| /plugin/rowmove/_test/ |
| D | ajax.test.php | 24 $this->assertEquals(pq("td",$doc)->get(0)->textContent, 'row1'); 25 $this->assertEquals(pq("td",$doc)->get(2)->textContent, 'row2'); 43 $selector = pq("span.rowmove",$doc); 45 $this->assertTrue(pq("img",$selector)->length === 4); 47 $this->assertEquals(pq("td",$doc)->get(0)->textContent, 'row2'); 48 $this->assertEquals(pq("td",$doc)->get(2)->textContent, 'row1');
|
| D | syntax.test.php | 24 $selector = pq("span.rowmove",$doc); 26 $this->assertTrue(pq("img",$selector)->length === 4);
|
| /plugin/pagequery/ |
| D | syntax.php | 246 $pq = new PageQuery($lang); 254 $results = $pq->pageSearch($query); 261 [$query, $incl_ns, $excl_ns] = $pq->parseNamespaceQuery($query); 269 $results = $pq->pageLookup($query, $data['fullregex'], $incl_ns, $excl_ns); 277 $results = $pq->validatePages($results, $data['hidestart'], $data['maxns']); 279 [$sort_array, $sort_opts, $group_opts] = $pq->buildSortingArray($results, $data); 282 $sort_array = $pq->filterMetadata($sort_array, $data['filter']); 293 $pq->msort($sort_array, $sort_opts); 305 $sorted_results = $pq->mgroup($sort_array, $keys, $group_opts); 307 … $renderer->doc .= $pq->renderAsHtml($data['layout'], $sorted_results, $data, $count); [all …]
|
| /plugin/structautolink/_test/ |
| D | RendererTest.php | 70 $pq = (new \DOMWrap\Document())->html($result); 73 $pq = \phpQuery::newDocumentHTML($result); 76 $this->assertEquals(2, $pq->find('a')->count()); 77 $this->assertEquals('Künstliche Intelligenz', $pq->find('a')->eq(0)->text()); 78 $this->assertEquals('Machine Learning', $pq->find('a')->eq(1)->text());
|
| /plugin/navi/_test/ |
| D | BasicListTest.php | 69 $pq = (new \DOMWrap\Document())->html($actualHTML); 72 $pq = \phpQuery::newDocumentHTML($actualHTML); 76 foreach ($pq->find('a') as $page) { 81 foreach ($pq->find('li.open > div > a, li.open > div > span > a') as $page) { 86 foreach ($pq->find('li.close > div > a, li.close > div > span > a') as $page) {
|
| D | ExternalLinksTest.php | 43 $pq = (new \DOMWrap\Document())->html($actualHTML); 46 $pq = \phpQuery::newDocumentHTML($actualHTML); 50 foreach ($pq->find('a') as $page) { 55 foreach ($pq->find('li.open > div > a, li.open > div > span > a') as $page) { 60 foreach ($pq->find('li.close > div > a, li.close > div > span > a') as $page) {
|
| /plugin/datepicker/_test/ |
| D | syntax.test.php | 30 $mselector = pq("span.datepicker",$doc); 32 $mselector = pq("p",$doc); 44 $mselector = pq("span.datepicker",$doc); 64 $mselector = pq("span.weekpicker",$doc); 66 $mselector = pq("p",$doc); 77 $mselector = pq("span.weekpicker",$doc); 97 $mselector = pq("span.datepicker",$doc); 118 $mselector = pq("span.weekpicker",$doc);
|
| D | ajax.test.php | 25 …$this->assertEquals(plugin_load('action', 'datepicker')->getConf('emptyStringDate'), pq("span.date… 42 $this->assertEquals('2018-01-01', pq("span.datepicker",$doc)->get(0)->textContent); 67 …$this->assertEquals(plugin_load('action', 'datepicker')->getConf('emptyStringWeek'), pq("span.week… 68 $this->assertEquals('02/18', pq("span.weekpicker",$doc)->get(1)->textContent);
|
| /plugin/scrape/ |
| D | syntax.php | 137 $pq = $doc->find($data['query']); 140 $pq->find('li')->wrapInner('<div class="li" />'); 143 $pq->find('table')->addClass('inline')->wrap('<div class="table" />'); 146 foreach ($pq->find('a') as $link) { 167 $html .= $pq->html(); 169 $pq->each(function ($node) use (&$html) {
|
| /plugin/struct/_test/action/ |
| H A D | DiffTest.php | 72 $pq = $response->queryHTML('table.diff_sidebyside'); 73 $this->assertEquals(1, $pq->count()); 75 $added = $pq->find('td.diff-addedline'); 76 $deleted = $pq->find('td.diff-deletedline');
|
| /plugin/backlinks2/_test/ |
| D | syntax_include.test.php | 89 pq('#plugin__backlinks', $doc)->length, 93 $wikilinks = pq('#plugin__backlinks ul li', $doc); 101 $lastlink = pq('a:last', $wikilinks);
|
| D | syntax_include_deep.test.php | 96 pq('#plugin__backlinks', $doc)->length, 100 $wikilinks = pq('#plugin__backlinks ul li', $doc); 108 $lastlink = pq('a:last', $wikilinks);
|
| D | syntax_exclude.test.php | 97 pq('#plugin__backlinks', $doc)->length, 101 $wikilinks = pq('#plugin__backlinks ul li', $doc); 109 $lastlink = pq('a:last', $wikilinks);
|
| D | syntax.test.php | 128 pq('#plugin__backlinks', $doc)->length, 132 $wikilinks = pq('#plugin__backlinks ul li', $doc); 140 $lastlink = pq('a:last', $wikilinks);
|
| /plugin/backlinks/_test/ |
| D | syntax_include.test.php | 94 pq('#plugin__backlinks', $doc)->length, 98 $wikilinks = pq('#plugin__backlinks ul li', $doc); 106 $lastlink = pq('a:last', $wikilinks);
|
| D | syntax_include_deep.test.php | 99 pq('#plugin__backlinks', $doc)->length, 103 $wikilinks = pq('#plugin__backlinks ul li', $doc); 111 $lastlink = pq('a:last', $wikilinks);
|
| D | syntax_exclude.test.php | 99 pq('#plugin__backlinks', $doc)->length, 103 $wikilinks = pq('#plugin__backlinks ul li', $doc); 111 $lastlink = pq('a:last', $wikilinks);
|
| D | syntax.test.php | 138 pq('#plugin__backlinks', $doc)->length, 142 $wikilinks = pq('#plugin__backlinks ul li', $doc); 150 $lastlink = pq('a:last', $wikilinks);
|
| /plugin/struct/_test/types/ |
| H A D | MediaTest.php | 100 $pq = new Document(); 101 $pq->html($R->doc); 103 $a = $pq->find('a'); 104 $img = $pq->find('img');
|
| /plugin/abstract/_test/ |
| D | syntax.test.php | 22 $text = trim(pq("p",$doc)->eq(0)->text()); 37 $text = trim(pq("p",$doc)->eq(0)->text());
|