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

Unified Diff: mojo/public/bindings/sample/sample_service_unittests.js

Issue 99623010: Add support for enums within structs and interfaces to mojom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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: mojo/public/bindings/sample/sample_service_unittests.js
diff --git a/mojo/public/bindings/sample/sample_service_unittests.js b/mojo/public/bindings/sample/sample_service_unittests.js
index 749fa41b9579d1a1eeae6c9402b1ada3cfafb4c0..b518deb8db4e91d343fa5a12a84ffc2f69a442d8 100644
--- a/mojo/public/bindings/sample/sample_service_unittests.js
+++ b/mojo/public/bindings/sample/sample_service_unittests.js
@@ -92,7 +92,7 @@ define([
ServiceImpl.prototype.frobinate = function(foo, baz, port) {
checkFoo(foo);
- expect(baz).toBeTruthy();
+ expect(baz).toBe(sample.ServiceStub.BazOptions.BAZ_EXTRA);
expect(port).toBe(10);
global.result = "PASS";
};
@@ -115,5 +115,5 @@ define([
checkFoo(foo);
var port = 10;
- serviceProxy.frobinate(foo, true, port);
+ serviceProxy.frobinate(foo, sample.ServiceProxy.BazOptions.BAZ_EXTRA, port);
});

Powered by Google App Engine
This is Rietveld 408576698