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

Unified Diff: mojo/apps/js/bindings/sample_service_unittests.js

Issue 164873002: Fix bug with using enums as default values in mojom. We were previously (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | mojo/public/bindings/generators/cpp_templates/enum_declaration.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/apps/js/bindings/sample_service_unittests.js
diff --git a/mojo/apps/js/bindings/sample_service_unittests.js b/mojo/apps/js/bindings/sample_service_unittests.js
index 299292676702e1c247751d8bba535ae21159fa80..0bcaa30eb22d30119e388e30a9d0d94380fbacab 100644
--- a/mojo/apps/js/bindings/sample_service_unittests.js
+++ b/mojo/apps/js/bindings/sample_service_unittests.js
@@ -8,7 +8,8 @@ define([
"gin/test/expect",
"mojom/sample_service",
"mojom/sample_import",
- ], function(console, hexdump, expect, sample, imported) {
+ "mojom/sample_import2",
+ ], function(console, hexdump, expect, sample, imported, imported2) {
var global = this;
@@ -117,12 +118,10 @@ define([
expect(full.point.y).toBe(15);
expect(full.shape_masks.length).toBe(1);
- // TODO(mpcomplete): This is broken.
- // http://crbug.com/320082
- // expect(full.shape_masks[0]).toBe(1 << imported.Shape.SHAPE_RECTANGLE);
+ expect(full.shape_masks[0]).toBe(1 << imported.Shape.SHAPE_RECTANGLE);
- //expect(full.thing.shape).toBe(imported.Shape.SHAPE_RECTANGLE);
- //expect(full.thing.color).toBe(imported.Color.COLOR_RED);
+ expect(full.thing.shape).toBe(imported.Shape.SHAPE_CIRCLE);
+ expect(full.thing.color).toBe(imported2.Color.COLOR_BLACK);
darin (slow to review) 2014/02/13 22:55:21 Note: it seems like it would be nice if we generat
Matt Perry 2014/02/14 19:43:42 That's definitely doable. It feels a bit.. dirty t
}
function ServiceImpl() {
« no previous file with comments | « no previous file | mojo/public/bindings/generators/cpp_templates/enum_declaration.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698