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

Side by Side Diff: test/codegen/expect/expect.js

Issue 1483813002: Use const for const/final top-levels, types, symbols. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebased after vsm's regen Created 5 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
« no previous file with comments | « test/codegen/expect/dom/dom.js ('k') | test/codegen/expect/expect/expect.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 dart_library.library('expect', null, /* Imports */[ 1 dart_library.library('expect', null, /* Imports */[
2 "dart/_runtime", 2 "dart/_runtime",
3 'dart/core' 3 'dart/core'
4 ], /* Lazy imports */[ 4 ], /* Lazy imports */[
5 ], function(exports, dart, core) { 5 ], function(exports, dart, core) {
6 'use strict'; 6 'use strict';
7 let dartx = dart.dartx; 7 let dartx = dart.dartx;
8 class Expect extends core.Object { 8 class Expect extends core.Object {
9 static _truncateString(string, start, end, length) { 9 static _truncateString(string, start, end, length) {
10 if (dart.notNull(end) - dart.notNull(start) > dart.notNull(length)) { 10 if (dart.notNull(end) - dart.notNull(start) > dart.notNull(length)) {
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 throws: [dart.void, [dart.functionType(dart.void, [])], [_CheckExceptionFn , core.String]], 290 throws: [dart.void, [dart.functionType(dart.void, [])], [_CheckExceptionFn , core.String]],
291 _getMessage: [core.String, [core.String]], 291 _getMessage: [core.String, [core.String]],
292 _fail: [dart.void, [core.String]] 292 _fail: [dart.void, [core.String]]
293 }), 293 }),
294 names: ['_truncateString', '_stringDifference', 'equals', 'isTrue', 'isFalse ', 'isNull', 'isNotNull', 'identical', 'fail', 'approxEquals', 'notEquals', 'lis tEquals', 'mapEquals', 'stringEquals', 'setEquals', 'throws', '_getMessage', '_f ail'] 294 names: ['_truncateString', '_stringDifference', 'equals', 'isTrue', 'isFalse ', 'isNull', 'isNotNull', 'identical', 'fail', 'approxEquals', 'notEquals', 'lis tEquals', 'mapEquals', 'stringEquals', 'setEquals', 'throws', '_getMessage', '_f ail']
295 }); 295 });
296 function _identical(a, b) { 296 function _identical(a, b) {
297 return core.identical(a, b); 297 return core.identical(a, b);
298 } 298 }
299 dart.fn(_identical, core.bool, [dart.dynamic, dart.dynamic]); 299 dart.fn(_identical, core.bool, [dart.dynamic, dart.dynamic]);
300 let _CheckExceptionFn = dart.typedef('_CheckExceptionFn', () => dart.functionT ype(core.bool, [dart.dynamic])); 300 const _CheckExceptionFn = dart.typedef('_CheckExceptionFn', () => dart.functio nType(core.bool, [dart.dynamic]));
301 let _Nullary = dart.typedef('_Nullary', () => dart.functionType(dart.dynamic, [])); 301 const _Nullary = dart.typedef('_Nullary', () => dart.functionType(dart.dynamic , []));
302 class ExpectException extends core.Object { 302 class ExpectException extends core.Object {
303 ExpectException(message) { 303 ExpectException(message) {
304 this.message = message; 304 this.message = message;
305 } 305 }
306 toString() { 306 toString() {
307 return this.message; 307 return this.message;
308 } 308 }
309 } 309 }
310 ExpectException[dart.implements] = () => [core.Exception]; 310 ExpectException[dart.implements] = () => [core.Exception];
311 dart.setSignature(ExpectException, { 311 dart.setSignature(ExpectException, {
(...skipping 20 matching lines...) Expand all
332 dart.setSignature(AssumeDynamic, { 332 dart.setSignature(AssumeDynamic, {
333 constructors: () => ({AssumeDynamic: [AssumeDynamic, []]}) 333 constructors: () => ({AssumeDynamic: [AssumeDynamic, []]})
334 }); 334 });
335 // Exports: 335 // Exports:
336 exports.Expect = Expect; 336 exports.Expect = Expect;
337 exports.ExpectException = ExpectException; 337 exports.ExpectException = ExpectException;
338 exports.NoInline = NoInline; 338 exports.NoInline = NoInline;
339 exports.TrustTypeAnnotations = TrustTypeAnnotations; 339 exports.TrustTypeAnnotations = TrustTypeAnnotations;
340 exports.AssumeDynamic = AssumeDynamic; 340 exports.AssumeDynamic = AssumeDynamic;
341 }); 341 });
OLDNEW
« no previous file with comments | « test/codegen/expect/dom/dom.js ('k') | test/codegen/expect/expect/expect.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698