5 require_once(__DIR__ .
"/../../../../libs/composer/vendor/autoload.php");
6 require_once(__DIR__ .
"/../../Base.php");
8 use \ILIAS\UI\Component as
C;
21 return new \ILIAS\UI\Implementation\Factory();
28 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Chart\\ScaleBar", $f->chart()->scaleBar(
array(
"1" =>
false)));
42 $c = $f->chart()->scaleBar($items);
44 $this->assertEquals($c->getItems(), $items);
59 $c = $f->chart()->scaleBar($items);
63 $expected_html = <<<EOT
64 <ul
class=
"il-chart-scale-bar">
65 <li
style=
"width:25%">
66 <div
class=
"il-chart-scale-bar-item ">
70 <li style=
"width:25%">
71 <div
class=
"il-chart-scale-bar-item ">
75 <li style=
"width:25%">
76 <div
class=
"il-chart-scale-bar-item il-chart-scale-bar-active">
77 Medium <span
class=
"sr-only">(active)</span>
80 <li style=
"width:25%">
81 <div
class=
"il-chart-scale-bar-item ">
test_implements_factory_interface()
getDefaultRenderer(JavaScriptBinding $js_binding=null)
Provides common functionality for UI tests.
assertHTMLEquals($expected_html_as_string, $html_as_string)
Create styles array
The data for the language used.