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

Unified Diff: content/test/data/web_ui_mojo.js

Issue 2613813002: Change web_ui testing code to avoid using JS router/proxyClass directly. (Closed)
Patch Set: . Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/web_ui_mojo.js
diff --git a/content/test/data/web_ui_mojo.js b/content/test/data/web_ui_mojo.js
index 3591135f18cc3901ecee9251b0e6c5eaabf05e4a..81c0fb9cf6db289e320202e935688257ed55682a 100644
--- a/content/test/data/web_ui_mojo.js
+++ b/content/test/data/web_ui_mojo.js
@@ -3,16 +3,15 @@
// found in the LICENSE file.
define('main', [
- 'mojo/public/js/router',
+ 'mojo/public/js/bindings',
'content/test/data/web_ui_test_mojo_bindings.mojom',
'content/public/renderer/frame_interfaces',
-], function (router, bindings, interfaceProvider) {
+], function (bindings, webUITest, interfaceProvider) {
var browserTarget;
return function() {
- browserTarget = new bindings.BrowserTarget.proxyClass(
- new router.Router(
- interfaceProvider.getInterface(bindings.BrowserTarget.name)));
+ browserTarget = new webUITest.BrowserTargetPtr(
+ interfaceProvider.getInterface(webUITest.BrowserTarget.name));
browserTarget.start().then(function() {
browserTarget.stop();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698