Exemplo n.º 1
0
    def testBorder_02 (self):
        dlg = TableDialog (self.wnd)
        controller = TableDialogController (dlg, self._application.config)
        Tester.dialogTester.appendOk()

        dlg.borderWidth = 0
        controller.showDialog()

        result = controller.getResult()

        validResult = u'''<table>
<tr>
<td></td>
</tr>
</table>'''

        self.assertEqual (result, validResult, result)
Exemplo n.º 2
0
    def testBorder_02 (self):
        suffix = u''
        dlg = TableDialog (self.wnd)
        controller = TableDialogController (dlg, suffix, self._application.config)
        Tester.dialogTester.appendOk()

        dlg.borderWidth = 0
        controller.showDialog()

        result = controller.getResult()

        validResult = u'''(:table:)
(:row:)
(:cell:)
(:tableend:)'''

        self.assertEqual (result, validResult, result)
Exemplo n.º 3
0
    def testBorder_01(self):
        dlg = TableDialog(self.mainWindow)
        controller = TableDialogController(dlg, self.application.config)
        Tester.dialogTester.appendOk()

        dlg.borderWidth = 10
        controller.showDialog()

        result = controller.getResult()

        validResult = '''<table border="10">
<tr>
<td></td>
</tr>
</table>'''

        self.assertEqual(result, validResult, result)
Exemplo n.º 4
0
    def testBorder_01(self):
        dlg = TableDialog(self.mainWindow)
        controller = TableDialogController(dlg, self.application.config)
        Tester.dialogTester.appendOk()

        dlg.borderWidth = 10
        controller.showDialog()

        result = controller.getResult()

        validResult = '''<table border="10">
<tr>
<td></td>
</tr>
</table>'''

        self.assertEqual(result, validResult, result)
Exemplo n.º 5
0
    def testBorder_02(self):
        suffix = u''
        dlg = TableDialog(self.wnd)
        controller = TableDialogController(dlg, suffix,
                                           self._application.config)
        Tester.dialogTester.appendOk()

        dlg.borderWidth = 0
        controller.showDialog()

        result = controller.getResult()

        validResult = u'''(:table:)
(:row:)
(:cell:)
(:tableend:)'''

        self.assertEqual(result, validResult, result)