Skip to content

Commit aea83a1

Browse files
committed
Add automated checks for individual history deletion
1 parent 340e3a7 commit aea83a1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎gateway/scripts/check-midlet-lifecycle.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ const checks = [
8484
read('src/com/netormium/client/util/SpeedDialStore.java').includes('int target = index + offset;') &&
8585
canvas.includes('moveSpeedDialUpCommand') && canvas.includes('moveSpeedDialDownCommand') &&
8686
canvas.includes('speedDial.move(speedDialUrls[selected], direction)')],
87+
['history manager supports deleting a single entry and persists the result',
88+
read('src/com/netormium/client/util/BrowserHistory.java').includes('public boolean removeAt(int position)') &&
89+
canvas.includes('deleteHistoryEntryCommand') &&
90+
canvas.includes('history.removeAt(historyIndex)') &&
91+
canvas.includes('historyStore.save(history);') &&
92+
canvas.includes('chooser.addCommand(deleteHistoryEntryCommand)')],
93+
['history removal keeps the current index within valid bounds',
94+
read('src/com/netormium/client/util/BrowserHistory.java').includes('else if (position == index && index >= size) index = size - 1;')],
8795
['interactive session mutations are serialized',
8896
canvas.includes('private boolean interactionBusy = false;') &&
8997
(canvas.match(/interactionBusy = true;/g) || []).length === 3 &&

0 commit comments

Comments
 (0)