OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
6 #include "base/macros.h" | 6 #include "base/macros.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "gin/modules/console.h" | 8 #include "gin/modules/console.h" |
9 #include "gin/modules/module_registry.h" | 9 #include "gin/modules/module_registry.h" |
10 #include "gin/test/file_runner.h" | 10 #include "gin/test/file_runner.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 .AppendASCII(test); | 42 .AppendASCII(test); |
43 TestRunnerDelegate delegate; | 43 TestRunnerDelegate delegate; |
44 gin::RunTestFromFile(path, &delegate, run_until_idle); | 44 gin::RunTestFromFile(path, &delegate, run_until_idle); |
45 } | 45 } |
46 | 46 |
47 // TODO(abarth): Should we autogenerate these stubs from GYP? | 47 // TODO(abarth): Should we autogenerate these stubs from GYP? |
48 TEST(JSTest, Core) { | 48 TEST(JSTest, Core) { |
49 RunTest("core_unittest.js", true); | 49 RunTest("core_unittest.js", true); |
50 } | 50 } |
51 | 51 |
52 TEST(JSTest, Validation) { | |
53 RunTest("validation_unittest.js", true); | |
54 } | |
55 | |
56 } // namespace | 52 } // namespace |
57 } // namespace js | 53 } // namespace js |
58 } // namespace edk | 54 } // namespace edk |
59 } // namespace mojo | 55 } // namespace mojo |
OLD | NEW |