diff options
author | kmarshall <kmarshall@chromium.org> | 2015-01-27 15:42:07 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-27 23:43:15 +0000 |
commit | 151e70d6fbf2c524959bb225d86a557204571105 (patch) | |
tree | 844d285f978e65a221bd86a62ff1fe4f85caf220 /extensions/renderer/api | |
parent | b88fe3dc1072501bdd105fd95a8b3bc453fd2aa7 (diff) | |
download | chromium_src-151e70d6fbf2c524959bb225d86a557204571105.zip chromium_src-151e70d6fbf2c524959bb225d86a557204571105.tar.gz chromium_src-151e70d6fbf2c524959bb225d86a557204571105.tar.bz2 |
Add mojoPrivate.requireAsync method to chrome IDL.
Add unit tests for requireAsync.
R=mfoltz@chromium.org,sammc@chromium.org
CC=wez@chromium.org,haibinlu@chromium.org
BUG=
Review URL: https://codereview.chromium.org/862793003
Cr-Commit-Position: refs/heads/master@{#313403}
Diffstat (limited to 'extensions/renderer/api')
-rw-r--r-- | extensions/renderer/api/mojo_private/mojo_private_unittest.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/extensions/renderer/api/mojo_private/mojo_private_unittest.cc b/extensions/renderer/api/mojo_private/mojo_private_unittest.cc index d9607bf..af1801e 100644 --- a/extensions/renderer/api/mojo_private/mojo_private_unittest.cc +++ b/extensions/renderer/api/mojo_private/mojo_private_unittest.cc @@ -45,4 +45,14 @@ TEST_F(MojoPrivateApiTest, DefineModuleDoesNotExist) { "does not exist!")); } +TEST_F(MojoPrivateApiTest, RequireAsync) { + ASSERT_NO_FATAL_FAILURE( + RunTest("mojo_private_unittest.js", "testRequireAsync")); +} + +TEST_F(MojoPrivateApiTest, DefineAndRequire) { + ASSERT_NO_FATAL_FAILURE( + RunTest("mojo_private_unittest.js", "testDefineAndRequire")); +} + } // namespace extensions |