How to use ba method in fast-check-monorepo

Best JavaScript code snippet using fast-check-monorepo

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 { ba } = require('fast-check');2ba();3const { ba } = require('fast-check-monorepo');4ba();5const { ba } = require('fast-check');6ba();7const { ba } = require('fast-check-monorepo');8ba();9const { ba } = require('fast-check');10ba();11const { ba } = require('fast-check-monorepo');12ba();13const { ba } = require('fast-check');14ba();15const { ba } = require('fast-check-monorepo');16ba();17const { ba } = require('fast-check');18ba();19const { ba } = require('fast-check-monorepo');20ba();21const { ba } = require('fast-check');22ba();23const { ba } = require('fast-check-monorepo');24ba();25const { ba } = require('fast-check');26ba();27const { ba } = require('fast-check-monorepo');28ba();29const { ba } = require('fast-check');30ba();31const { ba } = require('fast-check-monorepo');32ba();33const { ba } = require('fast-check');34ba();

Full Screen

Using AI Code Generation

copy

Full Screen

1const { ba } = require('fast-check-monorepo');2const { ba } = require('fast-check-monorepo');3const { ba } = require('fast-check-monorepo');4const { ba } = require('fast-check-monorepo');5const { ba } = require('fast-check-monorepo');6const { ba } = require('fast-check-monorepo');7const { ba } = require('fast-check-monorepo');8const { ba } = require('fast-check-monorepo');9const { ba } = require('fast-check-monorepo');10const { ba } = require('fast-check-monorepo');11const { ba } = require('fast-check-monorepo');12const { ba } = require('fast-check-monorepo');

Full Screen

Using AI Code Generation

copy

Full Screen

1import { ba } from 'fast-check-monorepo';2import { ba } from 'fast-check-monorepo/lib/ba';3import { ba } from 'fast-check-monorepo/lib/ba/ba';4import { ba } from 'fast-check-monorepo';5import { ba } from 'fast-check-monorepo/lib/ba';6import { ba } from 'fast-check-monorepo/lib/ba/ba';7import { ba } from 'fast-check-monorepo';8import { ba } from 'fast-check-monorepo/lib/ba';9import { ba } from 'fast-check-monorepo/lib/ba/ba';10import { ba } from 'fast-check-monorepo';11import { ba } from 'fast-check-monorepo/lib/ba';12import { ba } from 'fast-check-monorepo/lib/ba/ba';13import { ba } from 'fast-check-monorepo';14import { ba } from 'fast-check-monorepo/lib/ba';15import { ba } from 'fast-check-monorepo/lib/ba/ba';16import { ba } from 'fast-check-monorepo';17import { ba } from 'fast-check-monorepo/lib/ba';18import { ba } from 'fast-check-monorepo/lib/ba/ba';19import { ba } from 'fast-check-monorepo';20import { ba } from 'fast-check-monorepo/lib/ba';21import { ba } from 'fast-check-monorepo/lib/ba/ba';22import { ba } from 'fast-check-monorepo';23import { ba } from 'fast-check-monorepo/lib/ba';24import { ba } from 'fast-check-monorepo/lib/ba/ba';

Full Screen

Using AI Code Generation

copy

Full Screen

1const { ba } = require('fast-check');2ba({3 gen: () => 1,4 assert: () => true,5});6const fc = require('fast-check');7fc.assert(8 fc.property(fc.integer(), fc.integer(), (a, b) => a + b === b + a),9 { verbose: true }10);11const fc = require('fast-check');12fc.assert(13 fc.property(fc.integer(), fc.integer(), (a, b) => a + b === b + a),14 { verbose: true }15);16const fc = require('fast-check');17fc.assert(18 fc.property(fc.integer(), fc.integer(), (a, b) => a + b === b + a),19 { verbose: true }20);21const fc = require('fast-check');22fc.assert(23 fc.property(fc.integer(), fc.integer(), (a, b) => a + b === b + a),24 { verbose: true }25);26const fc = require('fast-check');27fc.assert(28 fc.property(fc.integer(), fc.integer(), (a, b) => a + b === b + a),29 { verbose: true }30);31const fc = require('fast-check');32fc.assert(33 fc.property(fc.integer(), fc.integer(), (

Full Screen

Using AI Code Generation

copy

Full Screen

1const ba = require('fast-check-monorepo/lib/ba');2const fc = require('fast-check');3const gen = fc.array(fc.integer());4const isSorted = (array) => array.every((e, idx) => (idx === 0 || array[idx - 1] <= e));5fc.assert(6 fc.property(gen, (array) => {7 const sorted = ba(array);8 return isSorted(sorted);9 })10);11const ba = require('fast-check/lib/ba');12const fc = require('fast-check');13const gen = fc.array(fc.integer());14const isSorted = (array) => array.every((e, idx) => (idx === 0 || array[idx - 1] <= e));15fc.assert(16 fc.property(gen, (array) => {17 const sorted = ba(array);18 return isSorted(sorted);19 })20);21 at ba (fast-check/lib/ba.js:7:34)22 at Context.<anonymous> (test2.js:15:25)23 {24 },25 {26 },27 {28 }29];30const sorted = array.sort((a, b) => a.age - b.age);31console.log(sorted);32const sorted = array.sort('age');33console.log(sorted

Full Screen

Using AI Code Generation

copy

Full Screen

1import {ba} from '@dubzzz/fast-check'2import {string} from 'fast-check'3const gen = string()4import {ba} from '@dubzzz/fast-check'5import {string} from 'fast-check'6const gen = string()7ba(gen)84 ba(gen)

Full Screen

Using AI Code Generation

copy

Full Screen

1const fastCheck = require('fast-check');2const ba = fastCheck.booleanArray;3const prop = fastCheck.property;4prop(ba, (array) => {5 return (6 array.filter((item) => item === true).length <=7 array.filter((item) => item === false).length8 );9});

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run fast-check-monorepo 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