コード例 #1
0
    def testSortByEdit(self):
        controller = ChildListDialogController(self._dialog)

        Tester.dialogTester.appendOk()
        self._dialog.selectedSort = 3
        self._dialog.isDescend = False

        result = controller.getDialogResult()

        self.assertEqual(result, "(:childlist sort=edit:)")
コード例 #2
0
ファイル: childlistdialog.py プロジェクト: LihMeh/outwiker
    def testSortByEdit (self):
        controller = ChildListDialogController (self._dialog)

        Tester.dialogTester.appendOk()
        self._dialog.selectedSort = 3
        self._dialog.isDescend = False

        result = controller.getDialogResult()

        self.assertEqual (result, u"(:childlist sort=edit:)")
コード例 #3
0
    def testSortByCreationDescend(self):
        controller = ChildListDialogController(self._dialog)

        Tester.dialogTester.appendOk()
        self._dialog.selectedSort = 2
        self._dialog.isDescend = True

        result = controller.getDialogResult()

        self.assertEqual(result, "(:childlist sort=descendcreation:)")
コード例 #4
0
ファイル: childlistdialog.py プロジェクト: LihMeh/outwiker
    def testSortByCreationDescend (self):
        controller = ChildListDialogController (self._dialog)

        Tester.dialogTester.appendOk()
        self._dialog.selectedSort = 2
        self._dialog.isDescend = True

        result = controller.getDialogResult()

        self.assertEqual (result, u"(:childlist sort=descendcreation:)")
コード例 #5
0
    def testSortByOrderDescend (self):
        controller = ChildListDialogController (self._dialog)

        Tester.dialogTester.appendOk()
        self._dialog.selectedSort = 0
        self._dialog.isDescend = True

        result = controller.getDialogResult()

        self.assertEqual (result, u"(:childlist sort=descendorder:)")
コード例 #6
0
    def testSortByOrderDescend(self):
        controller = ChildListDialogController(self._dialog)

        Tester.dialogTester.appendOk()
        self._dialog.selectedSort = 0
        self._dialog.isDescend = True

        result = controller.getDialogResult()

        self.assertEqual(result, "(:childlist sort=descendorder:)")
コード例 #7
0
    def testCancel(self):
        controller = ChildListDialogController(self._dialog)
        Tester.dialogTester.appendCancel()
        result = controller.getDialogResult()

        self.assertEqual(result, None)
コード例 #8
0
ファイル: childlistdialog.py プロジェクト: LihMeh/outwiker
    def testCancel (self):
        controller = ChildListDialogController (self._dialog)
        Tester.dialogTester.appendCancel()
        result = controller.getDialogResult()

        self.assertEqual (result, None)