Mercurial > hg > CommitWatcher
comparison tests/unit.py @ 13:fc91a93fcaee
tests/unit.py
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 28 Sep 2013 07:08:32 -0700 |
parents | a0ff003319ec |
children | 8a02f209992f |
comparison
equal
deleted
inserted
replaced
12:a0ff003319ec | 13:fc91a93fcaee |
---|---|
13 # globals | 13 # globals |
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` | |
19 diff_files = [('41701d2c0341.diff': ['mobile/android/components/HelperAppDialog.js']), | |
20 ('4e1a3919e741.diff', ["gfx/gl/GLContext.cpp", | |
21 "gfx/gl/GLContext.h", | |
22 "gfx/layers/Compositor.h", | |
23 "gfx/layers/Layers.cpp", | |
24 "gfx/layers/Layers.h", | |
25 "gfx/layers/basic/BasicCompositor.cpp", | |
26 "gfx/layers/basic/BasicCompositor.h", | |
27 "gfx/layers/composite/LayerManagerComposite.cpp", | |
28 "gfx/layers/composite/LayerManagerComposite.h", | |
29 "gfx/layers/d3d11/CompositorD3D11.cpp", | |
30 "gfx/layers/d3d11/CompositorD3D11.h", | |
31 "gfx/layers/d3d9/CompositorD3D9.cpp", | |
32 "gfx/layers/d3d9/CompositorD3D9.h", | |
33 "gfx/layers/ipc/CompositorParent.cpp", | |
34 "gfx/layers/ipc/CompositorParent.h", | |
35 "gfx/layers/ipc/LayerTransactionParent.cpp", | |
36 "gfx/layers/opengl/CompositorOGL.cpp", | |
37 "gfx/layers/opengl/CompositorOGL.h", | |
38 "gfx/thebes/gfx2DGlue.h", | |
39 ] | |
18 def test_patch(self): | 40 def test_patch(self): |
19 """test parsing the files from a patch""" | 41 """test parsing the files from a patch""" |
20 | 42 |
21 diff = os.path.join(here, '41701d2c0341.diff') | 43 diff = os.path.join(here, '41701d2c0341.diff') |
22 files = FeedAgentDiff.lsdiff(diff) | 44 files = FeedAgentDiff.lsdiff(diff) |