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

Unified Diff: extensions/test/data/mojo_private_unittest.js

Issue 2409073002: Use mojo from the PDF extension instead of using an extension API.
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/test/data/keep_alive_client_unittest.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/test/data/mojo_private_unittest.js
diff --git a/extensions/test/data/mojo_private_unittest.js b/extensions/test/data/mojo_private_unittest.js
deleted file mode 100644
index f66b997d4cba11e76b08b8106780af6028825653..0000000000000000000000000000000000000000
--- a/extensions/test/data/mojo_private_unittest.js
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-'use strict';
-
-let mojoPrivate = require('mojoPrivate').binding;
-let test = require('test').binding;
-let unittestBindings = require('test_environment_specific_bindings');
-
-unittestBindings.exportTests([
- function testDefine() {
- mojoPrivate.define('testModule', [
- 'mojo/public/js/codec',
- ], test.callbackPass(function(codec) {
- test.assertEq('function', typeof codec.Message);
- }));
- },
-
- function testDefineRegistersModule() {
- mojoPrivate.define('testModule', ['dependency'],
- test.callbackPass(function(module) {
- test.assertEq(12345, module.result);
- }));
- mojoPrivate.define('dependency', test.callbackPass(function() {
- return {result: 12345};
- }));
- },
-
- function testDefineModuleDoesNotExist() {
- mojoPrivate.define('testModule', ['does not exist!'], test.fail);
- test.succeed();
- },
-
- function testRequireAsync() {
- mojoPrivate.requireAsync('mojo/public/js/codec').then(
- test.callbackPass(function(codec) {
- test.assertEq('function', typeof codec.Message);
- }));
- },
-
- function testDefineAndRequire() {
- mojoPrivate.define('testModule', ['dependency'],
- test.callbackPass(function(module) {
- test.assertEq(12345, module.result);
- }));
- mojoPrivate.define('dependency', test.callbackPass(function() {
- return {result: 12345};
- }));
- mojoPrivate.requireAsync('dependency').then(
- test.callbackPass(),
- test.fail);
- }
-], test.runTests, exports);
« no previous file with comments | « extensions/test/data/keep_alive_client_unittest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698