Mercurial > paraspace
comparison paraspace/tests/dexfile_test.py @ 61:3e34c7d33182
Fix and test restore_depedencies()
- _travel_dex_relocatable() is fixed to travel a linked tree.
- aware that depend attributes are replaced by depend-ons.
- fix restore_depedencies() for changes of depend_off_rel()
- It was a pair of depon, relative
- It is only depon.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 28 Jun 2011 10:25:54 +0800 |
parents | f295d82646e0 |
children | 8a1844afb76a |
comparison
equal
deleted
inserted
replaced
60:f295d82646e0 | 61:3e34c7d33182 |
---|---|
324 | 324 |
325 restore_dependencies(dex, all_dep_decls) | 325 restore_dependencies(dex, all_dep_decls) |
326 | 326 |
327 stringid = dex.stringIds.items[0] | 327 stringid = dex.stringIds.items[0] |
328 assert isinstance(stringid.stringDataOff, int) | 328 assert isinstance(stringid.stringDataOff, int) |
329 pass | 329 stringid = dex.stringIds.items[5] |
330 | 330 assert isinstance(stringid.stringDataOff, int) |
331 | |
332 codeitem = dex.codeItems.items[0] | |
333 assert isinstance(codeitem.debugInfoOff, int) | |
334 pass | |
335 |