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

Side by Side Diff: mojo/edk/js/tests/run_js_unittests.cc

Issue 2743623003: [mojo-js] Converts binding unittest into layout test. (Closed)
Patch Set: uses async/await Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | mojo/public/js/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 27 matching lines...) Expand all
38 path = path.AppendASCII("mojo") 38 path = path.AppendASCII("mojo")
39 .AppendASCII("public") 39 .AppendASCII("public")
40 .AppendASCII("js") 40 .AppendASCII("js")
41 .AppendASCII("tests") 41 .AppendASCII("tests")
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, Binding) {
49 RunTest("binding_unittest.js", false);
50 }
51
52 TEST(JSTest, Codec) { 48 TEST(JSTest, Codec) {
53 RunTest("codec_unittest.js", true); 49 RunTest("codec_unittest.js", true);
54 } 50 }
55 51
56 TEST(JSTest, Connection) { 52 TEST(JSTest, Connection) {
57 RunTest("connection_unittest.js", false); 53 RunTest("connection_unittest.js", false);
58 } 54 }
59 55
60 TEST(JSTest, Core) { 56 TEST(JSTest, Core) {
61 RunTest("core_unittest.js", true); 57 RunTest("core_unittest.js", true);
(...skipping 16 matching lines...) Expand all
78 } 74 }
79 75
80 TEST(JSTest, Validation) { 76 TEST(JSTest, Validation) {
81 RunTest("validation_unittest.js", true); 77 RunTest("validation_unittest.js", true);
82 } 78 }
83 79
84 } // namespace 80 } // namespace
85 } // namespace js 81 } // namespace js
86 } // namespace edk 82 } // namespace edk
87 } // namespace mojo 83 } // namespace mojo
OLDNEW
« no previous file with comments | « no previous file | mojo/public/js/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698