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

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

Issue 1145243013: Check for duplicate library names (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Address comments Created 5 years, 6 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/8invalid-chars.in+file_name.js ('k') | test/codegen/expect/DeltaBlue.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 var BenchmarkBase = dart.defineLibrary(BenchmarkBase, {}); 1 dart.library('BenchmarkBase', null, /* Imports */[
2 var core = dart.import(core); 2 'dart/core'
3 (function(exports, core) { 3 ], /* Lazy imports */[
4 ], function(exports, core) {
4 'use strict'; 5 'use strict';
5 class Expect extends core.Object { 6 class Expect extends core.Object {
6 static equals(expected, actual) { 7 static equals(expected, actual) {
7 if (!dart.equals(expected, actual)) { 8 if (!dart.equals(expected, actual)) {
8 throw `Values not equal: ${expected} vs ${actual}`; 9 throw `Values not equal: ${expected} vs ${actual}`;
9 } 10 }
10 } 11 }
11 static listEquals(expected, actual) { 12 static listEquals(expected, actual) {
12 if (expected.length != actual.length) { 13 if (expected.length != actual.length) {
13 throw `Lists have different lengths: ${expected.length} vs ${actual.leng th}`; 14 throw `Lists have different lengths: ${expected.length} vs ${actual.leng th}`;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 teardown: [dart.void, []], 83 teardown: [dart.void, []],
83 measure: [core.double, []], 84 measure: [core.double, []],
84 report: [dart.void, []] 85 report: [dart.void, []]
85 }), 86 }),
86 statics: () => ({measureFor: [core.double, [core.Function, core.int]]}), 87 statics: () => ({measureFor: [core.double, [core.Function, core.int]]}),
87 names: ['measureFor'] 88 names: ['measureFor']
88 }); 89 });
89 // Exports: 90 // Exports:
90 exports.Expect = Expect; 91 exports.Expect = Expect;
91 exports.BenchmarkBase = BenchmarkBase; 92 exports.BenchmarkBase = BenchmarkBase;
92 })(BenchmarkBase, core); 93 });
OLDNEW
« no previous file with comments | « test/codegen/expect/8invalid-chars.in+file_name.js ('k') | test/codegen/expect/DeltaBlue.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698