How to use endSection method in root

Best JavaScript code snippet using root

test_two_line_subsections.py

Source:test_two_line_subsections.py Github

copy

Full Screen

1''' Simple sections experimenting with start and end settings.'''2# %% Imports3import unittest4from typing import List5from pathlib import Path6from pprint import pprint7import re8import sys9#import pandas as pd10#import xlwings as xw11from buffered_iterator import BufferedIterator12import text_reader as tp13from sections import Rule, RuleSet, SectionBreak, ProcessingMethods, Section14# %% Logging15import logging16logging.basicConfig(format='%(name)-20s - %(levelname)s: %(message)s')17logger = logging.getLogger('Two Line SubSection Tests')18logger.setLevel(logging.DEBUG)19#logger.setLevel(logging.INFO)20# %% Test End On First Item21class TestEndOnFirstItem(unittest.TestCase):22 def setUp(self):23 self.test_text = [24 'Text to be ignored',25 'StartSection A',26 'EndSection A',27 'StartSection B',28 'EndSection B',29 'More text to be ignored',30 ]31 def test_false_end_on_first_item(self):32 start_sub_section = Section(33 start_section=SectionBreak('StartSection', break_offset='Before'),34 end_section=SectionBreak('StartSection', break_offset='Before'),35 end_on_first_item=False36 )37 read_1 = start_sub_section.read(self.test_text)38 self.assertListEqual(39 read_1,40 ['StartSection A', 'EndSection A']41 )42 def test_repeating_false_end_on_first_item(self):43 start_sub_section = Section(44 section_name='StartSubSection',45 start_section=SectionBreak('StartSection', break_offset='Before'),46 end_section=SectionBreak('StartSection', break_offset='Before'),47 end_on_first_item=False48 )49 repeating_section = Section(50 section_name='Top Section',51 end_section=SectionBreak('More text to be ignored',52 break_offset='Before'),53 subsections=start_sub_section54 )55 read_1 = repeating_section.read(self.test_text)56 self.assertListEqual(57 read_1,58 [59 ['StartSection A', 'EndSection A'],60 ['StartSection B', 'EndSection B']61 ]62 )63 def test_true_end_on_first_item(self):64 start_sub_section = Section(65 start_section=SectionBreak('StartSection', break_offset='Before'),66 end_section=SectionBreak('StartSection', break_offset='Before'),67 end_on_first_item=True68 )69 read_1 = start_sub_section.read(self.test_text)70 self.assertListEqual(read_1, [])71 def test_end_on_first_item_end_after(self):72 end_sub_section = Section(73 start_section=SectionBreak('EndSection', break_offset='Before'),74 end_section=SectionBreak('EndSection', break_offset='After'),75 end_on_first_item=True76 )77 read_1 = end_sub_section.read(self.test_text)78 self.assertListEqual(read_1, ['EndSection A'])79 def test_no_end_on_first_item_end_after(self):80 end_sub_section = Section(81 start_section=SectionBreak('EndSection', break_offset='Before'),82 end_section=SectionBreak('EndSection', break_offset='After'),83 end_on_first_item=False84 )85 read_1 = end_sub_section.read(self.test_text)86 self.assertListEqual(read_1, ['EndSection A', 'StartSection B', 'EndSection B'])87class TestSingleLineStartSections(unittest.TestCase):88 def setUp(self):89 self.test_text = [90 'Text to be ignored',91 'StartSection A',92 'EndSection A',93 'StartSection B',94 'EndSection B',95 'More text to be ignored',96 ]97 def test_single_line_start_section(self):98 start_sub_section = Section(99 section_name='StartSubSection',100 start_section=SectionBreak('StartSection', break_offset='Before'),101 end_section=SectionBreak('EndSection', break_offset='Before')102 )103 test_iter = BufferedIterator(self.test_text)104 read_1 = start_sub_section.read(test_iter)105 read_2 = start_sub_section.read(test_iter)106 read_3 = start_sub_section.read(test_iter)107 self.assertListEqual(read_1, ['StartSection A'])108 self.assertListEqual(read_2, ['StartSection B'])109 self.assertListEqual(read_3, [])110 def test_single_line_start_section(self):111 start_sub_section = Section(112 section_name='StartSubSection',113 start_section=SectionBreak('StartSection', break_offset='Before'),114 end_section=SectionBreak('EndSection', break_offset='Before')115 )116 full_section = Section(117 section_name='Full',118 end_section=SectionBreak('ignored', break_offset='Before'),119 subsections=[start_sub_section]120 )121 read_1 = full_section.read(self.test_text)122 self.assertListEqual(read_1, [['StartSection A'], ['StartSection B']])123class TestSingleLineEndSections(unittest.TestCase):124 def setUp(self):125 self.test_text = [126 'Text to be ignored',127 'StartSection A',128 'EndSection A',129 'StartSection B',130 'EndSection B',131 'More text to be ignored',132 ]133 def test_single_line_end_like_start_section(self):134 end_sub_section = Section(135 section_name='SubSection',136 start_section=SectionBreak('EndSection', break_offset='Before'),137 end_section=SectionBreak('StartSection', break_offset='Before')138 )139 test_iter = BufferedIterator(self.test_text)140 read_1 = end_sub_section.read(test_iter)141 read_2 = end_sub_section.read(test_iter)142 read_3 = end_sub_section.read(test_iter)143 self.assertListEqual(read_1, ['EndSection A'])144 self.assertListEqual(read_2, ['EndSection B',145 'More text to be ignored'])146 self.assertListEqual(read_3, [])147 def test_single_line_end_before_and_after_section(self):148 end_sub_section = Section(149 section_name='SubSection',150 start_section=SectionBreak('EndSection', break_offset='Before'),151 end_section=SectionBreak('EndSection', break_offset='After')152 )153 test_iter = BufferedIterator(self.test_text)154 read_1 = end_sub_section.read(test_iter)155 read_2 = end_sub_section.read(test_iter)156 read_3 = end_sub_section.read(test_iter)157 self.assertListEqual(read_1, ['EndSection A',158 'StartSection B',159 'EndSection B'])160 self.assertListEqual(read_2, [])161 self.assertListEqual(read_3, [])162 def test_single_line_end_before_and_after_end_on_first_section(self):163 end_sub_section = Section(164 section_name='SubSection',165 start_section=SectionBreak('EndSection', break_offset='Before'),166 end_section=SectionBreak('EndSection', break_offset='After'),167 end_on_first_item=True168 )169 test_iter = BufferedIterator(self.test_text)170 read_1 = end_sub_section.read(test_iter)171 read_2 = end_sub_section.read(test_iter)172 read_3 = end_sub_section.read(test_iter)173 self.assertListEqual(read_1, ['EndSection A'])174 self.assertListEqual(read_2, ['EndSection B'])175 self.assertListEqual(read_3, [])176 def test_single_line_end_before_end_on_first_section(self):177 end_sub_section = Section(178 section_name='SubSection',179 start_section=SectionBreak('EndSection', break_offset='Before'),180 end_section=SectionBreak('EndSection', break_offset='Before'),181 end_on_first_item=True182 )183 test_iter = BufferedIterator(self.test_text)184 read_1 = end_sub_section.read(test_iter)185 read_2 = end_sub_section.read(test_iter)186 read_3 = end_sub_section.read(test_iter)187 self.assertListEqual(read_1, [])188 self.assertListEqual(read_2, [])189 self.assertListEqual(read_3, [])190 def test_single_line_end_always_break_end_on_first_section(self):191 end_sub_section = Section(192 section_name='SubSection',193 start_section=SectionBreak('EndSection', break_offset='Before'),194 end_section=SectionBreak(True, break_offset='After'),195 end_on_first_item=True196 )197 test_iter = BufferedIterator(self.test_text)198 read_1 = end_sub_section.read(test_iter)199 read_2 = end_sub_section.read(test_iter)200 read_3 = end_sub_section.read(test_iter)201 self.assertListEqual(read_1, ['EndSection A'])202 self.assertListEqual(read_2, ['EndSection B'])203 self.assertListEqual(read_3, [])204 def test_single_line_end_always_break_no_end_on_first_section(self):205 end_sub_section = Section(206 section_name='SubSection',207 start_section=SectionBreak('EndSection', break_offset='Before'),208 end_section=SectionBreak(True, break_offset='After'),209 end_on_first_item=False210 )211 test_iter = BufferedIterator(self.test_text)212 read_1 = end_sub_section.read(test_iter)213 read_2 = end_sub_section.read(test_iter)214 read_3 = end_sub_section.read(test_iter)215 self.assertListEqual(read_1, ['EndSection A', 'StartSection B'])216 self.assertListEqual(read_2, ['EndSection B', 'More text to be ignored'])217 self.assertListEqual(read_3, [])218 def test_single_line_end_always_break_section(self):219 end_sub_section = Section(220 section_name='SubSection',221 start_section=SectionBreak('EndSection', break_offset='Before'),222 end_section=SectionBreak(True, break_offset='After')223 )224 test_iter = BufferedIterator(self.test_text)225 read_1 = end_sub_section.read(test_iter)226 read_2 = end_sub_section.read(test_iter)227 read_3 = end_sub_section.read(test_iter)228 self.assertListEqual(read_1, ['EndSection A', 'StartSection B'])229 self.assertListEqual(read_2, ['EndSection B', 'More text to be ignored'])230 self.assertListEqual(read_3, [])231 def test_single_line_end_no_break_section(self):232 end_sub_section = Section(233 section_name='SubSection',234 start_section=SectionBreak('EndSection', break_offset='Before'),235 end_on_first_item=True,236 )237 test_iter = BufferedIterator(self.test_text)238 read_1 = end_sub_section.read(test_iter)239 read_2 = end_sub_section.read(test_iter)240 read_3 = end_sub_section.read(test_iter)241 self.assertListEqual(read_1, ['EndSection A', 'StartSection B',242 'EndSection B',243 'More text to be ignored'])244 self.assertListEqual(read_2, [])245 self.assertListEqual(read_3, [])246class TestCombinedStartEndSingleLineSection(unittest.TestCase):247 def setUp(self):248 self.test_text = [249 'Text to be ignored',250 'StartSection A',251 'EndSection A',252 'StartSection B',253 'EndSection B',254 'More text to be ignored',255 ]256 self.test_text2 = [257 'Text to be ignored',258 'StartSection A',259 'EndSection A',260 'StartSection B',261 'EndSection B',262 'StartSection C',263 'More text to be ignored', # 'ignored' triggers end of top section264 'EndSection C',265 'Even more text to be ignored',266 ]267 self.start_sub_section = Section(268 section_name='StartSubSection',269 start_section=SectionBreak('StartSection', break_offset='Before'),270 end_section=SectionBreak('EndSection', break_offset='Before')271 )272 self.end_sub_section = Section(273 section_name='EndSubSection',274 start_section=SectionBreak('EndSection', break_offset='Before'),275 end_section=SectionBreak(True, break_offset='Before')276 )277 def test_two_single_line_subsections(self):278 full_section = Section(279 section_name='Full',280 subsections=[self.start_sub_section, self.end_sub_section]281 )282 read_1 = full_section.read(self.test_text)283 self.assertListEqual(read_1, [284 [285 ['StartSection A'],286 ['EndSection A']287 ], [288 ['StartSection B'],289 ['EndSection B']290 ]])291 def test_two_single_line_subsections_with_top_section_break(self):292 top_section = Section(293 section_name='Top Section',294 end_section=SectionBreak('ignored', break_offset='Before'),295 subsections=[self.start_sub_section, self.end_sub_section]296 )297 read_1 = top_section.read(self.test_text)298 self.assertListEqual(read_1, [299 [300 ['StartSection A'],301 ['EndSection A']302 ], [303 ['StartSection B'],304 ['EndSection B']305 ]])306 def test_two_single_line_subsections_with_unwanted_middle(self):307 top_section = Section(308 section_name='Top Section',309 end_section=SectionBreak('ignored', break_offset='Before'),310 subsections=[self.start_sub_section, self.end_sub_section]311 )312 read_1 = top_section.read(self.test_text2)313 self.assertListEqual(read_1, [314 [315 ['StartSection A'],316 ['EndSection A']317 ], [318 ['StartSection B'],319 ['EndSection B']320 ], [321 ['StartSection C'],322 [] # Top section stops before reaching 'EndSection C'323 ]])324 def test_two_single_line_subsections_with_unwanted_between_sections(self):325 test_text = [326 'Text to be ignored',327 'StartSection A',328 'EndSection A',329 'More text to be ignored',330 'StartSection B',331 'EndSection B',332 'Even more text to be ignored',333 ]334 full_section = Section(335 section_name='Full',336 subsections=[self.start_sub_section, self.end_sub_section]337 )338 read_1 = full_section.read(test_text)339 self.assertListEqual(read_1, [340 [341 ['StartSection A'],342 ['EndSection A']343 ], [344 ['StartSection B'],345 ['EndSection B']346 ]])347@unittest.skip('Known Failure')348class TestKeepPartial(unittest.TestCase):349 def setUp(self):350 self.test_text = [351 'Text to be ignored',352 'StartSection A',353 'EndSection A',354 'StartSection B',355 'EndSection B',356 'More text to be ignored',357 ]358 self.test_text2 = [359 'Text to be ignored',360 'StartSection A',361 'EndSection A',362 'StartSection B',363 'EndSection B',364 'StartSection C',365 'More text to be ignored', # 'ignored' triggers end of top section366 'EndSection C',367 'Even more text to be ignored',368 ]369 self.start_sub_section = Section(370 section_name='StartSubSection',371 start_section=SectionBreak('StartSection', break_offset='Before'),372 end_section=SectionBreak('EndSection', break_offset='Before')373 )374 self.end_sub_section = Section(375 section_name='EndSubSection',376 start_section=SectionBreak('EndSection', break_offset='Before'),377 end_section=SectionBreak(True, break_offset='Before')378 )379 @unittest.skip('Known Failure')380 def test_keep_partial_False(self):381 top_section = Section(382 section_name='Top Section',383 end_section=SectionBreak('ignored', break_offset='Before'),384 subsections=[self.start_sub_section, self.end_sub_section],385 keep_partial=False386 )387 read_1 = top_section.read(self.test_text2)388 self.assertListEqual(read_1, [389 [390 ['StartSection A'],391 ['EndSection A']392 ], [393 ['StartSection B'],394 ['EndSection B']395 ]])396 @unittest.skip('Known Failure')397 def test_keep_partial_True(self):398 top_section = Section(399 section_name='Top Section',400 end_section=SectionBreak('ignored', break_offset='Before'),401 subsections=[self.start_sub_section, self.end_sub_section],402 keep_partial=True403 )404 read_1 = top_section.read(self.test_text2)405 self.assertListEqual(read_1, [406 [['StartSection A'], ['EndSection A']],407 [['StartSection B'], ['EndSection B']],408 [['StartSection C']]409 ])410 def test_keep_partial_True_simpler_text(self):411 top_section = Section(412 section_name='Top Section',413 end_section=SectionBreak('ignored', break_offset='Before'),414 subsections=[self.start_sub_section, self.end_sub_section],415 keep_partial=True416 )417 read_1 = top_section.read(self.test_text)418 self.assertListEqual(read_1, [419 [['StartSection A'], ['EndSection A']],420 [['StartSection B'], ['EndSection B']]421 ])422 def test_keep_partial_True_only_end_section(self):423 top_section = Section(424 section_name='Top Section',425 end_section=SectionBreak('ignored', break_offset='Before'),426 subsections=[self.end_sub_section],427 keep_partial=True428 )429 read_1 = top_section.read(self.test_text)430 self.assertListEqual(read_1, [['EndSection A'],['EndSection B']])431 @unittest.skip('Known Failure')432 def test_keep_partial_True_missing_end_section(self):433 '''3rd section group should never start because "ignored" top_section434 break line occurs before next "EndSection", so 2nd section never435 finishes.'''436 test_text = [437 'Text to be ignored',438 'StartSection A',439 'EndSection A',440 'StartSection B', # Missing 'EndSection B',441 'StartSection C',442 'More text to be ignored', # 'ignored' triggers end of top section443 'EndSection C',444 'Even more text to be ignored',445 ]446 top_section = Section(447 section_name='Top Section',448 end_section=SectionBreak('ignored', break_offset='Before'),449 subsections=[self.start_sub_section, self.end_sub_section],450 keep_partial=True451 )452 read_1 = top_section.read(test_text)453 self.assertListEqual(read_1, [454 [['StartSection A'], ['EndSection A']],455 [['StartSection B']]456 ])457 def test_keep_partial_False_missing_end_section(self):458 '''3rd section group should never start because "ignored" top_section459 break line occurs before next "EndSection", so 2nd section never460 finishes.'''461 test_text = [462 'Text to be ignored',463 'StartSection A',464 'EndSection A',465 'StartSection B', # Missing 'EndSection B',466 'StartSection C',467 'More text to be ignored', # 'ignored' triggers end of top section468 'EndSection C',469 'Even more text to be ignored',470 ]471 top_section = Section(472 section_name='Top Section',473 end_section=SectionBreak('ignored', break_offset='Before'),474 subsections=[self.start_sub_section, self.end_sub_section],475 keep_partial=False476 )477 read_1 = top_section.read(test_text)478 self.assertListEqual(read_1, [479 [['StartSection A'], ['EndSection A']]480 ])481class TestHysteresis(unittest.TestCase):482 '''Applying repeated "Section.read" calls. Previously, a bug resulted in483 repeated calls produce different effects when full_section contained484 `end_section=SectionBreak('ignored', break_offset='Before')`.485 '''486 def setUp(self):487 self.test_text = [488 'Text to be ignored',489 'StartSection A',490 'EndSection A',491 'StartSection B',492 'EndSection B',493 'More text to be ignored',494 ]495 self.sub_section = Section(496 section_name='SubSection',497 start_section=SectionBreak('StartSection', break_offset='Before', name='SubSectionStart'),498 end_section=SectionBreak('EndSection', break_offset='After', name='SubSectionEnd')499 )500 # Clear Hysteresis by running `full_section` without setting `end_section`501 full_section = Section(502 subsections=self.sub_section,503 keep_partial=False504 )505 a = full_section.read(self.test_text)506 b = full_section.read(self.test_text)507 def test_repeat_calls(self):508 '''Verify that repeat calls to read produce the same result.509 '''510 full_section = Section(511 section_name='Full',512 end_section=SectionBreak('ignored', break_offset='Before'),513 subsections=self.sub_section514 )515 read_1 = full_section.read(self.test_text)516 self.assertListEqual(read_1, [['StartSection A', 'EndSection A'],517 ['StartSection B', 'EndSection B']518 ])519 read_2 = full_section.read(self.test_text)520 self.assertListEqual(read_1, [['StartSection A', 'EndSection A'],521 ['StartSection B', 'EndSection B']522 ])523class TestHysteresis(unittest.TestCase):524 '''Applying repeated "Section.read" calls. Previously, a bug resulted in525 repeated calls produce different effects when full_section contained526 `end_section=SectionBreak('ignored', break_offset='Before')`.527 '''528 def setUp(self):529 self.test_text = [530 'Text to be ignored',531 'StartSection A',532 'EndSection A',533 'StartSection B',534 'EndSection B',535 'More text to be ignored',536 ]537 self.sub_section = Section(538 section_name='SubSection',539 start_section=SectionBreak('StartSection', break_offset='Before', name='SubSectionStart'),540 end_section=SectionBreak('EndSection', break_offset='After', name='SubSectionEnd')541 )542 # Clear Hysteresis by running `full_section` without setting `end_section`543 full_section = Section(544 subsections=self.sub_section,545 keep_partial=False546 )547 a = full_section.read(self.test_text)548 b = full_section.read(self.test_text)549 def test_repeat_calls(self):550 '''Verify that repeat calls to read produce the same result.551 '''552 full_section = Section(553 section_name='Full',554 end_section=SectionBreak('ignored', break_offset='Before'),555 subsections=self.sub_section556 )557 read_1 = full_section.read(self.test_text)558 self.assertListEqual(read_1, [['StartSection A', 'EndSection A'],559 ['StartSection B', 'EndSection B']560 ])561 read_2 = full_section.read(self.test_text)562 self.assertListEqual(read_1, [['StartSection A', 'EndSection A'],563 ['StartSection B', 'EndSection B']564 ])565class TestSourceStatus(unittest.TestCase):566 '''Applying repeated "Section.read" calls. Previously, a bug resulted in567 repeated calls produce different effects when full_section contained568 `end_section=SectionBreak('ignored', break_offset='Before')`.569 '''570 def setUp(self):571 self.test_text = [572 'Text to be ignored',573 'StartSection A',574 'EndSection A',575 'StartSection B',576 'EndSection B',577 'More text to be ignored',578 ]579 def test_repeat_calls(self):580 '''Verify that repeat calls to read produce the same result.581 '''582 sub_section = Section(583 section_name='SubSection',584 start_section=SectionBreak('StartSection', break_offset='Before',585 name='SubSectionStart'),586 end_section=SectionBreak('EndSection', break_offset='After',587 name='SubSectionEnd')588 )589 full_section = Section(590 section_name='Full',591 end_section=SectionBreak('ignored', break_offset='Before'),592 subsections=sub_section593 )594 read_1 = full_section.read(self.test_text)595 self.assertListEqual(read_1,596 [['StartSection A', 'EndSection A'],597 ['StartSection B', 'EndSection B']])598 self.assertListEqual(list(full_section.source.previous_items),599 ['StartSection A', 'EndSection A',600 'StartSection B', 'EndSection B'])601 self.assertListEqual(list(full_section.source.future_items),602 ['More text to be ignored'])603class TestSubsectionContext(unittest.TestCase):604 '''Check full_section and sub_section context dictionaries after reading.605 '''606 def setUp(self):607 self.test_text = [608 'Text to be ignored',609 'StartSection A',610 'EndSection A',611 'Text between sections',612 'StartSection B',613 'EndSection B',614 'More text to be ignored',615 ]616 def test_repeat_calls(self):617 '''Verify that repeat calls to read produce the same result.618 '''619 sub_section = Section(620 section_name='SubSection',621 start_section=SectionBreak('StartSection', break_offset='Before',622 name='SubSectionStart'),623 end_section=SectionBreak('EndSection', break_offset='After',624 name='SubSectionEnd')625 )626 full_section = Section(627 section_name='Top Section',628 end_section=SectionBreak('ignored', break_offset='Before',629 name='End Section'),630 subsections=sub_section631 )632 read_1 = full_section.read(self.test_text, context={'Dummy': 'Blank1'})633 self.assertListEqual(read_1,634 [['StartSection A', 'EndSection A'],635 ['StartSection B', 'EndSection B']])636 self.assertDictEqual(full_section.context, {637 'Break': 'End Section',638 'Current Section': 'Top Section',639 'Dummy': 'Blank1',640 'Event': 'ignored',641 'Skipped Lines': [],642 'Status': 'Break Triggered'643 })644 self.assertDictEqual(sub_section.context, {645 'Break': 'SubSectionStart',646 'Current Section': 'SubSection',647 'Dummy': 'Blank1',648 'Event': 'StartSection',649 'Skipped Lines': ['Text between sections'],650 'Status': 'End of Source'651 })652if __name__ == '__main__':...

Full Screen

Full Screen

GalleryOverlaysUi.js

Source:GalleryOverlaysUi.js Github

copy

Full Screen

...485 .property('bottom', '0')486 .property('margin', '0')487 .property('left', '0')488 .property('right', '0')489 .endSection()490491 .section()492 .match('#qilvgallery_viewer.qilv_shown')493 .property('z-index', '50001')494 .property('display', 'block')495 .endSection()496497 .section()498 .match('#qilvgallery_viewer.qilv_relative')499 .property('position', 'fixed')500 .endSection()501502 .section()503 .match('.qilvgallery_infotip')504 .property('display', 'block')505 .property('position', 'absolute')506 .property('left', '4px')507 .property('top', '4px')508 .property('padding', '15px')509 .property('font-size', '13px')510 .property('background', 'linear-gradient(180deg, #f8f8f8, #dddddd)')511 .property('color', '#000000')512 .property('font-family', '"consolas","courier new",monospace')513 .property('border', '2px solid')514 .property('border-color', '#ffffff #f8f8f8 #b8b8b8 #f8f8f8')515 .property('border-radius', '5px')516 .property('z-index', '50001')517 .endSection()518519 .section()520 .match('.qilvgallery_infotip > pre')521 .property('margin', '0')522 .endSection()523524 .section()525 .match('.qilvgallery_preload_gauge')526 .property('z-index', '50101')527 .property('border', '1px solid black')528 .property('width', '100%')529 .property('position', 'fixed')530 .property('bottom', '0')531 .property('height', '13px')532 .property('background-color', '#eee')533 .endSection()534535 .section()536 .match('.qilvgallery_preload_gauge_inner')537 .property('z-index', '50102')538 .property('border', '0')539 .property('padding', '0')540 .property('margin', '0')541 .property('width', '0%')542 .property('position', 'static')543 .property('left', '0')544 .property('top', '0')545 .property('height', '100%')546 .property('background-color', '#f03')547 .property('text-align', 'center')548 .property('font-size', '11px')549 .property('font-family', 'Arial,Verdana,sans-serif,Helvetica')550 .property('font-weight', 'bold')551 .property('color', '#000000')552 .endSection()553554 .section()555 .match('.qilvgallery_infotip_about_blackscreen')556 .property('z-index', '50098')557 .property('width', '100%')558 .property('height', '100%')559 .property('position', 'fixed')560 .property('left', '0px')561 .property('top', '0px')562 .property('background', 'black')563 .property('opacity', '0.8')564 .endSection()565566 .section()567 .match('.qilvgallery_infotip_about_title')568 .property('font-size', '20pt')569 .endSection()570571 .section()572 .match('.qilvgallery_infotip_about_button')573 .property('width', '20em')574 .property('border', '1px solid #666')575 .property('background', '#ccc')576 .property('border-radius', '8px')577 .property('background', 'linear-gradient(0, #aaa, #eee)')578 .property('left', '0px')579 .property('right', '0px')580 .property('margin', '100px auto auto')581 .endSection()582583 .section()584 .match('.qilvgallery_infotip_center')585 .property('position', 'fixed')586 .property('left', '0')587 .property('right', '0')588 .property('top', '0')589 .property('bottom', '0')590 .property('margin', 'auto')591 .endSection()592593 .section()594 .match('.qilvgallery_infotip_about')595 .property('font-family', '"Trebuchet MS","Tahoma","Verdana","Arial","sans-serif"')596 .property('font-size', '15pt')597 .property('text-align', 'center')598 .property('max-width', '500px')599 .property('max-height', '300px')600 .property('border', '1px solid white')601 .property('background', 'linear-gradient(180deg, #f8f8f8, #dddddd)')602 .property('z-index', '50100')603 .endSection()604605 .section()606 .match('.qilvgallery_infotip_help')607 .property('display', 'block')608 .property('position', 'absolute')609 .property('left', '4px')610 .property('top', '4px')611 .property('padding', '15px')612 .property('font-size', '13px')613 .property('border', '1px solid white')614 .property('background', 'linear-gradient(180deg, #f8f8f8, #dddddd)')615 .property('color', '#000000')616 .property('font-family', '"courier new"')617 .property('border-radius', '5px')618 .property('z-index', '50001')619 .endSection()620621 .section()622 .match('.qilvgallery_infotip_help_title')623 .property('font-size', '2em')624 .property('font-weight', 'bold')625 .endSection()626627 .section()628 .match('.qilvgallery_infotip_help_content')629 .property('margin-left', '10px')630 .endSection()631632 .section()633 .match('.qilvgallery_infobox_textarea')634 .property('white-space', 'pre')635 .endSection()636637 .section()638 .match('.qilvgallery_about_infobox')639 .property('margin', '0')640 .property('padding', '0')641 .property('border', '0')642 .endSection()643644 .section()645 .match('.qilvgallery_image_outter')646 .property('margin', '0')647 .property('padding', '0')648 .property('border', '0')649 .property('position', 'absolute')650 .property('display', 'block')651 .property('opacity', '0')652 .property('left', '0')653 .property('right', '0')654 .property('top', '0')655 .property('bottom', '0')656 .property('transition', 'opacity ease-out')657 .property('transition-duration', '0s')658 .endSection()659660 .section()661 .match('.qilv_transition-300 .qilvgallery_image_outter')662 .property('transition-duration', '0.3s')663 .endSection()664665 .section()666 .match('.qilv_transition-800 .qilvgallery_image_outter')667 .property('transition-duration', '0.8s')668 .endSection()669670 .section()671 .match('.qilv_transition-1500 .qilvgallery_image_outter')672 .property('transition-duration', '1.5s')673 .endSection()674675 .section()676 .match('.qilvgallery_image_outter.qilv_shown')677 .property('opacity', '1')678 .property('display', 'block')679 .endSection()680681 .section()682 .match('.qilvgallery_image')683 .property('margin', 'unset')684 .property('padding', '0')685 .property('display', 'block')686 .property('position', 'absolute')687 .property('left', '0')688 .property('top', '0')689 .property('z-index', '50000')690 .property('box-sizing', 'border-box')691 .property('border', '2px solid black')692 .property('right', 'unset')693 .property('bottom', 'unset')694 .property('width', 'auto')695 .property('height', 'auto')696 .property('max-width', 'unset')697 .property('max-height', 'unset')698 .endSection()699700 .section()701 .match('.qilv_maxSize .qilvgallery_image')702 .property('max-width', '100%')703 .property('max-height', '100%')704 .endSection()705706 .section()707 .match('.qilv_autoX .qilvgallery_image')708 .property('width', '100%')709 .endSection()710711 .section()712 .match('.qilv_autoY .qilvgallery_image')713 .property('height', '100%')714 .endSection()715716 .section()717 .match('.qilvgallery_image.qilv_loading')718 .property('border', '2px solid red')719 .endSection()720721 .section()722 .match('.qilv_centered .qilvgallery_image')723 .property('right', '0')724 .property('bottom', '0')725 .property('margin', 'auto')726 .endSection()727728 .section()729 .match('#qilvgallery_preload_all_panel')730 .property('display', 'none')731 .endSection()732733 .section()734 .match('#qilvgallery_black_screen')735 .property('z-index', '499998')736 .property('width', '100%')737 .property('height', '100%')738 .property('left', '0')739 .property('top', '0')740 .property('background', 'black')741 .property('margin', '0')742 .property('padding', '0')743 .endSection()744745 .endCss()746 ;747 } ...

Full Screen

Full Screen

pavement.py

Source:pavement.py Github

copy

Full Screen

1# [[[section imports]]]2from paver.easy import *3import paver.doctools4from paver.setuputils import setup5# [[[endsection]]]6# [[[section setup]]]7setup(8 name="TheNewWay",9 packages=['newway'],10 version="1.0",11 url="http://www.blueskyonmars.com/",12 author="Kevin Dangoor",13 author_email="dangoor@gmail.com"14)15# [[[endsection]]]16# [[[section sphinx]]]17options(18 sphinx=Bunch(19 builddir="_build"20 )21)22# [[[endsection]]]23# [[[section deployoptions]]]24options(25 deploy = Bunch(26 htmldir = path('newway/docs'),27 hosts = ['host1.hostymost.com', 'host2.hostymost.com'],28 hostpath = 'sites/newway'29 )30)31# [[[endsection]]]32# [[[section minilib]]]33options(34 minilib = Bunch(35 extra_files=["doctools"]36 )37)38# [[[endsection]]]39# [[[section sdist]]]40@task41@needs('generate_setup', 'minilib', 'setuptools.command.sdist')42def sdist():43 """Overrides sdist to make sure that our setup.py is generated."""44 pass45# [[[endsection]]]46# [[[section html]]]47@task48@needs('paver.doctools.html')49def html(options):50 """Build the docs and put them into our package."""51 destdir = path('newway/docs')52 destdir.rmtree()53 # [[[section builtdocs]]]54 builtdocs = path("docs") / options.builddir / "html"55 # [[[endsection]]]56 builtdocs.move(destdir)57# [[[endsection]]] 58# [[[section deploy]]]59@task60@cmdopts([61 ('username=', 'u', 'Username to use when logging in to the servers')62])63def deploy(options):64 """Deploy the HTML to the server."""65 for host in options.hosts:66 sh("rsync -avz -e ssh %s/ %s@%s:%s/" % (options.htmldir,67 options.username, host, options.hostpath))68# [[[endsection]]]69# the pass that follows is to work around a weird bug. It looks like70# you can't compile a Python module that ends in a comment....

Full Screen

Full Screen

endSection.js

Source:endSection.js Github

copy

Full Screen

1'use strict';2 3var Section = require('../classes/SectionClass');4var TextPanel = require('../objects3D/TextPanelObject3D');5var LookAtField = require('../objects3D/LookAtFieldObject3D');6var endSection = new Section('end');7var text = new TextPanel(8 'T H A N K S \n F O R W A T C H I N G',9 {10 align: 'center',11 style: '',12 size: 50,13 lineSpacing: 4014 }15);16endSection.add(text.el);17var field = new LookAtField({18 count: 5019});20endSection.add(field.el);21endSection.onIn(function () {22 text.in();23 field.in();24});25endSection.onOut(function (way) {26 text.out(way);27 field.out(way);28});...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var log4js = require('log4js');2var logger = log4js.getLogger();3logger.endSection();4var log4js = require('log4js');5var logger = log4js.getLogger('test');6logger.endSection();

Full Screen

Using AI Code Generation

copy

Full Screen

1logger.endSection();2logger.endSection();3logger.endSection();4childLogger.endSection();5childLogger.endSection();6childLogger.endSection();7grandChildLogger.endSection();8grandChildLogger.endSection();9grandChildLogger.endSection();10logger.endSection();11logger.endSection();12logger.endSection();13childLogger.endSection();14childLogger.endSection();15childLogger.endSection();16grandChildLogger.endSection();17grandChildLogger.endSection();18grandChildLogger.endSection();19logger.endSection();20logger.endSection();21logger.endSection();22childLogger.endSection();23childLogger.endSection();24childLogger.endSection();25grandChildLogger.endSection();26grandChildLogger.endSection();27grandChildLogger.endSection();28logger.endSection();29logger.endSection();30logger.endSection();31childLogger.endSection();32childLogger.endSection();33childLogger.endSection();34grandChildLogger.endSection();35grandChildLogger.endSection();36grandChildLogger.endSection();37logger.endSection();38logger.endSection();39logger.endSection();40childLogger.endSection();41childLogger.endSection();42childLogger.endSection();43grandChildLogger.endSection();44grandChildLogger.endSection();45grandChildLogger.endSection();46logger.endSection();47logger.endSection();48logger.endSection();

Full Screen

Using AI Code Generation

copy

Full Screen

1$scope.endSection = function() {2 $scope.$root.endSection();3};4$scope.endSection = function() {5 $scope.$root.endSection();6};7$scope.endSection = function() {8 $scope.$root.endSection();9};10$scope.endSection = function() {11 $scope.$root.endSection();12};13$scope.endSection = function() {14 $scope.$root.endSection();15};16$scope.endSection = function() {17 $scope.$root.endSection();18};19$scope.endSection = function() {20 $scope.$root.endSection();21};22$scope.endSection = function() {23 $scope.$root.endSection();24};25$scope.endSection = function() {26 $scope.$root.endSection();27};28$scope.endSection = function() {29 $scope.$root.endSection();30};31$scope.endSection = function() {32 $scope.$root.endSection();33};34$scope.endSection = function() {35 $scope.$root.endSection();36};37$scope.endSection = function() {38 $scope.$root.endSection();39};40$scope.endSection = function() {41 $scope.$root.endSection();42};43$scope.endSection = function() {44 $scope.$root.endSection();45};

Full Screen

Using AI Code Generation

copy

Full Screen

1rootSpan.endSection('test');2childSpan.endSection('test');3childSpan2.endSection('test');4childSpan3.endSection('test');5childSpan4.endSection('test');6childSpan5.endSection('test');7childSpan6.endSection('test');8childSpan7.endSection('test');9childSpan8.endSection('test');10childSpan9.endSection('test');11childSpan10.endSection('test');12childSpan11.endSection('test');13childSpan12.endSection('test');14childSpan13.endSection('test');15childSpan14.endSection('test');16childSpan15.endSection('test');17childSpan16.endSection('test');18childSpan17.endSection('test');19childSpan18.endSection('test');20childSpan19.endSection('test');21childSpan20.endSection('test');22childSpan21.endSection('test');23childSpan22.endSection('test');24childSpan23.endSection('test');25childSpan24.endSection('test');

Full Screen

Using AI Code Generation

copy

Full Screen

1$scope.$on('$destroy', function () {2 $rootScope.endSection();3});4$scope.$on('$viewContentLoaded', function () {5 $rootScope.endSection();6});7$rootScope.startSection = function (name) {8 $rootScope.sectionName = name;9 $rootScope.sectionLoading = true;10};11$rootScope.endSection = function () {12 $rootScope.sectionLoading = false;13};

Full Screen

Using AI Code Generation

copy

Full Screen

1$scope.endSection = function() {2 $rootScope.$broadcast('endSection');3};4$rootScope.$on('endSection', function(event, data) {5 $rootScope.endSection();6});7$rootScope.endSection = function() {8};

Full Screen

Using AI Code Generation

copy

Full Screen

1var log = require('log4js').getLogger();2log.info('this is an info message');3log.endSection();4var log = require('log4js').getLogger('test');5log.info('this is an info message');6log.endSection();7var log = require('log4js').getLogger('test');8log.info('this is an info message');9log.endSection();10var log = require('log4js').getLogger();11log.info('this is an info message');12log.endSection();13var log = require('log4js').getLogger('test');14log.info('this is an info message');15log.endSection();16var log = require('log4js').getLogger('test');17log.info('this is an info message');18log.endSection();19var log = require('log4js').getLogger();20log.info('this is an info message');21log.endSection();22var log = require('log4js').getLogger('test');23log.info('this is an info message');24log.endSection();25var log = require('log4js').getLogger('test');26log.info('this is an info message');27log.endSection();28var log = require('log4js').getLogger();29log.info('this is an info message');30log.endSection();31var log = require('log4js').getLogger('test');

Full Screen

Using AI Code Generation

copy

Full Screen

1$scope.endSection = $rootScope.endSection;2$scope.startSection = $rootScope.startSection;3$scope.endSection('test');4$scope.startSection('test');5$scope.endSection = $rootScope.endSection;6$scope.startSection = $rootScope.startSection;7$scope.endSection('test');8$scope.startSection('test');9$scope.endSection = $rootScope.endSection;10$scope.startSection = $rootScope.startSection;11$scope.endSection('test');12$scope.startSection('test');13$scope.endSection = $rootScope.endSection;14$scope.startSection = $rootScope.startSection;15$scope.endSection('test');16$scope.startSection('test');

Full Screen

Using AI Code Generation

copy

Full Screen

1var test = require('tape');2var test = test('test');3test('test', function (t) {4 t.end();5});6t.endSection();7var test = require('tape');8var test = test('test');9test('test', function (t) {10 t.end();11});12t.endSection();13var test = require('tape');14var test = test('test');15test('test', function (t) {16 t.end();17});18t.endSection();19var test = require('tape');20var test = test('test');21test('test', function (t) {22 t.end();23});24t.endSection();25var test = require('tape');26var test = test('test');27test('test', function (t) {28 t.end();29});30t.endSection();31var test = require('tape');32var test = test('test');33test('test', function (t) {34 t.end();35});36t.endSection();

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 root 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