Skip to content

Commit

Permalink
Moving mojo/validation test into LayoutTests
Browse files Browse the repository at this point in the history
BUG=647036
TBR=yzshen,dpranke,jbroman

Review-Url: https://codereview.chromium.org/2853293003
Cr-Commit-Position: refs/heads/master@{#469506}
  • Loading branch information
alokp-chromium authored and Commit bot committed May 4, 2017
1 parent 56aabec commit 577b29e
Show file tree
Hide file tree
Showing 8 changed files with 375 additions and 352 deletions.
2 changes: 1 addition & 1 deletion BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -872,8 +872,8 @@ if (!is_ios) {
data_deps = [
":layout_test_data_mojo_bindings",
"//content/shell:content_shell",
"//mojo/public/interfaces/bindings/tests",
"//mojo/public/interfaces/bindings/tests:test_associated_interfaces",
"//mojo/public/interfaces/bindings/tests:test_interfaces",
"//third_party/WebKit/public:blink_devtools_frontend_resources_files",
"//third_party/mesa:osmesa",
"//tools/imagediff",
Expand Down
4 changes: 0 additions & 4 deletions mojo/edk/js/tests/run_js_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ TEST(JSTest, Core) {
RunTest("core_unittest.js", true);
}

TEST(JSTest, Validation) {
RunTest("validation_unittest.js", true);
}

} // namespace
} // namespace js
} // namespace edk
Expand Down
38 changes: 38 additions & 0 deletions mojo/public/interfaces/bindings/tests/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,44 @@

import("../../../tools/bindings/mojom.gni")

group("tests") {
testonly = true
deps = [
":test_interfaces",
]
data_deps = [
":test_data",
":test_data_list",
]
}

copy("test_data") {
testonly = true
sources = [
"data/validation",
]
outputs = [
"$root_gen_dir/layout_test_data/{{source_root_relative_dir}}/{{source_file_part}}",
]
}

action_foreach("test_data_list") {
testonly = true
script = "//mojo/public/tools/bindings/gen_data_files_list.py"
sources = [
"data/validation",
]
outputs = [
"$root_gen_dir/layout_test_data/{{source_root_relative_dir}}/{{source_file_part}}_index.txt",
]
args = [
"-d",
rebase_path(sources[0], root_build_dir),
"-o",
rebase_path(outputs[0], root_build_dir),
]
}

mojom("test_interfaces") {
testonly = true
sources = [
Expand Down
3 changes: 0 additions & 3 deletions mojo/public/js/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ group("tests") {
testonly = true

data = [
"//mojo/public/interfaces/bindings/tests/data/validation/",
"tests/core_unittest.js",
"tests/validation_test_input_parser.js",
"tests/validation_unittest.js",
]

public_deps = [
Expand Down
Loading

0 comments on commit 577b29e

Please sign in to comment.