61 : void
62 {
63 $label = sha1('progress_bar_label');
64
65 $progress_bar = $this->
getUIFactory()->progress()->bar($label);
66
67 $renderer = $this->getDefaultRenderer(
null, [$this->glyph_mock]);
68
69 $actual_html =
$renderer->render($progress_bar);
70
71 $expected_html = <<<EOT
72<div class="c-progress c-progress-bar">
73 <div class="c-progress-bar__label"><label for="id_1">$label</label>
74 <span data-status="success" class="c-progress-bar--success hidden">$this->glyph_html</span>
75 <span data-status="failure" class="c-progress-bar--failure hidden">$this->glyph_html</span>
76 </div>
77 <progress id="id_1" class="c-progress-bar__progress" value="0" max="100"></progress>
78 <div class="c-progress-bar__message text-left invisible" aria-live="polite"></div>
79</div>
80EOT;
81
82 $this->assertEquals(
83 $this->brutallyTrimHTML($expected_html),
84 $this->brutallyTrimHTML($actual_html),
85 );
86 }