Exemple #1
0
    def set_diff(self):
        self._clear_selection()

        ls, rs = extract_line_numbers(self.left.toPlainText(),
                                      self.right.toPlainText())
        for li in ls:
            self.highlight(self.left, li)
        for ri in rs:
            self.highlight(self.right, ri)

        self._set_connectors(ls, rs)
Exemple #2
0
    def set_diff(self):
        self._clear_selection()

        ls, rs = extract_line_numbers(self.left.toPlainText(),
                                      self.right.toPlainText())
        for li in ls:
            self.highlight(self.left, li)
        for ri in rs:
            self.highlight(self.right, ri)

        self._set_connectors(ls, rs)
Exemple #3
0
 def _test_modify(self, a, b, els, ers):
     ls, rs = extract_line_numbers(a, b)
     self.assertListEqual(ls, els)
     self.assertListEqual(rs, ers)