def test_large_file(self):
        text = ''
        depth = 1
        for i in range(100):
            text += self._test_text_title(depth) + '\n'
            text += self._test_text_body() + '\n'
            depth = 1 if depth == 5 else depth + 1
        self.set_settings({'level_char': '>'})
        self.set_syntax('javascript')
        self.set_text(text)
        toc = self.get_plugin()
        toc.get_comment_titles()
        timers = toc.timers
        for key in timers:
            duration = "{0:.6f}".format(timers[key])
            self.assert_true(
                timers[key] < 0.9,
                '"'+key+'" takes too long ('+duration+' seconds)'
                )


#
# Initial text used in above test
#
dataset/ETHPy150Open kizza/Table-of-comments/tests/test_large_file.py/TestLargeFile.test_large_file/original