Exemplo n.º 1
0
    def test_set_alias_default_02(self):
        from hackpage.utils import setAliasWithDialog

        Tester.dialogTester.appendCancel()

        setAliasWithDialog(self.testPage, self.application)

        self.assertEqual(self.testPage.alias, None)
        self.assertEqual(Tester.dialogTester.count, 0)
Exemplo n.º 2
0
    def test_set_alias_03(self):
        from hackpage.utils import setAliasWithDialog

        self.testPage.alias = 'Псевдоним страницы'

        Tester.dialogTester.append(self._setValue, '')

        setAliasWithDialog(self.testPage, self.application)

        self.assertEqual(self.testPage.alias, None)
        self.assertEqual(Tester.dialogTester.count, 0)
Exemplo n.º 3
0
 def __onSetPageAliasPopupClick(self, event):
     assert self._selectedPage is not None
     setAliasWithDialog(self._selectedPage, self._application)
     self._unbindPopupMenu()
     self._selectedPage = None
Exemplo n.º 4
0
 def __onSetPageAliasPopupClick(self, event):
     assert self._selectedPage is not None
     setAliasWithDialog(self._selectedPage, self._application)
     self._unbindPopupMenu()
     self._selectedPage = None
Exemplo n.º 5
0
 def run(self, params):
     setAliasWithDialog(self._application.selectedPage, self._application)