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

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

Issue 268593002: Move existing Mojo JS <--> CPP tests out of webui test harness. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused header include. Created 6 years, 8 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
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 3dc32293cf1aa17aaca0a48f931f1ca44ab9244b..086dc0041252bc901e67f7708a6d92436c7324b8 100644
--- a/content/test/data/web_ui_mojo.js
+++ b/content/test/data/web_ui_mojo.js
@@ -6,7 +6,7 @@ define('main', [
'mojo/public/js/bindings/connection',
'content/test/data/web_ui_test_mojo_bindings.mojom',
], function (connection, bindings) {
- var retainedConnection, kIterations = 100, kBadValue = 13;
+ var retainedConnection;
function RendererTargetTest(bindings) {
this.bindings_ = bindings;
@@ -23,33 +23,6 @@ define('main', [
this.bindings_.pingResponse();
};
- RendererTargetTest.prototype.echo = function (arg) {
- var i;
-
- // Ensure negative values are negative.
- if (arg.si64 > 0)
- arg.si64 = kBadValue;
-
- if (arg.si32 > 0)
- arg.si32 = kBadValue;
-
- if (arg.si16 > 0)
- arg.si16 = kBadValue;
-
- if (arg.si8 > 0)
- arg.si8 = kBadValue;
-
- for (i = 0; i < kIterations; ++i) {
- arg2 = new bindings.EchoArgs();
- arg2.si64 = -1;
- arg2.si32 = -1;
- arg2.si16 = -1;
- arg2.si8 = -1;
- arg2.name = "going";
- this.bindings_.echoResponse(arg, arg2);
- }
- };
-
return function(handle) {
retainedConnection = new connection.Connection(
handle, RendererTargetTest, bindings.BrowserTargetProxy);

Powered by Google App Engine
This is Rietveld 408576698