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

Side by Side Diff: mojo/public/js/binding_tests.js

Issue 2645873003: Cleanup mojo-js tests. (Closed)
Patch Set: fixes isolate_map 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
yzshen1 2017/01/19 19:48:47 Does it make sense to create a mojo/public/js/bind
alokp 2017/01/19 22:32:15 Yes it does. Do you think it is worth making the f
yzshen1 2017/01/19 22:32:53 That sounds good to me. Thanks!
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 define([ 5 define([
6 "gin/test/expect", 6 "gin/test/expect",
7 "mojo/public/js/bindings", 7 "mojo/public/js/bindings",
8 "mojo/public/interfaces/bindings/tests/math_calculator.mojom", 8 "mojo/public/interfaces/bindings/tests/math_calculator.mojom",
9 "mojo/public/js/threading", 9 "mojo/public/js/threading",
10 "gc", 10 "gc",
11 ], function(expect, 11 ], function(expect,
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 expect(response.value).toBe(12); 150 expect(response.value).toBe(12);
151 151
152 bindingSet.closeAllBindings(); 152 bindingSet.closeAllBindings();
153 expect(bindingSet.isEmpty()).toBeTruthy(); 153 expect(bindingSet.isEmpty()).toBeTruthy();
154 return Promise.resolve(); 154 return Promise.resolve();
155 }); 155 });
156 156
157 return promise; 157 return promise;
158 } 158 }
159 }); 159 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698