OLD | NEW |
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 Loading... |
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> |
OLD | NEW |