diff --git a/gfx/tests/gtest/TestAsyncPanZoomController.cpp b/gfx/layers/apz/test/gtest/TestAsyncPanZoomController.cpp similarity index 100% rename from gfx/tests/gtest/TestAsyncPanZoomController.cpp rename to gfx/layers/apz/test/gtest/TestAsyncPanZoomController.cpp diff --git a/gfx/layers/apz/test/gtest/moz.build b/gfx/layers/apz/test/gtest/moz.build new file mode 100644 index 000000000000..4a1bc8d64f81 --- /dev/null +++ b/gfx/layers/apz/test/gtest/moz.build @@ -0,0 +1,21 @@ +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +UNIFIED_SOURCES += [ + 'TestAsyncPanZoomController.cpp', +] + +include('/ipc/chromium/chromium-config.mozbuild') + +LOCAL_INCLUDES += [ + '/gfx/2d', + '/gfx/layers', + '/gfx/tests/gtest' # for TestLayers.h, which is shared with the gfx gtests +] + +FINAL_LIBRARY = 'xul-gtest' + +CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS'] diff --git a/gfx/layers/moz.build b/gfx/layers/moz.build index dd58022327c7..5ce9a5863b88 100644 --- a/gfx/layers/moz.build +++ b/gfx/layers/moz.build @@ -406,6 +406,9 @@ CXXFLAGS += [ ] ] +if CONFIG['ENABLE_TESTS']: + DIRS += ['apz/test/gtest'] + MOCHITEST_MANIFESTS += ['apz/test/mochitest/mochitest.ini'] MOCHITEST_CHROME_MANIFESTS += ['apz/test/mochitest/chrome.ini'] diff --git a/gfx/moz.build b/gfx/moz.build index d5e33270335d..2ed70f83a8fb 100644 --- a/gfx/moz.build +++ b/gfx/moz.build @@ -4,9 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -with Files('tests/gtest/TestAsyncPanZoomController.cpp'): - BUG_COMPONENT = ('Core', 'Panning and Zooming') - if CONFIG['MOZ_TREE_CAIRO']: DIRS += ['cairo'] diff --git a/gfx/tests/gtest/moz.build b/gfx/tests/gtest/moz.build index cc1a716d1d1b..cda7439695d6 100644 --- a/gfx/tests/gtest/moz.build +++ b/gfx/tests/gtest/moz.build @@ -8,7 +8,6 @@ UNIFIED_SOURCES += [ 'gfxSurfaceRefCountTest.cpp', # Disabled on suspicion of causing bug 904227 #'gfxWordCacheTest.cpp', - 'TestAsyncPanZoomController.cpp', 'TestBufferRotation.cpp', 'TestColorNames.cpp', 'TestCompositor.cpp',