How to use ba method in Playwright Internal

Best JavaScript code snippet using playwright-internal

underline.js

Source:underline.js Github

copy

Full Screen

1var browserTests = [2["foo[]bar",3 [["underline",""]],4 "foo[]bar",5 [true],6 {"underline":[false,false,"",false,true,""]}],7["<p>[foo</p> <p>bar]</p>",8 [["stylewithcss","true"],["underline",""]],9 "<p><span style=\"text-decoration:underline\">[foo</span></p> <p><span style=\"text-decoration:underline\">bar]</span></p>",10 [true,true],11 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],12["<p>[foo</p> <p>bar]</p>",13 [["stylewithcss","false"],["underline",""]],14 "<p><u>[foo</u></p> <p><u>bar]</u></p>",15 [true,true],16 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],17["<span>[foo</span> <span>bar]</span>",18 [["stylewithcss","true"],["underline",""]],19 "<span style=\"text-decoration:underline\"><span>[foo</span> <span>bar]</span></span>",20 [true,true],21 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],22["<span>[foo</span> <span>bar]</span>",23 [["stylewithcss","false"],["underline",""]],24 "<u><span>[foo</span> <span>bar]</span></u>",25 [true,true],26 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],27["<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>",28 [["stylewithcss","true"],["underline",""]],29 "<p><span style=\"text-decoration:underline\">[foo</span></p><p> <span style=\"text-decoration:underline\"><span>bar</span></span> </p><p><span style=\"text-decoration:underline\">baz]</span></p>",30 [true,true],31 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],32["<p>[foo</p><p> <span>bar</span> </p><p>baz]</p>",33 [["stylewithcss","false"],["underline",""]],34 "<p><u>[foo</u></p><p> <u><span>bar</span></u> </p><p><u>baz]</u></p>",35 [true,true],36 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],37["<p>[foo<p><br><p>bar]",38 [["stylewithcss","true"],["underline",""]],39 "<p><span style=\"text-decoration:underline\">[foo</span></p><p><span style=\"text-decoration:underline\"><br></span></p><p><span style=\"text-decoration:underline\">bar]</span></p>",40 [true,true],41 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],42["<p>[foo<p><br><p>bar]",43 [["stylewithcss","false"],["underline",""]],44 "<p><u>[foo</u></p><p><u><br></u></p><p><u>bar]</u></p>",45 [true,true],46 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],47["<b>foo[]bar</b>",48 [["underline",""]],49 "<b>foo[]bar</b>",50 [true],51 {"underline":[false,false,"",false,true,""]}],52["<i>foo[]bar</i>",53 [["underline",""]],54 "<i>foo[]bar</i>",55 [true],56 {"underline":[false,false,"",false,true,""]}],57["<span>foo</span>{}<span>bar</span>",58 [["underline",""]],59 "<span>foo</span>{}<span>bar</span>",60 [true],61 {"underline":[false,false,"",false,true,""]}],62["<span>foo[</span><span>]bar</span>",63 [["underline",""]],64 "<span>foo[</span><span>]bar</span>",65 [true],66 {"underline":[false,false,"",false,true,""]}],67["foo[bar]baz",68 [["stylewithcss","true"],["underline",""]],69 "foo<span style=\"text-decoration:underline\">[bar]</span>baz",70 [true,true],71 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],72["foo[bar]baz",73 [["stylewithcss","false"],["underline",""]],74 "foo<u>[bar]</u>baz",75 [true,true],76 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],77["foo[bar<b>baz]qoz</b>quz",78 [["stylewithcss","true"],["underline",""]],79 "foo<span style=\"text-decoration:underline\">[bar</span><b><span style=\"text-decoration:underline\">baz]</span>qoz</b>quz",80 [true,true],81 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],82["foo[bar<b>baz]qoz</b>quz",83 [["stylewithcss","false"],["underline",""]],84 "foo<u>[bar</u><b><u>baz]</u>qoz</b>quz",85 [true,true],86 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],87["foo[bar<i>baz]qoz</i>quz",88 [["stylewithcss","true"],["underline",""]],89 "foo<span style=\"text-decoration:underline\">[bar</span><i><span style=\"text-decoration:underline\">baz]</span>qoz</i>quz",90 [true,true],91 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],92["foo[bar<i>baz]qoz</i>quz",93 [["stylewithcss","false"],["underline",""]],94 "foo<u>[bar</u><i><u>baz]</u>qoz</i>quz",95 [true,true],96 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],97["{<p><p> <p>foo</p>}",98 [["stylewithcss","true"],["underline",""]],99 "{<p></p><p> </p><p><span style=\"text-decoration:underline\">foo</span></p>}",100 [true,true],101 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],102["{<p><p> <p>foo</p>}",103 [["stylewithcss","false"],["underline",""]],104 "{<p></p><p> </p><p><u>foo</u></p>}",105 [true,true],106 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],107["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",108 [["stylewithcss","true"],["underline",""]],109 "<table><tbody><tr><td>foo</td><td>b<span style=\"text-decoration:underline\">[a]</span>r</td><td>baz</td></tr></tbody></table>",110 [true,true],111 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],112["<table><tbody><tr><td>foo<td>b[a]r<td>baz</table>",113 [["stylewithcss","false"],["underline",""]],114 "<table><tbody><tr><td>foo</td><td>b<u>[a]</u>r</td><td>baz</td></tr></tbody></table>",115 [true,true],116 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],117["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",118 [["stylewithcss","true"],["underline",""]],119 "<table><tbody><tr><td>foo</td>{<td><span style=\"text-decoration:underline\">bar</span></td>}<td>baz</td></tr></tbody></table>",120 [true,true],121 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],122["<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>",123 [["stylewithcss","false"],["underline",""]],124 "<table><tbody><tr><td>foo</td>{<td><u>bar</u></td>}<td>baz</td></tr></tbody></table>",125 [true,true],126 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],127["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",128 [["stylewithcss","true"],["underline",""]],129 "<table><tbody><tr>{<td><span style=\"text-decoration:underline\">foo</span></td><td><span style=\"text-decoration:underline\">bar</span></td>}<td>baz</td></tr></tbody></table>",130 [true,true],131 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],132["<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>",133 [["stylewithcss","false"],["underline",""]],134 "<table><tbody><tr>{<td><u>foo</u></td><td><u>bar</u></td>}<td>baz</td></tr></tbody></table>",135 [true,true],136 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],137["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",138 [["stylewithcss","true"],["underline",""]],139 "<table><tbody>{<tr><td><span style=\"text-decoration:underline\">foo</span></td><td><span style=\"text-decoration:underline\">bar</span></td><td><span style=\"text-decoration:underline\">baz</span></td></tr>}</tbody></table>",140 [true,true],141 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],142["<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>",143 [["stylewithcss","false"],["underline",""]],144 "<table><tbody>{<tr><td><u>foo</u></td><td><u>bar</u></td><td><u>baz</u></td></tr>}</tbody></table>",145 [true,true],146 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],147["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",148 [["stylewithcss","true"],["underline",""]],149 "<table>{<tbody><tr><td><span style=\"text-decoration:underline\">foo</span></td><td><span style=\"text-decoration:underline\">bar</span></td><td><span style=\"text-decoration:underline\">baz</span></td></tr></tbody>}</table>",150 [true,true],151 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],152["<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>",153 [["stylewithcss","false"],["underline",""]],154 "<table>{<tbody><tr><td><u>foo</u></td><td><u>bar</u></td><td><u>baz</u></td></tr></tbody>}</table>",155 [true,true],156 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],157["{<table><tr><td>foo<td>bar<td>baz</table>}",158 [["stylewithcss","true"],["underline",""]],159 "{<table><tbody><tr><td><span style=\"text-decoration:underline\">foo</span></td><td><span style=\"text-decoration:underline\">bar</span></td><td><span style=\"text-decoration:underline\">baz</span></td></tr></tbody></table>}",160 [true,true],161 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],162["{<table><tr><td>foo<td>bar<td>baz</table>}",163 [["stylewithcss","false"],["underline",""]],164 "{<table><tbody><tr><td><u>foo</u></td><td><u>bar</u></td><td><u>baz</u></td></tr></tbody></table>}",165 [true,true],166 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],167["foo<u>[bar]</u>baz",168 [["stylewithcss","true"],["underline",""]],169 "foo[bar]baz",170 [true,true],171 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],172["foo<u>[bar]</u>baz",173 [["stylewithcss","false"],["underline",""]],174 "foo[bar]baz",175 [true,true],176 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],177["foo<span style=\"text-decoration: underline\">[bar]</span>baz",178 [["stylewithcss","true"],["underline",""]],179 "foo[bar]baz",180 [true,true],181 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],182["foo<span style=\"text-decoration: underline\">[bar]</span>baz",183 [["stylewithcss","false"],["underline",""]],184 "foo[bar]baz",185 [true,true],186 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],187["<u>foo[bar]baz</u>",188 [["stylewithcss","true"],["underline",""]],189 "<span style=\"text-decoration:underline\">foo</span>[bar]<span style=\"text-decoration:underline\">baz</span>",190 [true,true],191 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],192["<u>foo[bar]baz</u>",193 [["stylewithcss","false"],["underline",""]],194 "<u>foo</u>[bar]<u>baz</u>",195 [true,true],196 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],197["<u>foo[b<span style=\"color:blue\">ar]ba</span>z</u>",198 [["stylewithcss","true"],["underline",""]],199 "<span style=\"text-decoration:underline\">foo</span>[b<span style=\"color:rgb(0, 0, 255)\">ar]<span style=\"text-decoration:underline\">ba</span></span><span style=\"text-decoration:underline\">z</span>",200 [true,true],201 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],202["<u>foo[b<span style=\"color:blue\">ar]ba</span>z</u>",203 [["stylewithcss","false"],["underline",""]],204 "<u>foo</u>[b<span style=\"color:rgb(0, 0, 255)\">ar]<u>ba</u></span><u>z</u>",205 [true,true],206 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],207["<u>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</u>",208 [["stylewithcss","true"],["underline",""]],209 "<span style=\"text-decoration:underline\">foo</span>[b<span style=\"color:rgb(0, 0, 255)\" id=\"foo\">ar]<span style=\"text-decoration:underline\">ba</span></span><span style=\"text-decoration:underline\">z</span>",210 [true,true],211 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],212["<u>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</u>",213 [["stylewithcss","false"],["underline",""]],214 "<u>foo</u>[b<span style=\"color:rgb(0, 0, 255)\" id=\"foo\">ar]<u>ba</u></span><u>z</u>",215 [true,true],216 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],217["<u>foo[b<span style=\"font-size:3em\">ar]ba</span>z</u>",218 [["stylewithcss","true"],["underline",""]],219 "<span style=\"text-decoration:underline\">foo</span>[b<span style=\"font-size:3em\">ar]<span style=\"text-decoration:underline\">ba</span></span><span style=\"text-decoration:underline\">z</span>",220 [true,true],221 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],222["<u>foo[b<span style=\"font-size:3em\">ar]ba</span>z</u>",223 [["stylewithcss","false"],["underline",""]],224 "<u>foo</u>[b<span style=\"font-size:3em\">ar]<u>ba</u></span><u>z</u>",225 [true,true],226 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],227["<u>foo[b<i>ar]ba</i>z</u>",228 [["stylewithcss","true"],["underline",""]],229 "<span style=\"text-decoration:underline\">foo</span>[b<i>ar]<span style=\"text-decoration:underline\">ba</span></i><span style=\"text-decoration:underline\">z</span>",230 [true,true],231 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],232["<u>foo[b<i>ar]ba</i>z</u>",233 [["stylewithcss","false"],["underline",""]],234 "<u>foo</u>[b<i>ar]<u>ba</u></i><u>z</u>",235 [true,true],236 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],237["<p style=\"text-decoration: underline\">foo[bar]baz</p>",238 [["stylewithcss","true"],["underline",""]],239 "<p><span style=\"text-decoration:underline\">foo</span>[bar]<span style=\"text-decoration:underline\">baz</span></p>",240 [true,true],241 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],242["<p style=\"text-decoration: underline\">foo[bar]baz</p>",243 [["stylewithcss","false"],["underline",""]],244 "<p><u>foo</u>[bar]<u>baz</u></p>",245 [true,true],246 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],247["foo<s>[bar]</s>baz",248 [["stylewithcss","true"],["underline",""]],249 "foo<span style=\"text-decoration:underline\"><s>[bar]</s></span>baz",250 [true,true],251 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],252["foo<s>[bar]</s>baz",253 [["stylewithcss","false"],["underline",""]],254 "foo<u><s>[bar]</s></u>baz",255 [true,true],256 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],257["foo<span style=\"text-decoration: line-through\">[bar]</span>baz",258 [["stylewithcss","true"],["underline",""]],259 "foo<span style=\"text-decoration:underline\"><span style=\"text-decoration:line-through\">[bar]</span></span>baz",260 [true,true],261 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],262["foo<span style=\"text-decoration: line-through\">[bar]</span>baz",263 [["stylewithcss","false"],["underline",""]],264 "foo<u><span style=\"text-decoration:line-through\">[bar]</span></u>baz",265 [true,true],266 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],267["<s>foo[bar]baz</s>",268 [["stylewithcss","true"],["underline",""]],269 "<s>foo<span style=\"text-decoration:underline\">[bar]</span>baz</s>",270 [true,true],271 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],272["<s>foo[bar]baz</s>",273 [["stylewithcss","false"],["underline",""]],274 "<s>foo<u>[bar]</u>baz</s>",275 [true,true],276 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],277["<s>foo[b<span style=\"color:blue\">ar]ba</span>z</s>",278 [["stylewithcss","true"],["underline",""]],279 "<s>foo<span style=\"text-decoration:underline\">[b</span><span style=\"color:rgb(0, 0, 255)\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</s>",280 [true,true],281 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],282["<s>foo[b<span style=\"color:blue\">ar]ba</span>z</s>",283 [["stylewithcss","false"],["underline",""]],284 "<s>foo<u>[b</u><span style=\"color:rgb(0, 0, 255)\"><u>ar]</u>ba</span>z</s>",285 [true,true],286 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],287["<s>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</s>",288 [["stylewithcss","true"],["underline",""]],289 "<s>foo<span style=\"text-decoration:underline\">[b</span><span style=\"color:rgb(0, 0, 255)\" id=\"foo\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</s>",290 [true,true],291 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],292["<s>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</s>",293 [["stylewithcss","false"],["underline",""]],294 "<s>foo<u>[b</u><span style=\"color:rgb(0, 0, 255)\" id=\"foo\"><u>ar]</u>ba</span>z</s>",295 [true,true],296 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],297["<s>foo[b<span style=\"font-size:3em\">ar]ba</span>z</s>",298 [["stylewithcss","true"],["underline",""]],299 "<s>foo<span style=\"text-decoration:underline\">[b</span><span style=\"font-size:3em\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</s>",300 [true,true],301 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],302["<s>foo[b<span style=\"font-size:3em\">ar]ba</span>z</s>",303 [["stylewithcss","false"],["underline",""]],304 "<s>foo<u>[b</u><span style=\"font-size:3em\"><u>ar]</u>ba</span>z</s>",305 [true,true],306 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],307["<s>foo[b<i>ar]ba</i>z</s>",308 [["stylewithcss","true"],["underline",""]],309 "<s>foo<span style=\"text-decoration:underline\">[b</span><i><span style=\"text-decoration:underline\">ar]</span>ba</i>z</s>",310 [true,true],311 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],312["<s>foo[b<i>ar]ba</i>z</s>",313 [["stylewithcss","false"],["underline",""]],314 "<s>foo<u>[b</u><i><u>ar]</u>ba</i>z</s>",315 [true,true],316 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],317["<p style=\"text-decoration: line-through\">foo[bar]baz</p>",318 [["stylewithcss","true"],["underline",""]],319 "<p style=\"text-decoration:line-through\">foo<span style=\"text-decoration:underline\">[bar]</span>baz</p>",320 [true,true],321 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],322["<p style=\"text-decoration: line-through\">foo[bar]baz</p>",323 [["stylewithcss","false"],["underline",""]],324 "<p style=\"text-decoration:line-through\">foo<u>[bar]</u>baz</p>",325 [true,true],326 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],327["foo<strike>[bar]</strike>baz",328 [["stylewithcss","true"],["underline",""]],329 "foo<span style=\"text-decoration:underline\"><strike>[bar]</strike></span>baz",330 [true,true],331 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],332["foo<strike>[bar]</strike>baz",333 [["stylewithcss","false"],["underline",""]],334 "foo<u><strike>[bar]</strike></u>baz",335 [true,true],336 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],337["<strike>foo[bar]baz</strike>",338 [["stylewithcss","true"],["underline",""]],339 "<strike>foo<span style=\"text-decoration:underline\">[bar]</span>baz</strike>",340 [true,true],341 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],342["<strike>foo[bar]baz</strike>",343 [["stylewithcss","false"],["underline",""]],344 "<strike>foo<u>[bar]</u>baz</strike>",345 [true,true],346 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],347["<strike>foo[b<span style=\"color:blue\">ar]ba</span>z</strike>",348 [["stylewithcss","true"],["underline",""]],349 "<strike>foo<span style=\"text-decoration:underline\">[b</span><span style=\"color:rgb(0, 0, 255)\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</strike>",350 [true,true],351 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],352["<strike>foo[b<span style=\"color:blue\">ar]ba</span>z</strike>",353 [["stylewithcss","false"],["underline",""]],354 "<strike>foo<u>[b</u><span style=\"color:rgb(0, 0, 255)\"><u>ar]</u>ba</span>z</strike>",355 [true,true],356 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],357["<strike>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</strike>",358 [["stylewithcss","true"],["underline",""]],359 "<strike>foo<span style=\"text-decoration:underline\">[b</span><span style=\"color:rgb(0, 0, 255)\" id=\"foo\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</strike>",360 [true,true],361 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],362["<strike>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</strike>",363 [["stylewithcss","false"],["underline",""]],364 "<strike>foo<u>[b</u><span style=\"color:rgb(0, 0, 255)\" id=\"foo\"><u>ar]</u>ba</span>z</strike>",365 [true,true],366 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],367["<strike>foo[b<span style=\"font-size:3em\">ar]ba</span>z</strike>",368 [["stylewithcss","true"],["underline",""]],369 "<strike>foo<span style=\"text-decoration:underline\">[b</span><span style=\"font-size:3em\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</strike>",370 [true,true],371 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],372["<strike>foo[b<span style=\"font-size:3em\">ar]ba</span>z</strike>",373 [["stylewithcss","false"],["underline",""]],374 "<strike>foo<u>[b</u><span style=\"font-size:3em\"><u>ar]</u>ba</span>z</strike>",375 [true,true],376 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],377["<strike>foo[b<i>ar]ba</i>z</strike>",378 [["stylewithcss","true"],["underline",""]],379 "<strike>foo<span style=\"text-decoration:underline\">[b</span><i><span style=\"text-decoration:underline\">ar]</span>ba</i>z</strike>",380 [true,true],381 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],382["<strike>foo[b<i>ar]ba</i>z</strike>",383 [["stylewithcss","false"],["underline",""]],384 "<strike>foo<u>[b</u><i><u>ar]</u>ba</i>z</strike>",385 [true,true],386 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],387["foo<ins>[bar]</ins>baz",388 [["underline",""]],389 "foo<ins>[bar]</ins>baz",390 [true],391 {"underline":[false,true,"",false,true,""]}],392["<ins>foo[bar]baz</ins>",393 [["underline",""]],394 "<ins>foo[bar]baz</ins>",395 [true],396 {"underline":[false,true,"",false,true,""]}],397["<ins>foo[b<span style=\"color:blue\">ar]ba</span>z</ins>",398 [["underline",""]],399 "<ins>foo[b<span style=\"color:rgb(0, 0, 255)\">ar]ba</span>z</ins>",400 [true],401 {"underline":[false,true,"",false,true,""]}],402["<ins>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</ins>",403 [["underline",""]],404 "<ins>foo[b<span style=\"color:rgb(0, 0, 255)\" id=\"foo\">ar]ba</span>z</ins>",405 [true],406 {"underline":[false,true,"",false,true,""]}],407["<ins>foo[b<span style=\"font-size:3em\">ar]ba</span>z</ins>",408 [["underline",""]],409 "<ins>foo[b<span style=\"font-size:3em\">ar]ba</span>z</ins>",410 [true],411 {"underline":[false,true,"",false,true,""]}],412["<ins>foo[b<i>ar]ba</i>z</ins>",413 [["underline",""]],414 "<ins>foo[b<i>ar]ba</i>z</ins>",415 [true],416 {"underline":[false,true,"",false,true,""]}],417["foo<del>[bar]</del>baz",418 [["stylewithcss","true"],["underline",""]],419 "foo<span style=\"text-decoration:underline\"><del>[bar]</del></span>baz",420 [true,true],421 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],422["foo<del>[bar]</del>baz",423 [["stylewithcss","false"],["underline",""]],424 "foo<u><del>[bar]</del></u>baz",425 [true,true],426 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],427["<del>foo[bar]baz</del>",428 [["stylewithcss","true"],["underline",""]],429 "<del>foo<span style=\"text-decoration:underline\">[bar]</span>baz</del>",430 [true,true],431 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],432["<del>foo[bar]baz</del>",433 [["stylewithcss","false"],["underline",""]],434 "<del>foo<u>[bar]</u>baz</del>",435 [true,true],436 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],437["<del>foo[b<span style=\"color:blue\">ar]ba</span>z</del>",438 [["stylewithcss","true"],["underline",""]],439 "<del>foo<span style=\"text-decoration:underline\">[b</span><span style=\"color:rgb(0, 0, 255)\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</del>",440 [true,true],441 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],442["<del>foo[b<span style=\"color:blue\">ar]ba</span>z</del>",443 [["stylewithcss","false"],["underline",""]],444 "<del>foo<u>[b</u><span style=\"color:rgb(0, 0, 255)\"><u>ar]</u>ba</span>z</del>",445 [true,true],446 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],447["<del>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</del>",448 [["stylewithcss","true"],["underline",""]],449 "<del>foo<span style=\"text-decoration:underline\">[b</span><span style=\"color:rgb(0, 0, 255)\" id=\"foo\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</del>",450 [true,true],451 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],452["<del>foo[b<span style=\"color:blue\" id=foo>ar]ba</span>z</del>",453 [["stylewithcss","false"],["underline",""]],454 "<del>foo<u>[b</u><span style=\"color:rgb(0, 0, 255)\" id=\"foo\"><u>ar]</u>ba</span>z</del>",455 [true,true],456 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],457["<del>foo[b<span style=\"font-size:3em\">ar]ba</span>z</del>",458 [["stylewithcss","true"],["underline",""]],459 "<del>foo<span style=\"text-decoration:underline\">[b</span><span style=\"font-size:3em\"><span style=\"text-decoration:underline\">ar]</span>ba</span>z</del>",460 [true,true],461 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],462["<del>foo[b<span style=\"font-size:3em\">ar]ba</span>z</del>",463 [["stylewithcss","false"],["underline",""]],464 "<del>foo<u>[b</u><span style=\"font-size:3em\"><u>ar]</u>ba</span>z</del>",465 [true,true],466 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],467["<del>foo[b<i>ar]ba</i>z</del>",468 [["stylewithcss","true"],["underline",""]],469 "<del>foo<span style=\"text-decoration:underline\">[b</span><i><span style=\"text-decoration:underline\">ar]</span>ba</i>z</del>",470 [true,true],471 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],472["<del>foo[b<i>ar]ba</i>z</del>",473 [["stylewithcss","false"],["underline",""]],474 "<del>foo<u>[b</u><i><u>ar]</u>ba</i>z</del>",475 [true,true],476 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],477["foo<span style=\"text-decoration: underline line-through\">[bar]</span>baz",478 [["underline",""]],479 "foo<span style=\"text-decoration:line-through\">[bar]</span>baz",480 [true],481 {"underline":[false,true,"",false,false,""]}],482["foo<span style=\"text-decoration: underline line-through\">b[a]r</span>baz",483 [["stylewithcss","true"],["underline",""]],484 "foo<span style=\"text-decoration:line-through\"><span style=\"text-decoration:underline\">b</span>[a]<span style=\"text-decoration:underline\">r</span></span>baz",485 [true,true],486 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],487["foo<span style=\"text-decoration: underline line-through\">b[a]r</span>baz",488 [["stylewithcss","false"],["underline",""]],489 "foo<span style=\"text-decoration:line-through\"><u>b</u>[a]<u>r</u></span>baz",490 [true,true],491 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],492["foo<s style=\"text-decoration: underline\">[bar]</s>baz",493 [["stylewithcss","true"],["underline",""]],494 "foo[bar]baz",495 [true,true],496 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],497["foo<s style=\"text-decoration: underline\">[bar]</s>baz",498 [["stylewithcss","false"],["underline",""]],499 "foo[bar]baz",500 [true,true],501 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],502["foo<s style=\"text-decoration: underline\">b[a]r</s>baz",503 [["stylewithcss","true"],["underline",""]],504 "foo<span style=\"text-decoration:underline\">b</span>[a]<span style=\"text-decoration:underline\">r</span>baz",505 [true,true],506 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],507["foo<s style=\"text-decoration: underline\">b[a]r</s>baz",508 [["stylewithcss","false"],["underline",""]],509 "foo<u>b</u>[a]<u>r</u>baz",510 [true,true],511 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],512["foo<u style=\"text-decoration: line-through\">[bar]</u>baz",513 [["stylewithcss","true"],["underline",""]],514 "foo<span style=\"text-decoration:underline\"><u style=\"text-decoration:line-through\">[bar]</u></span>baz",515 [true,true],516 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],517["foo<u style=\"text-decoration: line-through\">[bar]</u>baz",518 [["stylewithcss","false"],["underline",""]],519 "foo<u><u style=\"text-decoration:line-through\">[bar]</u></u>baz",520 [true,true],521 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],522["foo<u style=\"text-decoration: line-through\">b[a]r</u>baz",523 [["stylewithcss","true"],["underline",""]],524 "foo<u style=\"text-decoration:line-through\">b<span style=\"text-decoration:underline\">[a]</span>r</u>baz",525 [true,true],526 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],527["foo<u style=\"text-decoration: line-through\">b[a]r</u>baz",528 [["stylewithcss","false"],["underline",""]],529 "foo<u style=\"text-decoration:line-through\">b<u>[a]</u>r</u>baz",530 [true,true],531 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],532["foo<s style=\"text-decoration: overline\">[bar]</s>baz",533 [["stylewithcss","true"],["underline",""]],534 "foo<span style=\"text-decoration:underline\"><s style=\"text-decoration:overline\">[bar]</s></span>baz",535 [true,true],536 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],537["foo<s style=\"text-decoration: overline\">[bar]</s>baz",538 [["stylewithcss","false"],["underline",""]],539 "foo<u><s style=\"text-decoration:overline\">[bar]</s></u>baz",540 [true,true],541 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],542["foo<s style=\"text-decoration: overline\">b[a]r</s>baz",543 [["stylewithcss","true"],["underline",""]],544 "foo<s style=\"text-decoration:overline\">b<span style=\"text-decoration:underline\">[a]</span>r</s>baz",545 [true,true],546 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],547["foo<s style=\"text-decoration: overline\">b[a]r</s>baz",548 [["stylewithcss","false"],["underline",""]],549 "foo<s style=\"text-decoration:overline\">b<u>[a]</u>r</s>baz",550 [true,true],551 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],552["foo<u style=\"text-decoration: overline\">[bar]</u>baz",553 [["stylewithcss","true"],["underline",""]],554 "foo<span style=\"text-decoration:underline\"><u style=\"text-decoration:overline\">[bar]</u></span>baz",555 [true,true],556 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],557["foo<u style=\"text-decoration: overline\">[bar]</u>baz",558 [["stylewithcss","false"],["underline",""]],559 "foo<u><u style=\"text-decoration:overline\">[bar]</u></u>baz",560 [true,true],561 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],562["foo<u style=\"text-decoration: overline\">b[a]r</u>baz",563 [["stylewithcss","true"],["underline",""]],564 "foo<u style=\"text-decoration:overline\">b<span style=\"text-decoration:underline\">[a]</span>r</u>baz",565 [true,true],566 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],567["foo<u style=\"text-decoration: overline\">b[a]r</u>baz",568 [["stylewithcss","false"],["underline",""]],569 "foo<u style=\"text-decoration:overline\">b<u>[a]</u>r</u>baz",570 [true,true],571 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],572["<p style=\"text-decoration: line-through\">foo[bar]baz</p>",573 [["stylewithcss","true"],["underline",""]],574 "<p style=\"text-decoration:line-through\">foo<span style=\"text-decoration:underline\">[bar]</span>baz</p>",575 [true,true],576 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],577["<p style=\"text-decoration: line-through\">foo[bar]baz</p>",578 [["stylewithcss","false"],["underline",""]],579 "<p style=\"text-decoration:line-through\">foo<u>[bar]</u>baz</p>",580 [true,true],581 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],582["<p style=\"text-decoration: overline\">foo[bar]baz</p>",583 [["stylewithcss","true"],["underline",""]],584 "<p style=\"text-decoration:overline\">foo<span style=\"text-decoration:underline\">[bar]</span>baz</p>",585 [true,true],586 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],587["<p style=\"text-decoration: overline\">foo[bar]baz</p>",588 [["stylewithcss","false"],["underline",""]],589 "<p style=\"text-decoration:overline\">foo<u>[bar]</u>baz</p>",590 [true,true],591 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],592["foo<span class=\"underline\">[bar]</span>baz",593 [["underline",""]],594 "foo<span class=\"underline\">[bar]</span>baz",595 [true],596 {"underline":[false,true,"",false,true,""]}],597["foo<span class=\"underline\">b[a]r</span>baz",598 [["underline",""]],599 "foo<span class=\"underline\">b[a]r</span>baz",600 [true],601 {"underline":[false,true,"",false,true,""]}],602["foo<span class=\"line-through\">[bar]</span>baz",603 [["stylewithcss","true"],["underline",""]],604 "foo<span style=\"text-decoration:underline\"><span class=\"line-through\">[bar]</span></span>baz",605 [true,true],606 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],607["foo<span class=\"line-through\">[bar]</span>baz",608 [["stylewithcss","false"],["underline",""]],609 "foo<u><span class=\"line-through\">[bar]</span></u>baz",610 [true,true],611 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],612["foo<span class=\"line-through\">b[a]r</span>baz",613 [["stylewithcss","true"],["underline",""]],614 "foo<span class=\"line-through\">b<span style=\"text-decoration:underline\">[a]</span>r</span>baz",615 [true,true],616 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}],617["foo<span class=\"line-through\">b[a]r</span>baz",618 [["stylewithcss","false"],["underline",""]],619 "foo<span class=\"line-through\">b<u>[a]</u>r</span>baz",620 [true,true],621 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}],622["foo<span class=\"underline-and-line-through\">[bar]</span>baz",623 [["underline",""]],624 "foo<span class=\"underline-and-line-through\">[bar]</span>baz",625 [true],626 {"underline":[false,true,"",false,true,""]}],627["foo<span class=\"underline-and-line-through\">b[a]r</span>baz",628 [["underline",""]],629 "foo<span class=\"underline-and-line-through\">b[a]r</span>baz",630 [true],631 {"underline":[false,true,"",false,true,""]}],632["fo[o<u>b]ar</u>baz",633 [["underline",""]],634 "fo<u>[ob]ar</u>baz",635 [true],636 {"underline":[true,false,"",false,true,""]}],637["foo<u>ba[r</u>b]az",638 [["underline",""]],639 "foo<u>ba[rb]</u>az",640 [true],641 {"underline":[true,false,"",false,true,""]}],642["fo[o<u>bar</u>b]az",643 [["stylewithcss","true"],["underline",""]],644 "fo<span style=\"text-decoration:underline\">[obarb]</span>az",645 [true,true],646 {"stylewithcss":[false,false,"",false,true,""],"underline":[true,false,"",false,true,""]}],647["fo[o<u>bar</u>b]az",648 [["stylewithcss","false"],["underline",""]],649 "fo<u>[obarb]</u>az",650 [true,true],651 {"stylewithcss":[false,true,"",false,false,""],"underline":[true,false,"",false,true,""]}],652["foo[<u>b]ar</u>baz",653 [["stylewithcss","true"],["underline",""]],654 "foo[b]<span style=\"text-decoration:underline\">ar</span>baz",655 [true,true],656 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],657["foo[<u>b]ar</u>baz",658 [["stylewithcss","false"],["underline",""]],659 "foo[b]<u>ar</u>baz",660 [true,true],661 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],662["foo<u>ba[r</u>]baz",663 [["stylewithcss","true"],["underline",""]],664 "foo<span style=\"text-decoration:underline\">ba</span>[r]baz",665 [true,true],666 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],667["foo<u>ba[r</u>]baz",668 [["stylewithcss","false"],["underline",""]],669 "foo<u>ba</u>[r]baz",670 [true,true],671 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],672["foo[<u>bar</u>]baz",673 [["stylewithcss","true"],["underline",""]],674 "foo[bar]baz",675 [true,true],676 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],677["foo[<u>bar</u>]baz",678 [["stylewithcss","false"],["underline",""]],679 "foo[bar]baz",680 [true,true],681 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],682["foo<u>[bar]</u>baz",683 [["stylewithcss","true"],["underline",""]],684 "foo[bar]baz",685 [true,true],686 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],687["foo<u>[bar]</u>baz",688 [["stylewithcss","false"],["underline",""]],689 "foo[bar]baz",690 [true,true],691 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],692["foo{<u>bar</u>}baz",693 [["stylewithcss","true"],["underline",""]],694 "foo{bar}baz",695 [true,true],696 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}],697["foo{<u>bar</u>}baz",698 [["stylewithcss","false"],["underline",""]],699 "foo{bar}baz",700 [true,true],701 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}],702["fo[o<span style=text-decoration:underline>b]ar</span>baz",703 [["underline",""]],704 "fo<span style=\"text-decoration:underline\">[ob]ar</span>baz",705 [true],706 {"underline":[true,false,"",false,true,""]}],707["<ins>fo[o</ins><u>b]ar</u>",708 [["stylewithcss","true"],["underline",""]],709 "<ins>fo[o</ins>b]<span style=\"text-decoration:underline\">ar</span>",710 [true,true],711 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",true,false,""]}],712["<ins>fo[o</ins><u>b]ar</u>",713 [["stylewithcss","false"],["underline",""]],714 "<ins>fo[o</ins>b]<u>ar</u>",715 [true,true],716 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",true,false,""]}],717["<u>fo[o</u><ins>b]ar</ins>",718 [["stylewithcss","true"],["underline",""]],719 "<span style=\"text-decoration:underline\">fo</span>[o<ins>b]ar</ins>",720 [true,true],721 {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",true,false,""]}],722["<u>fo[o</u><ins>b]ar</ins>",723 [["stylewithcss","false"],["underline",""]],724 "<u>fo</u>[o<ins>b]ar</ins>",725 [true,true],726 {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",true,false,""]}]...

Full Screen

Full Screen

compareinnerhtml.js

Source:compareinnerhtml.js Github

copy

Full Screen

1/* bender-tags: editor,unit,utils */2( function() {3 'use strict';4 var compatHtmlArgs,5 originalCompatHtml = bender.tools.compatHtml,6 htmlTools = bender.tools.html,7 fillerBr = CKEDITOR.env.needsBrFiller ? '<br />' : '',8 fillerBoth = CKEDITOR.env.needsBrFiller ? '<br />' : '&nbsp;',9 fillerBrPattern = fillerBr ? '(<br />)?' : '';10 bender.tools.compatHtml = function( html, noInterWS, sortAttributes, fixZWS, fixStyles, fixNbsp, noTempElements ) {11 compatHtmlArgs = {12 noInterWS: !!noInterWS,13 sortAttributes: !!sortAttributes,14 fixZWS: !!fixZWS,15 fixStyles: !!fixStyles,16 fixNbsp: !!fixNbsp,17 noTempElements: !!noTempElements18 };19 return originalCompatHtml.call( bender.tools, html, noInterWS, sortAttributes, fixZWS, fixStyles, fixNbsp, noTempElements );20 };21 // Tests compareInnerHtml and options forwarding to compatHtml.22 function t( ret, expected, actual, options, expectedCompatHtmlArgs ) {23 return function() {24 // In case compatHtml was not called at all.25 compatHtmlArgs = {};26 assert.areSame( ret, htmlTools.compareInnerHtml( expected, actual, options ), 'returned value' );27 if ( expectedCompatHtmlArgs ) {28 for ( var arg in expectedCompatHtmlArgs ) {29 assert.areSame( expectedCompatHtmlArgs[ arg ], compatHtmlArgs[ arg ],30 'compatHtml\'s argument: ' + arg );31 }32 }33 };34 }35 // Tests prepareInnerHtmlForComparison.36 function th( expected, innerHtmlToPrepare, options ) {37 return function() {38 assert.areSame( expected, htmlTools.prepareInnerHtmlForComparison( innerHtmlToPrepare, options ) );39 };40 }41 // Tests prepareInnerHtmlPattern.42 function tp( expected, patternSource ) {43 return function() {44 var actual = htmlTools.prepareInnerHtmlPattern( patternSource ).toString()45 // FF escapes '/' and Chrome does not - unify this.46 .replace( /\\\//g, '/' );47 assert.areSame( expected.toString(), actual );48 };49 }50 bender.test( {51 // Options ------------------------------------------------------------52 'opts.noInterWS defaults to false': t( true, '', '', null, { noInterWS: false } ),53 'opts.noInterWS defaults to false 2': t( true, '', '', {}, { noInterWS: false } ),54 'opts.noInterWS is passed': t( true, '', '', { noInterWS: true }, { noInterWS: true } ),55 'opts.fixStyles defaults to false': t( true, '', '', null, { fixStyles: false } ),56 'opts.fixStyles is passed': t( true, '', '', { fixStyles: true }, { fixStyles: true } ),57 'opts.sortAttributes defaults to true': t( true, '', '', null, { sortAttributes: true } ),58 'opts.fixZWS defaults to true': t( true, '', '', null, { fixZWS: true } ),59 'opts.fixNbsp defaults to true': t( true, '', '', null, { fixNbsp: true } ),60 'opts.noTempElements defaults to false': t( true, '', '', null, { noTempElements: false } ),61 'multiple opts': t( true, '', '', { fixNbsp: false, fixStyles: true }, { fixZWS: true, fixNbsp: false, fixStyles: true } ),62 // Passing ------------------------------------------------------------63 'simple string': t( true, 'foo', 'foo' ),64 'simple element': t( true, '<b>foo</b>', '<B>foo</B>' ),65 'bogus possible, not exists': t( true, 'a@', 'a' ),66 'bogus possible, not exists - br/nbsp': t( true, 'a@@', 'a' ),67 // Obvious simplification - &nbsp; can't be a filler in this place, but that68 // is developer's duty to use @ correctly.69 'bogus possible, exists': t( true, 'a@', 'a' + fillerBr ),70 'bogus expected, exists': t( true, 'a@!', 'a' + fillerBr ),71 'bogus possible, exists - br/nbsp': t( true, 'a@@', 'a' + fillerBoth ),72 'multiple boguses': t( true, '<p>a@</p><p>b@</p><p>c@</p>', '<p>a' + fillerBr + '</p><p>b</p><p>c' + fillerBr + '</p>' ),73 'regexp conflict [': t( true, 'ba[r', 'ba[r' ),74 'markers 1 - no opts.compareSelection': t( true, 'ba[r]', 'ba[r]' ),75 'markers 2 - no opts.compareSelection': t( true, 'ba{}r', 'ba{}r' ),76 'markers 3 - no opts.compareSelection': t( true, '<ul><li>[</li><li>a</li></ul>', '<ul>[<li>a</li></ul>' ),77 'markers 1 - opts.compareSelection': t( true, 'ba[r}', 'ba[r}', { compareSelection: true } ),78 'markers 2 - opts.compareSelection': t( true, 'ba{}r', 'ba{}r', { compareSelection: true } ),79 'markers 3 - opts.compareSelection': t( true, 'ba[]r', 'ba[]r', { compareSelection: true } ),80 'markers 4 - opts.compareSelection': t( true, '<ul>[<li>a</li>]</ul>', '<ul>[<li>a</li>]</ul>', { compareSelection: true } ),81 'markers 1 - opts.compare&normalizeSelection': t( true, 'ba[r]', 'ba{r}', { compareSelection: true, normalizeSelection: true } ),82 'markers 2 - opts.compare&normalizeSelection': t( true, 'ba^r', 'ba{}r', { compareSelection: true, normalizeSelection: true } ),83 'markers 3 - opts.compare&normalizeSelection': t( true, 'ba^r', 'ba[]r', { compareSelection: true, normalizeSelection: true } ),84 'markers 4 - opts.compare&normalizeSelection': t( true, '<ul>[<li>a</li>]</ul>', '<ul>[<li>a</li>]</ul>', { compareSelection: true, normalizeSelection: true } ),85 // Failing ------------------------------------------------------------86 'simple string - fail': t( false, 'foo', 'bar' ),87 'simple element - fail': t( false, '<b>foo</b>', '<I>foo</I>' ),88 'not expected bogus - fail': t( false, '<p>foo<br /></p>', '<p>foo</p>' ),89 'bogus expected, not exists': t( !CKEDITOR.env.needsBrFiller, 'a@!', 'a' ),90 'br bogus expected, nbsp given': t( false, 'a@', 'a&nbsp;' ),91 'br/nbsp bogus expected, nbsp/br given': t( false, 'a@@', 'a' + CKEDITOR.env.needsBrFiller ? '&nbsp;' : '<br />' ),92 // Expected part has to be regexified if special characters are not escaped93 // bad things may happen.94 'regexp conflict * - fail': t( false, 'ba*r', 'br' ),95 'regexp - partial match - start - fail': t( false, 'bar', 'barx' ),96 'regexp - partial match - end - fail': t( false, 'bar', 'xbar' ),97 'markers 1 - no opts.compareSelection - fail': t( false, 'bar', 'ba[]r' ),98 'markers 2 - no opts.compareSelection - fail': t( false, 'ba{}r', 'ba[]r' ),99 'markers - opts.compareSelection - fail': t( false, 'ba{}r', 'ba[]r', { compareSelection: true } ),100 'markers - opts.compare&normalizeSelection - fail': t( false, 'ba[]r', 'ba[]r', { compareSelection: true, normalizeSelection: true } ),101 // Prepare inner HTML (because compareInnerHtml's tests cover most cases these are simpler).102 'prep inner HTML - basic': th( 'foo', 'foo' ),103 'prep inner HTML - HTML is processed': th( '<b>foo</b>', '<B >foo</b>' ),104 'prep inner HTML - attributes sorting': th( '<b bar="2" foo="1">foo</b>', '<b foo="1" bar="2">foo</b>' ),105 'prep inner HTML - no attributes sorting': th( '<b foo="1" bar="2">foo</b>', '<b foo="1" bar="2">foo</b>', { sortAttributes: false } ),106 'prep inner HTML - no interws default': th( '<b>foo <img src="x" /></b> bar', '<b>foo <img src="x" /></b> bar' ),107 'prep inner HTML - no interws': th( '<b>foo<img src="x" /></b>bar', '<b>foo <img src="x" /></b> bar', { noInterWS: true } ),108 'prep inner HTML - no compare sel': th( '<ul><li>[</li><li>a</li><li>]</li></ul>', '<ul>[<li>a</li>]</ul>' ),109 'prep inner HTML - compare sel': th( '<ul>[<li>a</li>]</ul>', '<ul>[<li>a</li>]</ul>', { compareSelection: true } ),110 'prep inner HTML - no normalize sel': th( '<p>[]a{b}c</p>', '<p>[]a{b}c</p>' ),111 'prep inner HTML - normalize sel': th( '<p>^a[b]c</p>', '<p>[]a{b}c</p>', { compareSelection: true, normalizeSelection: true } ),112 'prep inner HTML - no strip temp': th( 'a<i data-cke-temp="1">b</i>', 'a<i data-cke-temp="1">b</i>' ),113 'prep inner HTML - strip temp': th( 'a', 'a<i data-cke-temp="1">b</i>', { noTempElements: true } ),114 // Prepare pattern (because compareInnerHtml's tests cover most cases these are simpler).115 'prep pattern - basic': tp( '/^foo$/', 'foo' ),116 'prep pattern - escaping': tp( '/^f\\.o\\*o$/', 'f.o*o' ),117 'prep pattern - boguses': tp( '/^f' + fillerBrPattern + 'oo' + fillerBrPattern + '$/', 'f@oo@' ),118 // Misc ---------------------------------------------------------------119 'test does not modify options object': function() {120 var opts = {121 fixStyles: true122 },123 strOpts = JSON.stringify( opts );124 htmlTools.compareInnerHtml( 'a', 'a', opts );125 assert.areSame( strOpts, JSON.stringify( opts ), 'options object has not been modified' );126 },127 'test on IE8 expando attributes are removed': function() {128 if ( !CKEDITOR.env.ie || CKEDITOR.env.version > 8 ) {129 assert.ignore();130 }131 assert.isTrue( htmlTools.compareInnerHtml(132 '<p>foo<i bar="2" foo="1">bar</i></p>',133 '<p data-cke-expando="123ok">foo<i foo="1" data-cke-expando="" bar="2">bar</i></p>' ) );134 }135 } );...

Full Screen

Full Screen

jquery.baslider.js

Source:jquery.baslider.js Github

copy

Full Screen

1// Before and After Slider2// 3// Author: Vince Gonzales4// GitHub: https://github.com/vincegonzalez/baslider5// Demo: http://mynameisvince.com/baslider/678(function($){9 $.fn.extend({10 beforeAfter: function() {1112 $(this).each(function () {13 'use strict';1415 var baContainer = $(this);16 17 var afterImageH, afterImageW, html, posX, jQuery = $(this);18 19 var percentage = 50;20 var afterImage = $('.ba-slider img:last', baContainer);21 afterImageH = afterImage.height();22 afterImageW = afterImage.width();2324 $(baContainer).height(afterImageH);2526 $('.ba-slider img:first', baContainer).wrap('<div class="ba-slider-before-image"/>').width(afterImageW);27 $('.ba-slider-before-image', baContainer).css({width: percNum(percentage)});28 $('img', baContainer).addClass('ba-slider-image');2930 html = '<div class="ba-control"><div class="ba-control-area"><div class="ba-control-bar"><span class="ba-left-arrow"/><span class="ba-control-handle"> <i class="fa fa-home icon"></i> </span><span class="ba-right-arrow" /></div></div></div>';3132 baContainer.append(html);33 34 var slider = baContainer.find('.ba-control');35 var baBar = slider.find('.ba-control-area');36 var baHoverEl = baContainer.find('*');37 var startOffset, holderOffset, sliderWidth, handleWidth;3839 baBar.css({left: percNum(percentage)});4041 // EVENTS4243 // Resize44 $(window).on('resize', resizeHandler);4546 // Drag47 baBar.on('mousedown', function(e) {48 e.preventDefault(); 49 holderOffset = slider.offset().left;50 startOffset = baBar.offset().left - holderOffset;51 sliderWidth = slider.width();52 53 $(document).on('mousemove', moveHandler).on('mouseup', stopHandler);54 });5556 // Hover57 baContainer.on('mouseover', function(e) {58 $('.ba-left-arrow, .ba-right-arrow, .ba-control-handle', baContainer).filter(':not(:animated)').fadeIn();59 });60 baContainer.on('mouseleave', function(e) {61 $('.ba-left-arrow, .ba-right-arrow, .ba-control-handle', baContainer).fadeOut();62 });6364 // Click65 baContainer.on('click', function(e) {66 e.preventDefault(); 67 var clickX = e.pageX - $(this).offset().left;68 var posP = (clickX / slider.width())*100;6970 posX = Math.round(Math.min(Math.max(0, posP), 100));7172 baBar.stop().animate({73 left: percNum(posX)74 });7576 $('.ba-slider-before-image', baContainer).stop().animate({77 width: percNum(posX)78 }); 79 });8081 baContainer.on('touchmove', function(e) {82 e.preventDefault(); 8384 var touchX = e.originalEvent.targetTouches[0].pageX;85 var clickX = touchX - slider.offset().left;86 var posP = (clickX / slider.width())*100;8788 posX = Math.round(Math.min(Math.max(0, posP), 100));8990 baBar.css({91 left: percNum(posX)92 });9394 $('.ba-slider-before-image', baContainer).width(percNum(posX));95 });9697 // FUNCTIONS98 function moveHandler(e) {99 var posX = e.pageX - holderOffset;100 var posP = (posX / sliderWidth)*100;101102 posX = Math.floor(Math.min(Math.max(0, posP), 100));103 104 baBar.css({105 left: percNum(posX)106 });107108 $('.ba-slider-before-image', baContainer).width(percNum(posX));109 }110 function stopHandler() {111 $(document).off('mousemove', moveHandler).off('mouseup', stopHandler);112 }113 function resizeHandler(){114 afterImageH = afterImage.height();115 afterImageW = afterImage.width();116 $('.ba-slider', baContainer).height(afterImageH);117 $('.ba-control', baContainer).height(afterImageH);118 $('.ba-slider-before-image img', baContainer).width(afterImageW);119 baContainer.height(afterImageH);120 }121 function percNum(num) {122 return num + '%';123 }124125 // Clean up of overflow issues126 resizeHandler();127128 });129 }130 }); ...

Full Screen

Full Screen

baSidebarHelpers.directive.js

Source:baSidebarHelpers.directive.js Github

copy

Full Screen

1/**2 * @author v.lugovsky3 * created on 03.05.20164 */5(function () {6 'use strict';7 angular.module('BlurAdmin.theme.components')8 .directive('baSidebarToggleMenu', baSidebarToggleMenu)9 .directive('baSidebarCollapseMenu', baSidebarCollapseMenu)10 .directive('baSidebarTogglingItem', baSidebarTogglingItem)11 .controller('BaSidebarTogglingItemCtrl', BaSidebarTogglingItemCtrl)12 .directive('baUiSrefTogglingSubmenu', baUiSrefTogglingSubmenu)13 .directive('baUiSrefToggler', baUiSrefToggler);14 /** @ngInject */15 function baSidebarToggleMenu(baSidebarService) {16 return {17 restrict: 'A',18 link: function(scope, elem) {19 elem.on('click', function($evt) {20 $evt.originalEvent.$sidebarEventProcessed = true;21 scope.$apply(function() {22 baSidebarService.toggleMenuCollapsed();23 });24 });25 }26 };27 }28 /** @ngInject */29 function baSidebarCollapseMenu(baSidebarService) {30 return {31 restrict: 'A',32 link: function(scope, elem) {33 elem.on('click', function($evt) {34 $evt.originalEvent.$sidebarEventProcessed = true;35 if (!baSidebarService.isMenuCollapsed()) {36 scope.$apply(function() {37 baSidebarService.setMenuCollapsed(true);38 });39 }40 });41 }42 };43 }44 /** @ngInject */45 function baSidebarTogglingItem() {46 return {47 restrict: 'A',48 controller: 'BaSidebarTogglingItemCtrl'49 };50 }51 /** @ngInject */52 function BaSidebarTogglingItemCtrl($scope, $element, $attrs, $state, baSidebarService) {53 var vm = this;54 var menuItem = vm.$$menuItem = $scope.$eval($attrs.baSidebarTogglingItem);55 if (menuItem && menuItem.subMenu && menuItem.subMenu.length) {56 vm.$$expandSubmenu = function() { console.warn('$$expandMenu should be overwritten by baUiSrefTogglingSubmenu') };57 vm.$$collapseSubmenu = function() { console.warn('$$collapseSubmenu should be overwritten by baUiSrefTogglingSubmenu') };58 var subItemsStateRefs = baSidebarService.getAllStateRefsRecursive(menuItem);59 vm.$expand = function() {60 vm.$$expandSubmenu();61 $element.addClass('ba-sidebar-item-expanded');62 };63 vm.$collapse = function() {64 vm.$$collapseSubmenu();65 $element.removeClass('ba-sidebar-item-expanded');66 };67 vm.$toggle = function() {68 $element.hasClass('ba-sidebar-item-expanded') ?69 vm.$collapse() :70 vm.$expand();71 };72 if (_isState($state.current)) {73 $element.addClass('ba-sidebar-item-expanded');74 }75 $scope.$on('$stateChangeStart', function (event, toState) {76 if (!_isState(toState) && $element.hasClass('ba-sidebar-item-expanded')) {77 vm.$collapse();78 $element.removeClass('ba-sidebar-item-expanded');79 }80 });81 $scope.$on('$stateChangeSuccess', function (event, toState) {82 if (_isState(toState) && !$element.hasClass('ba-sidebar-item-expanded')) {83 vm.$expand();84 $element.addClass('ba-sidebar-item-expanded');85 }86 });87 }88 function _isState(state) {89 return state && subItemsStateRefs.some(function(subItemState) {90 return state.name.indexOf(subItemState) == 0;91 });92 }93 }94 /** @ngInject */95 function baUiSrefTogglingSubmenu($state) {96 return {97 restrict: 'A',98 require: '^baSidebarTogglingItem',99 link: function(scope, el, attrs, baSidebarTogglingItem) {100 baSidebarTogglingItem.$$expandSubmenu = function() { el.slideDown(); };101 baSidebarTogglingItem.$$collapseSubmenu = function() { el.slideUp(); };102 }103 };104 }105 /** @ngInject */106 function baUiSrefToggler(baSidebarService) {107 return {108 restrict: 'A',109 require: '^baSidebarTogglingItem',110 link: function(scope, el, attrs, baSidebarTogglingItem) {111 el.on('click', function() {112 if (baSidebarService.isMenuCollapsed()) {113 // If the whole sidebar is collapsed and this item has submenu. We need to open sidebar.114 // This should not affect mobiles, because on mobiles sidebar should be hidden at all115 scope.$apply(function() {116 baSidebarService.setMenuCollapsed(false);117 });118 baSidebarTogglingItem.$expand();119 } else {120 baSidebarTogglingItem.$toggle();121 }122 });123 }124 };125 }...

Full Screen

Full Screen

baslider.js

Source:baslider.js Github

copy

Full Screen

1'use strict';2(function($){3 $.fn.extend({4 beforeAfter: function() {5 $(this).each(function() {6 var baContainer = $(this);7 var percentage = 50;8 var afterImage = $('img:last', baContainer);9 var afterImageH = afterImage.height();10 var afterImageW = afterImage.width();11 $(baContainer).height(afterImageH);12 $('img:first', baContainer).wrap('<div class="ba-slider-before-image"/>').width(afterImageW);13 $('.ba-slider-before-image', baContainer).css({width: percNum(percentage)})14 $('img', baContainer).addClass('ba-slider-image');15 var html = '<div class="ba-control"><div class="ba-control-area"><div class="ba-control-bar"><span class="ba-left-arrow" /><span class="ba-control-handle" /><span class="ba-right-arrow" /></div></div></div>';16 baContainer.append(html);17 18 var slider = baContainer.find('.ba-control');19 var baBar = slider.find('.ba-control-area');20 var baHoverEl = baContainer.find('*');21 var startOffset, holderOffset, sliderWidth, handleWidth;22 baBar.css({left: percNum(percentage)});23 // EVENTS24 // Resize25 $(window).on('resize', resizeHandler);26 // Drag27 baBar.on('mousedown', function(e) {28 e.preventDefault(); 29 holderOffset = slider.offset().left;30 startOffset = baBar.offset().left - holderOffset;31 sliderWidth = slider.width();32 33 $(document).on('mousemove', moveHandler).on('mouseup', stopHandler);34 });35 // Hover36 baContainer.on('mouseover', function(e) {37 $('.ba-left-arrow, .ba-right-arrow, .ba-control-handle', baContainer).filter(':not(:animated)').fadeIn();38 });39 baContainer.on('mouseleave', function(e) {40 $('.ba-left-arrow, .ba-right-arrow, .ba-control-handle', baContainer).fadeOut();41 });42 // Click43 baContainer.on('click', function(e) {44 e.preventDefault(); 45 var clickX = e.pageX - $(this).offset().left;46 var posP = (clickX / slider.width())*100;47 var posX = Math.round(Math.min(Math.max(0, posP), 100));48 baBar.stop().animate({49 left: percNum(posX)50 });51 $('.ba-slider-before-image', baContainer).stop().animate({52 width: percNum(posX)53 }); 54 });55 baContainer.on('touchmove', function(e) {56 e.preventDefault(); 57 var touchX = e.originalEvent.targetTouches[0].pageX;58 var clickX = touchX - slider.offset().left;59 var posP = (clickX / slider.width())*100;60 var posX = Math.round(Math.min(Math.max(0, posP), 100));61 baBar.css({62 left: percNum(posX)63 });64 $('.ba-slider-before-image', baContainer).width(percNum(posX));65 });66 // FUNCTIONS67 function moveHandler(e) {68 var posX = e.pageX - holderOffset;69 var posP = (posX / sliderWidth)*100;70 posX = Math.floor(Math.min(Math.max(0, posP), 100));71 72 baBar.css({73 left: percNum(posX)74 });75 $('.ba-slider-before-image', baContainer).width(percNum(posX));76 }77 function stopHandler() {78 $(document).off('mousemove', moveHandler).off('mouseup', stopHandler);79 }80 function resizeHandler(){81 afterImageH = afterImage.height();82 afterImageW = afterImage.width();83 $('.ba-slider', baContainer).height(afterImageH);84 $('.ba-control', baContainer).height(afterImageH);85 $('.ba-slider-before-image img', baContainer).width(afterImageW);86 baContainer.height(afterImageH);87 }88 function percNum(num) {89 return num + '%';90 }91 // Clean up of overflow issues92 resizeHandler();93 });94 }95 });...

Full Screen

Full Screen

713.js

Source:713.js Github

copy

Full Screen

1sunrise.extend(gg.aa.Oq, {2 instances: m,3 Ka: function () {4 gg.aa.protocol.ba.ja.Qa.Ka(R.Gq, function (c, f) {5 gg.aa.protocol.ba.ja.jna(c, f);6 });7 gg.aa.protocol.ba.ja.Qa.Ka(R.Fq, function (c, f) {8 gg.aa.Eg.disconnect(c, f);9 });10 gg.aa.protocol.ba.ja.Qa.Ka(R.bi, function (c, f) {11 gg.aa.Eg.disconnect(c, f);12 });13 gg.aa.protocol.ba.ja.Qa.Ka(R.Jn, function (c, f) {14 gg.aa.Eg.disconnect(c, f);15 });16 gg.aa.protocol.ba.ja.Qa.Ka(R.$k, function (c, f) {17 gg.aa.Eg.disconnect(c, f);18 });19 gg.aa.protocol.ba.ja.Qa.Ka(R.KD, function () {20 gg.aa.protocol.ba.ja.Fqa();21 });22 gg.aa.protocol.ba.ja.Qa.Ka(R.Xk, function (c, f) {23 gg.aa.protocol.ba.ja.oi(c, f);24 });25 gg.aa.protocol.ba.ja.Qa.Ka(R.Yk, function (c, f) {26 gg.aa.protocol.ba.ja.oi(c, f);27 });28 gg.aa.protocol.ba.ja.Qa.Ka(R.Zk, function (c, f) {29 gg.aa.protocol.ba.ja.oi(c, f);30 });31 gg.aa.protocol.ba.ja.Qa.Ka(R.In, function (c, f) {32 gg.aa.protocol.ba.ja.oi(c, f);33 });34 gg.aa.protocol.ba.ja.Qa.Ka(R.Kq, function (c, f) {35 gg.aa.protocol.ba.ja.oi(c, f);36 });37 gg.aa.protocol.ba.ja.Qa.Ka(R.vv, function (c, f) {38 gg.aa.protocol.ba.ja.oi(c, f);39 });40 gg.aa.protocol.ba.ja.Qa.Ka(R.Kn, function (c, f) {41 gg.aa.protocol.ba.ja.oi(c, f);42 });43 gg.aa.protocol.ba.ja.Qa.Ka(R.Eq, function (c, f) {44 gg.aa.protocol.ba.ja.oi(c, f);45 });46 gg.aa.protocol.ba.ja.Qa.Ka(R.OD, function (c, h) {47 var f = h.Kpa;48 gg.aa.protocol.ba.ja.Fi[f] && h.nt === O.TA && h.Cka === O.caa && (gg.aa.protocol.ba.ja.Fi[f].callback(gg.aa.protocol.ba.cV, gg.aa.protocol.ba.ja.Fi[f].uin, h), clearTimeout(gg.aa.protocol.ba.ja.Fi[f].timer), delete gg.aa.protocol.ba.ja.Fi[f]);49 gg.aa.protocol.ba.ja.oi(c, h);50 });51 gg.aa.protocol.ba.ja.Qa.Ka(R.MD, function () {52 gg.aa.protocol.ba.ja.disconnect();53 gg.aa.protocol.ba.ja.Qa.trigger(R.$k);54 });55 gg.aa.protocol.ba.ja.Qa.Ka(R.wv, function (c, f) {56 gg.aa.protocol.ba.ja.connect();57 gg.aa.protocol.ba.ja.Qa.trigger(R.LD, f);58 });59 gg.aa.protocol.ba.ja.Qa.Ka(R.uv, function () {60 if (gg.aa.protocol.ba.ja.Fp) {61 clearTimeout(gg.aa.protocol.ba.ja.Fp), gg.aa.protocol.ba.ja.Fp = m;62 }63 });64 gg.aa.protocol.ba.ja.Qa.Ka(R.Jq, function () {65 if (gg.aa.protocol.ba.ja.Eo) {66 clearTimeout(gg.aa.protocol.ba.ja.Eo), gg.aa.protocol.ba.ja.Eo = m;67 }68 });69 gg.aa.protocol.ba.ja.Qa.Ka(R.Hq, function (c, h) {70 var f = h.ec;71 gg.aa.protocol.ba.ja.Oh[f] && h.xr === O.TA && (clearTimeout(gg.aa.protocol.ba.ja.Oh[f].timer), gg.aa.protocol.ba.ja.Oh[f].callback(m, gg.aa.protocol.ba.ja.Oh[f].uin, h), delete gg.aa.protocol.ba.ja.Oh[f]);72 });73 gg.aa.protocol.ba.ja.Qa.Ka(R.Hq, function (c, h) {74 var f = h.ec;75 gg.aa.protocol.ba.ja.Nh[f] && h.xr === O.oO && (clearTimeout(gg.aa.protocol.ba.ja.Nh[f].timer), gg.aa.protocol.ba.ja.Nh[f].callback(m, gg.aa.protocol.ba.ja.Nh[f].Aj, h), delete gg.aa.protocol.ba.ja.Nh[f]);76 });77 },78 Na: function () {79 gg.aa.protocol.ba.ja.Qa.Na(R.Gq);80 gg.aa.protocol.ba.ja.Qa.Na(R.Fq);81 gg.aa.protocol.ba.ja.Qa.Na(R.bi);82 gg.aa.protocol.ba.ja.Qa.Na(R.tv);83 gg.aa.protocol.ba.ja.Qa.Na(R.Jn);84 gg.aa.protocol.ba.ja.Qa.Na(R.$k);85 gg.aa.protocol.ba.ja.Qa.Na(R.Xk);86 gg.aa.protocol.ba.ja.Qa.Na(R.Yk);87 gg.aa.protocol.ba.ja.Qa.Na(R.Kq);88 gg.aa.protocol.ba.ja.Qa.Na(R.vv);89 gg.aa.protocol.ba.ja.Qa.Na(R.Kn);90 gg.aa.protocol.ba.ja.Qa.Na(R.KD);91 gg.aa.protocol.ba.ja.Qa.Na(R.MD);92 gg.aa.protocol.ba.ja.Qa.Na(R.wv);93 }...

Full Screen

Full Screen

baSidebar.directive.js

Source:baSidebar.directive.js Github

copy

Full Screen

1/**2 * @author v.lugovksy3 * created on 16.12.20154 */5(function () {6 'use strict';7 angular.module('BlurAdmin.theme.components')8 .directive('baSidebar', baSidebar);9 /** @ngInject */10 function baSidebar($timeout, baSidebarService, baUtil, layoutSizes) {11 var jqWindow = $(window);12 return {13 restrict: 'E',14 templateUrl: SITE_URL +'/admin/index/ba_sidebar',15 controller: 'BaSidebarCtrl',16 link: function(scope, el) {17 scope.menuHeight = el[0].childNodes[0].clientHeight - 84;18 jqWindow.on('click', _onWindowClick);19 jqWindow.on('resize', _onWindowResize);20 scope.$on('$destroy', function() {21 jqWindow.off('click', _onWindowClick);22 jqWindow.off('resize', _onWindowResize);23 });24 function _onWindowClick($evt) {25 if (!baUtil.isDescendant(el[0], $evt.target) &&26 !$evt.originalEvent.$sidebarEventProcessed &&27 !baSidebarService.isMenuCollapsed() &&28 baSidebarService.canSidebarBeHidden()) {29 $evt.originalEvent.$sidebarEventProcessed = true;30 $timeout(function () {31 baSidebarService.setMenuCollapsed(true);32 }, 10);33 }34 }35 // watch window resize to change menu collapsed state if needed36 function _onWindowResize() {37 var newMenuCollapsed = baSidebarService.shouldMenuBeCollapsed();38 var newMenuHeight = _calculateMenuHeight();39 if (newMenuCollapsed != baSidebarService.isMenuCollapsed() || scope.menuHeight != newMenuHeight) {40 scope.$apply(function () {41 scope.menuHeight = newMenuHeight;42 baSidebarService.setMenuCollapsed(newMenuCollapsed)43 });44 }45 }46 function _calculateMenuHeight() {47 return el[0].childNodes[0].clientHeight - 84;48 }49 }50 };51 }...

Full Screen

Full Screen

baPanel.directive.js

Source:baPanel.directive.js Github

copy

Full Screen

1/**2 * @author v.lugovsky3 * created on 23.12.20154 */5(function () {6 'use strict';7 /**8 * Includes basic panel layout inside of current element.9 */10 angular.module('BlurAdmin.theme')11 .directive('baPanel', baPanel);12 /** @ngInject */13 function baPanel(baPanel, baConfig) {14 return angular.extend({}, baPanel, {15 template: function(el, attrs) {16 var res = '<div class="panel ' + (baConfig.theme.blur ? 'panel-blur' : '') + ' full-invisible ' + (attrs.baPanelClass || '');17 res += '" zoom-in ' + (baConfig.theme.blur ? 'ba-panel-blur' : '') + '>';18 res += baPanel.template(el, attrs);19 res += '</div>';20 return res;21 }22 });23 }...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1const { chromium } = require('playwright');2(async () => {3 const browser = await chromium.launch();4 const context = await browser.newContext();5 const page = await context.newPage();6 await page.screenshot({ path: 'example.png' });7 await browser.close();8})();9const { chromium } = require('playwright');10(async () => {11 const browser = await chromium.launch();12 const context = await browser.newContext();13 const page = await context.newPage();14 await page.screenshot({ path: 'example.png' });15 await browser.close();16})();17const { chromium } = require('playwright');18(async () => {19 const browser = await chromium.launch();20 const context = await browser.newContext();21 const page = await context.newPage();22 await page.screenshot({ path: 'example.png' });23 await browser.close();24})();25const { chromium } = require('playwright');26(async () => {27 const browser = await chromium.launch();28 const context = await browser.newContext();29 const page = await context.newPage();30 await page.screenshot({ path: 'example.png' });31 await browser.close();32})();33const { chromium } = require('playwright');34(async () => {35 const browser = await chromium.launch();36 const context = await browser.newContext();37 const page = await context.newPage();38 await page.screenshot({ path: 'example.png' });39 await browser.close();40})();41const { chromium } = require('playwright');42(async () => {43 const browser = await chromium.launch();44 const context = await browser.newContext();45 const page = await context.newPage();46 await page.screenshot({ path: 'example.png' });47 await browser.close();48})();49const { chromium } =

Full Screen

Using AI Code Generation

copy

Full Screen

1const {chromium} = require('playwright');2(async () => {3 const browser = await chromium.launch();4 const context = await browser.newContext();5 const page = await context.newPage();6 const ba = await page._delegate._browserContext;7 const a = await ba._browser._channel.send('Browser.getVersion');8 console.log(a)9 await browser.close();10})();11{ 'protocolVersion': '1.3',12 'userAgent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/89.0.4389.0 Safari/537.36',13 'jsVersion': '14.16.0'}14const browser = await chromium.launch();15const context = await browser.newContext();16const page = await context.newPage();17const ba = await page._delegate._browserContext;18const a = await ba._browser._channel.send('Browser.getVersion');19console.log(a)20await browser.close();21const browser = await chromium.launch();22const context = await browser.newContext();23const page = await context.newPage();24const ba = await page._delegate._browserContext;25const a = await ba._browser._channel.send('Browser.getVersion');26console.log(a)27await browser.close();

Full Screen

Using AI Code Generation

copy

Full Screen

1const { chromium } = require('playwright');2(async () => {3 const browser = await chromium.launch();4 const page = await browser.newPage();5 await page.screenshot({ path: 'example.png' });6 await browser.close();7})();8const { chromium } = require('playwright');9(async () => {10 const browser = await chromium.launch();11 const page = await browser.newPage();12 await page.screenshot({ path: 'example.png' });13 await browser.close();14})();15const { chromium } = require('playwright');16(async () => {17 const browser = await chromium.launch();18 const page = await browser.newPage();19 await page.screenshot({ path: 'example.png' });20 await browser.close();21})();22const { chromium } = require('playwright');23(async () => {24 const browser = await chromium.launch();25 const page = await browser.newPage();26 await page.screenshot({ path: 'example.png' });27 await browser.close();28})();29const { chromium } = require('playwright');30(async () => {31 const browser = await chromium.launch();32 const page = await browser.newPage();33 await page.screenshot({ path: 'example.png' });34 await browser.close();35})();36const { chromium } = require('playwright');37(async () => {38 const browser = await chromium.launch();39 const page = await browser.newPage();40 await page.screenshot({ path: 'example.png' });41 await browser.close();42})();43const { chromium } = require('playwright');44(async () => {45 const browser = await chromium.launch();

Full Screen

Using AI Code Generation

copy

Full Screen

1const { chromium } = require('playwright-internal');2const browser = await chromium.launch();3const context = await browser.newContext();4const page = await context.newPage();5await browser.close();6const { chromium } = require('playwright');7const browser = await chromium.launch();8const context = await browser.newContext();9const page = await context.newPage();10await browser.close();11const { chromium } = require('playwright-chromium');12const browser = await chromium.launch();13const context = await browser.newContext();14const page = await context.newPage();15await browser.close();16const { firefox } = require('playwright-firefox');17const browser = await firefox.launch();18const context = await browser.newContext();19const page = await context.newPage();20await browser.close();21const { webkit } = require('playwright-webkit');22const browser = await webkit.launch();23const context = await browser.newContext();24const page = await context.newPage();25await browser.close();26const { webkit } = require('playwright');27const browser = await webkit.launch();28const context = await browser.newContext();29const page = await context.newPage();30await browser.close();31const { webkit } = require('playwright-webkit');32const browser = await webkit.launch();33const context = await browser.newContext();34const page = await context.newPage();35await browser.close();36const { webkit } = require('playwright');37const browser = await webkit.launch();38const context = await browser.newContext();39const page = await context.newPage();40await browser.close();

Full Screen

Using AI Code Generation

copy

Full Screen

1const {chromium} = require('playwright');2(async () => {3 const browser = await chromium.launch();4 const page = await browser.newPage();5 await page.screenshot({path: 'google.png'});6 await browser.close();7})();8const {chromium} = require('playwright');9(async () => {10 const browser = await chromium.launch();11 const page = await browser.newPage();12 await page.screenshot({path: 'google.png'});13 await browser.close();14})();15const {chromium} = require('playwright');16(async () => {17 const browser = await chromium.launch();18 const page = await browser.newPage();19 await page.screenshot({path: 'google.png'});20 await browser.close();21})();22const {chromium} = require('playwright');23(async () => {24 const browser = await chromium.launch();25 const page = await browser.newPage();26 await page.screenshot({path: 'google.png'});27 await browser.close();28})();29const {chromium} = require('playwright');30(async () => {31 const browser = await chromium.launch();32 const page = await browser.newPage();33 await page.screenshot({path: 'google.png'});34 await browser.close();35})();36const {chromium} = require('playwright');37(async () => {38 const browser = await chromium.launch();39 const page = await browser.newPage();40 await page.screenshot({path: 'google.png'});41 await browser.close();42})();43const {chromium} = require('playwright');44(async () => {45 const browser = await chromium.launch();46 const page = await browser.newPage();

Full Screen

Using AI Code Generation

copy

Full Screen

1const { chromium } = require('playwright');2const { ba } = require('playwright');3(async () => {4 const browser = await chromium.launch();5 const context = await browser.newContext();6 const page = await context.newPage();7 await browser.close();8})();9const { chromium } = require('playwright');10const { ba } = require('playwright');11(async () => {12 const browser = await chromium.launch();13 const context = await browser.newContext();14 const page = await context.newPage();15 await browser.close();16})();17const { chromium } = require('playwright');18const { ba } = require('playwright');19(async () => {20 const browser = await chromium.launch();21 const context = await browser.newContext();22 const page = await context.newPage();23 await browser.close();24})();25const { chromium } = require('playwright');26const { ba } = require('playwright');27(async () => {28 const browser = await chromium.launch();29 const context = await browser.newContext();30 const page = await context.newPage();31 await browser.close();32})();33const { chromium } = require('playwright');34const { ba } = require('playwright');35(async () => {36 const browser = await chromium.launch();37 const context = await browser.newContext();38 const page = await context.newPage();39 await browser.close();40})();41const { chromium } = require('playwright');42const { ba } = require('playwright');43(async () => {

Full Screen

Using AI Code Generation

copy

Full Screen

1const { Playwright } = require('playwright');2const playwright = new Playwright();3const browser = await playwright['chromium'].launch({ headless: false });4const context = await browser.newContext();5const page = await context.newPage();6await page.screenshot({ path: 'example.png' });7await browser.close();8const { Playwright } = require('playwright');9const playwright = new Playwright();10const browser = await playwright['chromium'].launch({ headless: false });11const context = await browser.newContext();12const page = await context.newPage();13const { Playwright } = require('playwright');14const playwright = new Playwright();15const browser = await playwright['chromium'].launch({ headless: false });16const context = await browser.newContext();17const page = await context.newPage();18const { Playwright } = require('playwright');19const playwright = new Playwright();20const browser = await playwright['chromium'].launch({ headless: false });21const context = await browser.newContext();22const page = await context.newPage();23const { Playwright } = require('playwright');24const playwright = new Playwright();25const browser = await playwright['chromium'].launch({ headless: false });26const context = await browser.newContext();27const page = await context.newPage();28const { Playwright } = require('playwright');29const playwright = new Playwright();30const browser = await playwright['chromium'].launch({ headless: false });31const context = await browser.newContext();32const page = await context.newPage();33const { Playwright } = require('playwright');34const playwright = new Playwright();35const browser = await playwright['chromium'].launch({ headless: false });36const context = await browser.newContext();37const page = await context.newPage();38const { Playwright } = require('playwright');39const playwright = new Playwright();40const browser = await playwright['chromium'].launch({ headless

Full Screen

Using AI Code Generation

copy

Full Screen

1const { ba } = require('playwright');2const { chromium } = require('playwright');3const browser = await chromium.launch();4const context = await browser.newContext();5const page = await context.newPage();6await ba(page, 'click', 'text=Link');7await browser.close();8const { ba } = require('playwright');9const { firefox } = require('playwright');10const browser = await firefox.launch();11const context = await browser.newContext();12const page = await context.newPage();13await ba(page, 'click', 'text=Link');14await browser.close();15const { ba } = require('playwright');16const { webkit } = require('playwright');17const browser = await webkit.launch();18const context = await browser.newContext();19const page = await context.newPage();20await ba(page, 'click', 'text=Link');21await browser.close();22const { ba } = require('playwright');23const { android } = require('playwright');24const browser = await android.launch();25const context = await browser.newContext();26const page = await context.newPage();27await ba(page, 'click', 'text=Link');28await browser.close();29const { ba } = require('playwright');30const { ios } = require('playwright');31const browser = await ios.launch();32const context = await browser.newContext();33const page = await context.newPage();34await ba(page, 'click', 'text=Link');35await browser.close();36const { ba } = require('playwright');37const { electron } = require('playwright');38const browser = await electron.launch();39const context = await browser.newContext();40const page = await context.newPage();41await ba(page, 'click', 'text=Link');42await browser.close();43const { ba } = require('playwright

Full Screen

Using AI Code Generation

copy

Full Screen

1const { chromium } = require('playwright');2const path = require('path');3(async () => {4 const browser = await chromium.launch({ headless: false });5 const context = await browser.newContext({ storageState: 'state.json' });6 const page = await context.newPage();7 await page.screenshot({ path: 'google.png' });8 await browser.close();9})();10const { chromium } = require('playwright');11const path = require('path');12(async () => {13 const browser = await chromium.launch({ headless: false });14 const context = await browser.newContext({ storageState: 'state.json' });15 const page = await context.newPage();16 await page.screenshot({ path: 'google.png' });17 await browser.close();18})();19const { chromium } = require('playwright');20const path = require('path');21(async () => {22 const browser = await chromium.launch({ headless: false });23 const context = await browser.newContext({ storageState: 'state.json' });24 const page = await context.newPage();25 await page.screenshot({ path: 'google.png' });26 await browser.close();27})();28const { chromium } = require('playwright');29const path = require('path');30(async () => {31 const browser = await chromium.launch({ headless: false });32 const context = await browser.newContext({ storageState: 'state.json' });33 const page = await context.newPage();34 await page.screenshot({ path: 'google.png' });35 await browser.close();36})();37const { chromium } = require('playwright');38const path = require('path');39(async () => {40 const browser = await chromium.launch({ headless: false });41 const context = await browser.newContext({ storageState: 'state.json' });42 const page = await context.newPage();43 await page.goto('https

Full Screen

Playwright tutorial

LambdaTest’s Playwright tutorial will give you a broader idea about the Playwright automation framework, its unique features, and use cases with examples to exceed your understanding of Playwright testing. This tutorial will give A to Z guidance, from installing the Playwright framework to some best practices and advanced concepts.

Chapters:

  1. What is Playwright : Playwright is comparatively new but has gained good popularity. Get to know some history of the Playwright with some interesting facts connected with it.
  2. How To Install Playwright : Learn in detail about what basic configuration and dependencies are required for installing Playwright and run a test. Get a step-by-step direction for installing the Playwright automation framework.
  3. Playwright Futuristic Features: Launched in 2020, Playwright gained huge popularity quickly because of some obliging features such as Playwright Test Generator and Inspector, Playwright Reporter, Playwright auto-waiting mechanism and etc. Read up on those features to master Playwright testing.
  4. What is Component Testing: Component testing in Playwright is a unique feature that allows a tester to test a single component of a web application without integrating them with other elements. Learn how to perform Component testing on the Playwright automation framework.
  5. Inputs And Buttons In Playwright: Every website has Input boxes and buttons; learn about testing inputs and buttons with different scenarios and examples.
  6. Functions and Selectors in Playwright: Learn how to launch the Chromium browser with Playwright. Also, gain a better understanding of some important functions like “BrowserContext,” which allows you to run multiple browser sessions, and “newPage” which interacts with a page.
  7. Handling Alerts and Dropdowns in Playwright : Playwright interact with different types of alerts and pop-ups, such as simple, confirmation, and prompt, and different types of dropdowns, such as single selector and multi-selector get your hands-on with handling alerts and dropdown in Playright testing.
  8. Playwright vs Puppeteer: Get to know about the difference between two testing frameworks and how they are different than one another, which browsers they support, and what features they provide.
  9. Run Playwright Tests on LambdaTest: Playwright testing with LambdaTest leverages test performance to the utmost. You can run multiple Playwright tests in Parallel with the LammbdaTest test cloud. Get a step-by-step guide to run your Playwright test on the LambdaTest platform.
  10. Playwright Python Tutorial: Playwright automation framework support all major languages such as Python, JavaScript, TypeScript, .NET and etc. However, there are various advantages to Python end-to-end testing with Playwright because of its versatile utility. Get the hang of Playwright python testing with this chapter.
  11. Playwright End To End Testing Tutorial: Get your hands on with Playwright end-to-end testing and learn to use some exciting features such as TraceViewer, Debugging, Networking, Component testing, Visual testing, and many more.
  12. Playwright Video Tutorial: Watch the video tutorials on Playwright testing from experts and get a consecutive in-depth explanation of Playwright automation testing.

Run Playwright Internal automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful