4 require_once(__DIR__ .
"/../../../../libs/composer/vendor/autoload.php");
5 require_once(__DIR__ .
"/../../Base.php");
18 $factory = new \ILIAS\UI\Implementation\Factory();
20 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Popover\\Standard", $standard);
22 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Popover\\Listing", $listing);
27 $factory = new \ILIAS\UI\Implementation\Factory();
29 $this->assertEquals(Popover::POS_AUTO, $popover->getPosition());
34 $factory = new \ILIAS\UI\Implementation\Factory();
36 $popover2 = $popover1->withVerticalPosition();
37 $popover3 = $popover2->withHorizontalPosition();
38 $this->assertEquals(Popover::POS_AUTO, $popover1->getPosition());
39 $this->assertEquals(Popover::POS_VERTICAL, $popover2->getPosition());
40 $this->assertEquals(Popover::POS_HORIZONTAL, $popover3->getPosition());
41 $this->assertEquals($popover1->getContent(), $popover2->getContent());
42 $this->assertEquals($popover1->getContent(), $popover3->getContent());
47 $factory = new \ILIAS\UI\Implementation\Factory();
51 $this->assertEquals($expected, $actual);
57 $this->assertTrue(
true);
62 $factory = new \ILIAS\UI\Implementation\Factory();
63 $popover =
$factory->popover()->standard(
$factory->legacy(
'myContent'))->withAsyncContentUrl(
'/blub/');
73 return '<div class="il-standard-popover-content" style="display:none;" id="id_1">' . $content .
'</div>';
getExpectedStandardHTML($content)
getDefaultRenderer(JavaScriptBinding $js_binding=null)
test_implements_interface()
Provides common functionality for UI tests.
test_that_position_is_auto_by_default()