Mercurial > lcfOS
comparison python/thex.py @ 203:ca1ea402f6a1
Added some arm instructions
author | Windel Bouwman |
---|---|
date | Sat, 15 Jun 2013 19:13:05 +0200 |
parents | 65dda7e7e8bd |
children |
comparison
equal
deleted
inserted
replaced
202:f22b431f4113 | 203:ca1ea402f6a1 |
---|---|
10 self.app = QApplication(sys.argv) | 10 self.app = QApplication(sys.argv) |
11 self.ui = hexedit.HexEditor() | 11 self.ui = hexedit.HexEditor() |
12 self.bv = self.ui.he.bv | 12 self.bv = self.ui.he.bv |
13 # Provide some random data: | 13 # Provide some random data: |
14 self.bv.Data = bytearray(range(10)) * 8 + b'x' | 14 self.bv.Data = bytearray(range(10)) * 8 + b'x' |
15 def tearDown(self): | |
16 self.app.processEvents() | |
17 self.app.quit() | |
15 def testOpenButton(self): | 18 def testOpenButton(self): |
16 QTest.mouseClick(self.bv, Qt.LeftButton) | 19 QTest.mouseClick(self.bv, Qt.LeftButton) |
17 self.assertEqual(self.bv.CursorPosition, 161) | 20 self.assertEqual(self.bv.CursorPosition, 161) |
18 QTest.keyClick(self.bv, Qt.Key_Left) | 21 QTest.keyClick(self.bv, Qt.Key_Left) |
19 self.assertEqual(self.bv.CursorPosition, 160) | 22 self.assertEqual(self.bv.CursorPosition, 160) |