This commit is contained in:
@@ -126,14 +126,14 @@ class plugin_luxtools_test extends DokuWikiTest
|
||||
$doc->html($xhtml);
|
||||
|
||||
$structure = [
|
||||
'div.filetools-plugin' => 1,
|
||||
'div.filetools-plugin > ul' => 1,
|
||||
'div.filetools-plugin > ul > li' => 3,
|
||||
'div.filetools-plugin > ul > li:nth-child(1)' => 1,
|
||||
'div.filetools-plugin > ul > li:nth-child(1) a' => 'example.txt',
|
||||
'div.filetools-plugin > ul > li:nth-child(2) ul' => 1,
|
||||
'div.filetools-plugin > ul > li:nth-child(2) ul > li' => 1,
|
||||
'div.filetools-plugin > ul > li:nth-child(2) ul > li a' => 'example2.txt',
|
||||
'div.luxtools-plugin' => 1,
|
||||
'div.luxtools-plugin > ul' => 1,
|
||||
'div.luxtools-plugin > ul > li' => 3,
|
||||
'div.luxtools-plugin > ul > li:nth-child(1)' => 1,
|
||||
'div.luxtools-plugin > ul > li:nth-child(1) a' => 'example.txt',
|
||||
'div.luxtools-plugin > ul > li:nth-child(2) ul' => 1,
|
||||
'div.luxtools-plugin > ul > li:nth-child(2) ul > li' => 1,
|
||||
'div.luxtools-plugin > ul > li:nth-child(2) ul > li a' => 'example2.txt',
|
||||
];
|
||||
|
||||
$this->structureCheck($doc, $structure);
|
||||
@@ -153,14 +153,14 @@ class plugin_luxtools_test extends DokuWikiTest
|
||||
$doc->html($xhtml);
|
||||
|
||||
$structure = [
|
||||
'div.filetools-plugin' => 1,
|
||||
'div.filetools-plugin > ol' => 1,
|
||||
'div.filetools-plugin > ol > li' => 3,
|
||||
'div.filetools-plugin > ol > li:nth-child(1)' => 1,
|
||||
'div.filetools-plugin > ol > li:nth-child(1) a' => 'example.txt',
|
||||
'div.filetools-plugin > ol > li:nth-child(2) ol' => 1,
|
||||
'div.filetools-plugin > ol > li:nth-child(2) ol > li' => 1,
|
||||
'div.filetools-plugin > ol > li:nth-child(2) ol > li a' => 'example2.txt',
|
||||
'div.luxtools-plugin' => 1,
|
||||
'div.luxtools-plugin > ol' => 1,
|
||||
'div.luxtools-plugin > ol > li' => 3,
|
||||
'div.luxtools-plugin > ol > li:nth-child(1)' => 1,
|
||||
'div.luxtools-plugin > ol > li:nth-child(1) a' => 'example.txt',
|
||||
'div.luxtools-plugin > ol > li:nth-child(2) ol' => 1,
|
||||
'div.luxtools-plugin > ol > li:nth-child(2) ol > li' => 1,
|
||||
'div.luxtools-plugin > ol > li:nth-child(2) ol > li a' => 'example2.txt',
|
||||
];
|
||||
|
||||
$this->structureCheck($doc, $structure);
|
||||
@@ -182,12 +182,12 @@ class plugin_luxtools_test extends DokuWikiTest
|
||||
$doc->html($xhtml);
|
||||
|
||||
$structure = [
|
||||
'div.filetools-plugin' => 1,
|
||||
'div.filetools-plugin table' => 1,
|
||||
'div.filetools-plugin table > tbody > tr' => 3,
|
||||
'div.filetools-plugin table > tbody > tr:nth-child(1) a' => 'example.txt',
|
||||
'div.filetools-plugin table > tbody > tr:nth-child(2) a' => 'exampledir/example2.txt',
|
||||
'div.filetools-plugin table > tbody > tr:nth-child(3) a' => 'exampleimage.png',
|
||||
'div.luxtools-plugin' => 1,
|
||||
'div.luxtools-plugin table' => 1,
|
||||
'div.luxtools-plugin table > tbody > tr' => 3,
|
||||
'div.luxtools-plugin table > tbody > tr:nth-child(1) a' => 'example.txt',
|
||||
'div.luxtools-plugin table > tbody > tr:nth-child(2) a' => 'exampledir/example2.txt',
|
||||
'div.luxtools-plugin table > tbody > tr:nth-child(3) a' => 'exampleimage.png',
|
||||
];
|
||||
|
||||
$this->structureCheck($doc, $structure);
|
||||
@@ -201,7 +201,7 @@ class plugin_luxtools_test extends DokuWikiTest
|
||||
$doc = new Document();
|
||||
$doc->html($xhtml);
|
||||
|
||||
$style = (string)$doc->find('div.filetools-plugin')->attr('style');
|
||||
$style = (string)$doc->find('div.luxtools-plugin')->attr('style');
|
||||
|
||||
$this->assertStringContainsString('max-height: 500px', $style);
|
||||
$this->assertStringContainsString('overflow-y: auto', $style);
|
||||
@@ -215,7 +215,7 @@ class plugin_luxtools_test extends DokuWikiTest
|
||||
$doc = new Document();
|
||||
$doc->html($xhtml);
|
||||
|
||||
$style = $doc->find('div.filetools-plugin')->attr('style');
|
||||
$style = $doc->find('div.luxtools-plugin')->attr('style');
|
||||
|
||||
$this->assertTrue($style === null || $style === '');
|
||||
}
|
||||
@@ -232,9 +232,9 @@ class plugin_luxtools_test extends DokuWikiTest
|
||||
$doc->html($xhtml);
|
||||
|
||||
$structure = [
|
||||
'div.filetools-plugin.filetools-gallery' => 1,
|
||||
'div.filetools-plugin.filetools-gallery a' => 1,
|
||||
'div.filetools-plugin.filetools-gallery img' => 1,
|
||||
'div.luxtools-plugin.luxtools-gallery' => 1,
|
||||
'div.luxtools-plugin.luxtools-gallery a' => 1,
|
||||
'div.luxtools-plugin.luxtools-gallery img' => 1,
|
||||
];
|
||||
$this->structureCheck($doc, $structure);
|
||||
|
||||
@@ -256,7 +256,7 @@ class plugin_luxtools_test extends DokuWikiTest
|
||||
$doc->html($xhtml);
|
||||
|
||||
$structure = [
|
||||
'button.filetools-open' => 1,
|
||||
'button.luxtools-open' => 1,
|
||||
];
|
||||
$this->structureCheck($doc, $structure);
|
||||
|
||||
@@ -277,10 +277,10 @@ class plugin_luxtools_test extends DokuWikiTest
|
||||
$doc->html($xhtml);
|
||||
|
||||
$structure = [
|
||||
'div.filetools-plugin' => 1,
|
||||
'div.filetools-plugin table' => 1,
|
||||
'div.filetools-plugin table > tbody > tr' => 3,
|
||||
'a.filetools-open' => 1,
|
||||
'div.luxtools-plugin' => 1,
|
||||
'div.luxtools-plugin table' => 1,
|
||||
'div.luxtools-plugin table > tbody > tr' => 3,
|
||||
'a.luxtools-open' => 1,
|
||||
];
|
||||
$this->structureCheck($doc, $structure);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user