Mercurial > hg > CommitWatcher
comparison tests/unit.py @ 14:8a02f209992f
tests/unit.py
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 28 Sep 2013 07:13:01 -0700 |
parents | fc91a93fcaee |
children | 77118f83b5b7 |
comparison
equal
deleted
inserted
replaced
13:fc91a93fcaee | 14:8a02f209992f |
---|---|
14 here = os.path.dirname(os.path.abspath(__file__)) | 14 here = os.path.dirname(os.path.abspath(__file__)) |
15 | 15 |
16 class CommitWatcherUnitTest(unittest.TestCase): | 16 class CommitWatcherUnitTest(unittest.TestCase): |
17 | 17 |
18 # diff -> files mapping, from `lsdiff` | 18 # diff -> files mapping, from `lsdiff` |
19 diff_files = [('41701d2c0341.diff': ['mobile/android/components/HelperAppDialog.js']), | 19 diff_files = [('41701d2c0341.diff', ['mobile/android/components/HelperAppDialog.js']), |
20 ('4e1a3919e741.diff', ["gfx/gl/GLContext.cpp", | 20 ('4e1a3919e741.diff', ["gfx/gl/GLContext.cpp", |
21 "gfx/gl/GLContext.h", | 21 "gfx/gl/GLContext.h", |
22 "gfx/layers/Compositor.h", | 22 "gfx/layers/Compositor.h", |
23 "gfx/layers/Layers.cpp", | 23 "gfx/layers/Layers.cpp", |
24 "gfx/layers/Layers.h", | 24 "gfx/layers/Layers.h", |
34 "gfx/layers/ipc/CompositorParent.h", | 34 "gfx/layers/ipc/CompositorParent.h", |
35 "gfx/layers/ipc/LayerTransactionParent.cpp", | 35 "gfx/layers/ipc/LayerTransactionParent.cpp", |
36 "gfx/layers/opengl/CompositorOGL.cpp", | 36 "gfx/layers/opengl/CompositorOGL.cpp", |
37 "gfx/layers/opengl/CompositorOGL.h", | 37 "gfx/layers/opengl/CompositorOGL.h", |
38 "gfx/thebes/gfx2DGlue.h", | 38 "gfx/thebes/gfx2DGlue.h", |
39 ] | 39 ]) |
40 ] | |
40 def test_patch(self): | 41 def test_patch(self): |
41 """test parsing the files from a patch""" | 42 """test parsing the files from a patch""" |
42 | 43 |
43 diff = os.path.join(here, '41701d2c0341.diff') | 44 diff = os.path.join(here, '41701d2c0341.diff') |
44 files = FeedAgentDiff.lsdiff(diff) | 45 files = FeedAgentDiff.lsdiff(diff) |