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

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

Issue 1641643004: Roll analyzer to 0.27.2-alpha.1 (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rerun tests and format Created 4 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 unified diff | Download patch
« no previous file with comments | « test/codegen/expect/constructors.txt ('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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 return `at index ${start}: Expected <${truncExpected}>, ` + `Found: <$ {truncActual}>`; 49 return `at index ${start}: Expected <${truncExpected}>, ` + `Found: <$ {truncActual}>`;
50 } 50 }
51 } 51 }
52 return null; 52 return null;
53 } 53 }
54 static equals(expected, actual, reason) { 54 static equals(expected, actual, reason) {
55 if (reason === void 0) reason = null; 55 if (reason === void 0) reason = null;
56 if (dart.equals(expected, actual)) return; 56 if (dart.equals(expected, actual)) return;
57 let msg = Expect._getMessage(reason); 57 let msg = Expect._getMessage(reason);
58 if (typeof expected == 'string' && typeof actual == 'string') { 58 if (typeof expected == 'string' && typeof actual == 'string') {
59 let stringDifference = Expect._stringDifference(dart.as(expected, core.S tring), dart.as(actual, core.String)); 59 let stringDifference = Expect._stringDifference(expected, actual);
60 if (stringDifference != null) { 60 if (stringDifference != null) {
61 Expect._fail(`Expect.equals(${stringDifference}${msg}) fails.`); 61 Expect._fail(`Expect.equals(${stringDifference}${msg}) fails.`);
62 } 62 }
63 } 63 }
64 Expect._fail(`Expect.equals(expected: <${expected}>, actual: <${actual}>${ msg}) fails.`); 64 Expect._fail(`Expect.equals(expected: <${expected}>, actual: <${actual}>${ msg}) fails.`);
65 } 65 }
66 static isTrue(actual, reason) { 66 static isTrue(actual, reason) {
67 if (reason === void 0) reason = null; 67 if (reason === void 0) reason = null;
68 if (dart.notNull(_identical(actual, true))) return; 68 if (dart.notNull(_identical(actual, true))) return;
69 let msg = Expect._getMessage(reason); 69 let msg = Expect._getMessage(reason);
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 dart.setSignature(AssumeDynamic, { 297 dart.setSignature(AssumeDynamic, {
298 constructors: () => ({AssumeDynamic: [AssumeDynamic, []]}) 298 constructors: () => ({AssumeDynamic: [AssumeDynamic, []]})
299 }); 299 });
300 // Exports: 300 // Exports:
301 exports.Expect = Expect; 301 exports.Expect = Expect;
302 exports.ExpectException = ExpectException; 302 exports.ExpectException = ExpectException;
303 exports.NoInline = NoInline; 303 exports.NoInline = NoInline;
304 exports.TrustTypeAnnotations = TrustTypeAnnotations; 304 exports.TrustTypeAnnotations = TrustTypeAnnotations;
305 exports.AssumeDynamic = AssumeDynamic; 305 exports.AssumeDynamic = AssumeDynamic;
306 }); 306 });
OLDNEW
« no previous file with comments | « test/codegen/expect/constructors.txt ('k') | test/codegen/expect/expect/expect.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698