@@ -13,10 +13,10 @@ class DifferentFormTest extends TestCase
1313 private function createForm (string $ style ): Form
1414 {
1515 $ sources = [
16- 'ad ' => ' Ad ' ,
17- 'blog ' => ' Blog ' ,
18- 'magazine ' => ' Magazine ' ,
19- 'newspaper ' => ' Newspaper ' ,
16+ 'Ad ' ,
17+ 'Blog ' ,
18+ 'Magazine ' ,
19+ 'Newspaper ' ,
2020 ];
2121 E::$ style = $ style ;
2222 return E::form ([
@@ -32,10 +32,10 @@ public function testRenderForm(): void
3232 ' <label for="source">How did you find us?</label> ' ,
3333 ' <select id="source" name="source" onchange="var last=this.options[this.options.length-1]; var hasPrevious=last.previousSibling.nodeName== \'HR \'; if (this.options.length-1==this.selectedIndex) { var str=prompt(last.text,last.previousSibling.text); if (str) { if (hasPrevious) { opt=document.createElement( \'option \'); this.insertBefore(opt, last); } else { opt=last.previousSibling; } opt.value=opt.text=str; this.selectedIndex-=1; } else { this.selectedIndex=this.dataset.lastIndex; } } this.dataset.lastIndex=this.selectedIndex;"> ' ,
3434 ' <option value="" selected="selected">...</option> ' ,
35- ' <option value="ad ">Ad</option> ' ,
36- ' <option value="blog ">Blog</option> ' ,
37- ' <option value="magazine ">Magazine</option> ' ,
38- ' <option value="newspaper ">Newspaper</option> ' ,
35+ ' <option value="Ad ">Ad</option> ' ,
36+ ' <option value="Blog ">Blog</option> ' ,
37+ ' <option value="Magazine ">Magazine</option> ' ,
38+ ' <option value="Newspaper ">Newspaper</option> ' ,
3939 ' <hr/> ' ,
4040 ' <option value="!type!">Different ...</option> ' ,
4141 ' </select> ' ,
@@ -53,10 +53,10 @@ public function testRenderBulma(): void
5353 ' <div class="select"> ' ,
5454 ' <select id="source" name="source" onchange="var last=this.options[this.options.length-1]; var hasPrevious=last.previousSibling.nodeName== \'HR \'; if (this.options.length-1==this.selectedIndex) { var str=prompt(last.text,last.previousSibling.text); if (str) { if (hasPrevious) { opt=document.createElement( \'option \'); this.insertBefore(opt, last); } else { opt=last.previousSibling; } opt.value=opt.text=str; this.selectedIndex-=1; } else { this.selectedIndex=this.dataset.lastIndex; } } this.dataset.lastIndex=this.selectedIndex;"> ' ,
5555 ' <option value="" selected="selected">...</option> ' ,
56- ' <option value="ad ">Ad</option> ' ,
57- ' <option value="blog ">Blog</option> ' ,
58- ' <option value="magazine ">Magazine</option> ' ,
59- ' <option value="newspaper ">Newspaper</option> ' ,
56+ ' <option value="Ad ">Ad</option> ' ,
57+ ' <option value="Blog ">Blog</option> ' ,
58+ ' <option value="Magazine ">Magazine</option> ' ,
59+ ' <option value="Newspaper ">Newspaper</option> ' ,
6060 ' <hr/> ' ,
6161 ' <option value="!type!">Different ...</option> ' ,
6262 ' </select> ' ,
0 commit comments