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

Side by Side Diff: mojo/apps/js/bindings/codec_unittests.js

Issue 100573003: [Mojo] Move JS bindings out of public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix header guards 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/apps/js/bindings/codec.js ('k') | mojo/apps/js/bindings/connector.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
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/bindings/js/codec", 7 "mojo/apps/js/bindings/codec",
8 "mojom/sample_service", 8 "mojom/sample_service",
9 ], function(expect, codec, sample) { 9 ], function(expect, codec, sample) {
10 testBar(); 10 testBar();
11 testFoo(); 11 testFoo();
12 testAlign(); 12 testAlign();
13 this.result = "PASS"; 13 this.result = "PASS";
14 14
15 function testBar() { 15 function testBar() {
16 var bar = new sample.Bar(); 16 var bar = new sample.Bar();
17 bar.alpha = 1; 17 bar.alpha = 1;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 16, // 16 151 16, // 16
152 24, // 17 152 24, // 17
153 24, // 18 153 24, // 18
154 24, // 19 154 24, // 19
155 24, // 20 155 24, // 20
156 ]; 156 ];
157 for (var i = 0; i < aligned.length; ++i) 157 for (var i = 0; i < aligned.length; ++i)
158 expect(codec.align(i)).toBe(aligned[i]); 158 expect(codec.align(i)).toBe(aligned[i]);
159 } 159 }
160 }); 160 });
OLDNEW
« no previous file with comments | « mojo/apps/js/bindings/codec.js ('k') | mojo/apps/js/bindings/connector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698