Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1300)

Issue 709603002: Move mojo/apps/js tests et al to mojo/edk/js/test,tests (Closed)

Created:
6 years, 1 month ago by hansmuller
Modified:
6 years, 1 month ago
Reviewers:
jamesr
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, eseidel
Base URL:
https://github.com/domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Move mojo/apps/js tests et al to mojo/edk/js/test,tests The apps_js_unitttests test executable is now called js_integration_tests. The connection_unittests are now included in the JS unittests. To enable that the threading module, which just provides a quit method, was added to mojo/public/js. Its implementation is mojo/edk/js. Integration tests are in the edk/js/tests directory and test support code is in edk/js/test. BUG=430520 R=jamesr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/c60368c4442458f2d53e7cd199003624ff6fbc3f

Patch Set 1 #

Patch Set 2 : Gyp update #

Patch Set 3 : chromium environment for JS tests #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -1591 lines) Patch
M mojo/BUILD.gn View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/apps/js/BUILD.gn View 2 chunks +0 lines, -19 lines 0 comments Download
M mojo/apps/js/bindings/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
D mojo/apps/js/bindings/connection_unittests.js View 1 chunk +0 lines, -261 lines 0 comments Download
D mojo/apps/js/bindings/sample_service_unittests.js View 1 chunk +0 lines, -168 lines 0 comments Download
D mojo/apps/js/bindings/threading.h View 1 chunk +0 lines, -25 lines 0 comments Download
D mojo/apps/js/bindings/threading.cc View 1 chunk +0 lines, -47 lines 0 comments Download
M mojo/apps/js/js_app.h View 2 chunks +2 lines, -2 lines 0 comments Download
D mojo/apps/js/mojo_runner_delegate.h View 1 chunk +0 lines, -33 lines 0 comments Download
D mojo/apps/js/mojo_runner_delegate.cc View 1 chunk +0 lines, -82 lines 0 comments Download
M mojo/apps/js/test/BUILD.gn View 2 chunks +0 lines, -9 lines 0 comments Download
D mojo/apps/js/test/hexdump.js View 1 chunk +0 lines, -34 lines 0 comments Download
D mojo/apps/js/test/js_to_cpp.mojom View 1 chunk +0 lines, -53 lines 0 comments Download
D mojo/apps/js/test/js_to_cpp_unittest.cc View 1 chunk +0 lines, -444 lines 0 comments Download
D mojo/apps/js/test/js_to_cpp_unittest.js View 1 chunk +0 lines, -221 lines 0 comments Download
M mojo/apps/js/test/run_apps_js_tests.cc View 3 chunks +0 lines, -10 lines 0 comments Download
M mojo/edk/js/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/edk/js/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/edk/js/core.h View 2 chunks +3 lines, -3 lines 0 comments Download
M mojo/edk/js/drain_data.h View 2 chunks +3 lines, -3 lines 0 comments Download
M mojo/edk/js/handle.h View 2 chunks +3 lines, -3 lines 0 comments Download
M mojo/edk/js/handle_close_observer.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + mojo/edk/js/mojo_runner_delegate.h View 2 chunks +5 lines, -5 lines 0 comments Download
A + mojo/edk/js/mojo_runner_delegate.cc View 4 chunks +5 lines, -9 lines 0 comments Download
M mojo/edk/js/support.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + mojo/edk/js/test/BUILD.gn View 1 chunk +18 lines, -2 lines 2 comments Download
A + mojo/edk/js/test/hexdump.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + mojo/edk/js/test/run_js_integration_tests.cc View 2 chunks +13 lines, -20 lines 2 comments Download
A + mojo/edk/js/test/run_js_tests.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M mojo/edk/js/tests/BUILD.gn View 1 chunk +14 lines, -6 lines 0 comments Download
D mojo/edk/js/tests/DEPS View 1 chunk +0 lines, -7 lines 0 comments Download
A + mojo/edk/js/tests/connection_tests.js View 1 chunk +1 line, -1 line 0 comments Download
A + mojo/edk/js/tests/js_to_cpp.mojom View 0 chunks +-1 lines, --1 lines 0 comments Download
A + mojo/edk/js/tests/js_to_cpp_tests.cc View 4 chunks +7 lines, -33 lines 0 comments Download
A + mojo/edk/js/tests/js_to_cpp_tests.js View 1 chunk +2 lines, -2 lines 0 comments Download
D mojo/edk/js/tests/run_js_tests.cc View 1 chunk +0 lines, -64 lines 0 comments Download
A + mojo/edk/js/tests/sample_service_tests.js View 1 chunk +1 line, -1 line 0 comments Download
A + mojo/edk/js/threading.h View 2 chunks +5 lines, -5 lines 0 comments Download
A + mojo/edk/js/threading.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M mojo/edk/js/waiting_callback.h View 2 chunks +3 lines, -3 lines 0 comments Download
M mojo/edk/mojo_edk.gyp View 1 2 2 chunks +3 lines, -1 line 0 comments Download
A mojo/public/js/threading.js View 1 chunk +21 lines, -0 lines 0 comments Download
M mojo/tools/data/unittests View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (1 generated)
hansmuller
PTAL. Note:the gyp build doesn't yet include js_integration_tests, i.e. the tests defined in mojo/edk/js/tests.
6 years, 1 month ago (2014-11-07 01:07:22 UTC) #2
jamesr
lgtm +eseidel@ as fyi - i think this collides a bit with your gn check ...
6 years, 1 month ago (2014-11-07 01:24:37 UTC) #3
hansmuller
Committed patchset #3 (id:40001) manually as c60368c4442458f2d53e7cd199003624ff6fbc3f (presubmit successful).
6 years, 1 month ago (2014-11-07 15:36:02 UTC) #4
hansmuller
6 years, 1 month ago (2014-11-07 15:40:52 UTC) #5
Message was sent while issue was closed.
This is the last big Mojo JS move. Still to go: the JS content handler, GL and
the monotonic_clock bindings.

https://codereview.chromium.org/709603002/diff/40001/mojo/edk/js/test/BUILD.gn
File mojo/edk/js/test/BUILD.gn (right):

https://codereview.chromium.org/709603002/diff/40001/mojo/edk/js/test/BUILD.g...
mojo/edk/js/test/BUILD.gn:20: deps = [
On 2014/11/07 01:24:37, jamesr wrote:
> this should probably declare a dependency on //base, right?

You're right, both test runner applications depend on base. I've added the
dependency.

https://codereview.chromium.org/709603002/diff/40001/mojo/edk/js/test/run_js_...
File mojo/edk/js/test/run_js_integration_tests.cc (right):

https://codereview.chromium.org/709603002/diff/40001/mojo/edk/js/test/run_js_...
mojo/edk/js/test/run_js_integration_tests.cc:5: #include
"base/files/file_path.h"
On 2014/11/07 01:24:37, jamesr wrote:
> yeah this target definitely uses //base

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698