# HG changeset patch # User Jeff Hammel # Date 1380377312 25200 # Node ID fc91a93fcaeef8e6814b70a81a42c8754cd7c07c # Parent a0ff003319ec842030abd450b7dc149e3e94ea75 tests/unit.py diff -r a0ff003319ec -r fc91a93fcaee tests/unit.py --- a/tests/unit.py Sat Sep 28 06:40:25 2013 -0700 +++ b/tests/unit.py Sat Sep 28 07:08:32 2013 -0700 @@ -15,6 +15,28 @@ class CommitWatcherUnitTest(unittest.TestCase): + # diff -> files mapping, from `lsdiff` + diff_files = [('41701d2c0341.diff': ['mobile/android/components/HelperAppDialog.js']), + ('4e1a3919e741.diff', ["gfx/gl/GLContext.cpp", + "gfx/gl/GLContext.h", + "gfx/layers/Compositor.h", + "gfx/layers/Layers.cpp", + "gfx/layers/Layers.h", + "gfx/layers/basic/BasicCompositor.cpp", + "gfx/layers/basic/BasicCompositor.h", + "gfx/layers/composite/LayerManagerComposite.cpp", + "gfx/layers/composite/LayerManagerComposite.h", + "gfx/layers/d3d11/CompositorD3D11.cpp", + "gfx/layers/d3d11/CompositorD3D11.h", + "gfx/layers/d3d9/CompositorD3D9.cpp", + "gfx/layers/d3d9/CompositorD3D9.h", + "gfx/layers/ipc/CompositorParent.cpp", + "gfx/layers/ipc/CompositorParent.h", + "gfx/layers/ipc/LayerTransactionParent.cpp", + "gfx/layers/opengl/CompositorOGL.cpp", + "gfx/layers/opengl/CompositorOGL.h", + "gfx/thebes/gfx2DGlue.h", + ] def test_patch(self): """test parsing the files from a patch"""