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

Side by Side Diff: third_party/WebKit/LayoutTests/harness-tests/mojo-helpers.html

Issue 1782543004: Reland: Mojo C++ bindings: replace '::' with '.' in the interface name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mojo-helpers.html Created 4 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 | « mojo/shell/tests/shell/target_manifest.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 <script src="../resources/mojo-helpers.js"></script> 4 <script src="../resources/mojo-helpers.js"></script>
5 <script> 5 <script>
6 'use strict'; 6 'use strict';
7 7
8 // Verify that the mojo_test helper functions properly and Mojo bindings 8 // Verify that the mojo_test helper functions properly and Mojo bindings
9 // are available. 9 // are available.
10 mojo_test(mojo => { 10 mojo_test(mojo => {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 assert_array_equals(response.handles, []); 73 assert_array_equals(response.handles, []);
74 }); 74 });
75 }, 'Test code can receive response messages from mock services.'); 75 }, 'Test code can receive response messages from mock services.');
76 76
77 mojo_test(() => { 77 mojo_test(() => {
78 return loadMojoModules( 78 return loadMojoModules(
79 'module loading test', 79 'module loading test',
80 ['mojo/shell/public/interfaces/interface_provider.mojom']).then(mojo => { 80 ['mojo/shell/public/interfaces/interface_provider.mojom']).then(mojo => {
81 let interfaceProvider = mojo.modules[0]; 81 let interfaceProvider = mojo.modules[0];
82 assert_equals(interfaceProvider.InterfaceProvider.name, 82 assert_equals(interfaceProvider.InterfaceProvider.name,
83 'mojo::shell::mojom::InterfaceProvider'); 83 'mojo.shell.mojom.InterfaceProvider');
84 84
85 }); 85 });
86 }, 'Generated mojo bindings can be loaded in tests'); 86 }, 'Generated mojo bindings can be loaded in tests');
87 </script> 87 </script>
OLDNEW
« no previous file with comments | « mojo/shell/tests/shell/target_manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698