OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/adjacent_const_string_literals_test', null, /* Im
ports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__adjacent_const_string_literals_test(exports, dart_sdk, expect)
{ |
| 5 'use strict'; |
| 6 const core = dart_sdk.core; |
| 7 const dart = dart_sdk.dart; |
| 8 const dartx = dart_sdk.dartx; |
| 9 const expect$ = expect.expect; |
| 10 const adjacent_const_string_literals_test = Object.create(null); |
| 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 12 adjacent_const_string_literals_test.Conster = class Conster extends core.Objec
t { |
| 13 new(value) { |
| 14 this.value = value; |
| 15 } |
| 16 toString() { |
| 17 return dart.toString(this.value); |
| 18 } |
| 19 }; |
| 20 dart.setSignature(adjacent_const_string_literals_test.Conster, { |
| 21 constructors: () => ({new: dart.definiteFunctionType(adjacent_const_string_l
iterals_test.Conster, [dart.dynamic])}) |
| 22 }); |
| 23 adjacent_const_string_literals_test.main = function() { |
| 24 adjacent_const_string_literals_test.testEmpty(); |
| 25 adjacent_const_string_literals_test.testInterpolation(); |
| 26 adjacent_const_string_literals_test.testMultiline(); |
| 27 }; |
| 28 dart.fn(adjacent_const_string_literals_test.main, VoidTodynamic()); |
| 29 let const$; |
| 30 let const$0; |
| 31 let const$1; |
| 32 let const$2; |
| 33 let const$3; |
| 34 let const$4; |
| 35 let const$5; |
| 36 let const$6; |
| 37 let const$7; |
| 38 let const$8; |
| 39 let const$9; |
| 40 let const$10; |
| 41 let const$11; |
| 42 let const$12; |
| 43 let const$13; |
| 44 let const$14; |
| 45 let const$15; |
| 46 let const$16; |
| 47 let const$17; |
| 48 let const$18; |
| 49 let const$19; |
| 50 adjacent_const_string_literals_test.testEmpty = function() { |
| 51 expect$.Expect.equals("", (const$ || (const$ = dart.const(new adjacent_const
_string_literals_test.Conster("" + "" + "")))).toString()); |
| 52 expect$.Expect.equals("", (const$0 || (const$0 = dart.const(new adjacent_con
st_string_literals_test.Conster("" + '' + "")))).toString()); |
| 53 expect$.Expect.equals("", (const$1 || (const$1 = dart.const(new adjacent_con
st_string_literals_test.Conster("" + "" + "")))).toString()); |
| 54 expect$.Expect.equals("a", (const$2 || (const$2 = dart.const(new adjacent_co
nst_string_literals_test.Conster("a" + "")))).toString()); |
| 55 expect$.Expect.equals("a", (const$3 || (const$3 = dart.const(new adjacent_co
nst_string_literals_test.Conster("a" + '')))).toString()); |
| 56 expect$.Expect.equals("a", (const$4 || (const$4 = dart.const(new adjacent_co
nst_string_literals_test.Conster("a" + '')))).toString()); |
| 57 expect$.Expect.equals("b", (const$5 || (const$5 = dart.const(new adjacent_co
nst_string_literals_test.Conster('b' + "")))).toString()); |
| 58 expect$.Expect.equals("b", (const$6 || (const$6 = dart.const(new adjacent_co
nst_string_literals_test.Conster('b' + '')))).toString()); |
| 59 expect$.Expect.equals("b", (const$7 || (const$7 = dart.const(new adjacent_co
nst_string_literals_test.Conster('b' + '')))).toString()); |
| 60 expect$.Expect.equals("c", (const$8 || (const$8 = dart.const(new adjacent_co
nst_string_literals_test.Conster('c' + "")))).toString()); |
| 61 expect$.Expect.equals("c", (const$9 || (const$9 = dart.const(new adjacent_co
nst_string_literals_test.Conster('c' + '')))).toString()); |
| 62 expect$.Expect.equals("c", (const$10 || (const$10 = dart.const(new adjacent_
const_string_literals_test.Conster('c' + '')))).toString()); |
| 63 expect$.Expect.equals("a", (const$11 || (const$11 = dart.const(new adjacent_
const_string_literals_test.Conster("" + "a")))).toString()); |
| 64 expect$.Expect.equals("a", (const$12 || (const$12 = dart.const(new adjacent_
const_string_literals_test.Conster("" + 'a')))).toString()); |
| 65 expect$.Expect.equals("a", (const$13 || (const$13 = dart.const(new adjacent_
const_string_literals_test.Conster("" + 'a')))).toString()); |
| 66 expect$.Expect.equals("b", (const$14 || (const$14 = dart.const(new adjacent_
const_string_literals_test.Conster('' + "b")))).toString()); |
| 67 expect$.Expect.equals("b", (const$15 || (const$15 = dart.const(new adjacent_
const_string_literals_test.Conster('' + 'b')))).toString()); |
| 68 expect$.Expect.equals("b", (const$16 || (const$16 = dart.const(new adjacent_
const_string_literals_test.Conster('' + 'b')))).toString()); |
| 69 expect$.Expect.equals("c", (const$17 || (const$17 = dart.const(new adjacent_
const_string_literals_test.Conster('' + "c")))).toString()); |
| 70 expect$.Expect.equals("c", (const$18 || (const$18 = dart.const(new adjacent_
const_string_literals_test.Conster('' + 'c')))).toString()); |
| 71 expect$.Expect.equals("c", (const$19 || (const$19 = dart.const(new adjacent_
const_string_literals_test.Conster('' + 'c')))).toString()); |
| 72 }; |
| 73 dart.fn(adjacent_const_string_literals_test.testEmpty, VoidTodynamic()); |
| 74 adjacent_const_string_literals_test.s = "a"; |
| 75 let const$20; |
| 76 let const$21; |
| 77 let const$22; |
| 78 let const$23; |
| 79 let const$24; |
| 80 let const$25; |
| 81 let const$26; |
| 82 let const$27; |
| 83 let const$28; |
| 84 let const$29; |
| 85 let const$30; |
| 86 let const$31; |
| 87 adjacent_const_string_literals_test.testInterpolation = function() { |
| 88 expect$.Expect.equals("ab", (const$20 || (const$20 = dart.const(new adjacent
_const_string_literals_test.Conster(dart.str`${adjacent_const_string_literals_te
st.s}` + "b")))).toString()); |
| 89 expect$.Expect.equals("ab", (const$21 || (const$21 = dart.const(new adjacent
_const_string_literals_test.Conster(dart.str`${adjacent_const_string_literals_te
st.s}` + "b")))).toString()); |
| 90 expect$.Expect.equals("$sb", (const$22 || (const$22 = dart.const(new adjacen
t_const_string_literals_test.Conster('$s' + "b")))).toString()); |
| 91 expect$.Expect.equals("-a-b", (const$23 || (const$23 = dart.const(new adjace
nt_const_string_literals_test.Conster(dart.str`-${adjacent_const_string_literals
_test.s}-` + "b")))).toString()); |
| 92 expect$.Expect.equals("-a-b", (const$24 || (const$24 = dart.const(new adjace
nt_const_string_literals_test.Conster(dart.str`-${adjacent_const_string_literals
_test.s}-` + "b")))).toString()); |
| 93 expect$.Expect.equals("-$s-b", (const$25 || (const$25 = dart.const(new adjac
ent_const_string_literals_test.Conster('-$s-' + "b")))).toString()); |
| 94 expect$.Expect.equals("ba", (const$26 || (const$26 = dart.const(new adjacent
_const_string_literals_test.Conster('b' + dart.str`${adjacent_const_string_liter
als_test.s}`)))).toString()); |
| 95 expect$.Expect.equals("ba", (const$27 || (const$27 = dart.const(new adjacent
_const_string_literals_test.Conster('b' + dart.str`${adjacent_const_string_liter
als_test.s}`)))).toString()); |
| 96 expect$.Expect.equals("b$s", (const$28 || (const$28 = dart.const(new adjacen
t_const_string_literals_test.Conster('b' + '$s')))).toString()); |
| 97 expect$.Expect.equals("b-a-", (const$29 || (const$29 = dart.const(new adjace
nt_const_string_literals_test.Conster('b' + dart.str`-${adjacent_const_string_li
terals_test.s}-`)))).toString()); |
| 98 expect$.Expect.equals("b-a-", (const$30 || (const$30 = dart.const(new adjace
nt_const_string_literals_test.Conster('b' + dart.str`-${adjacent_const_string_li
terals_test.s}-`)))).toString()); |
| 99 expect$.Expect.equals("b-$s-", (const$31 || (const$31 = dart.const(new adjac
ent_const_string_literals_test.Conster('b' + '-$s-')))).toString()); |
| 100 }; |
| 101 dart.fn(adjacent_const_string_literals_test.testInterpolation, VoidTodynamic()
); |
| 102 let const$32; |
| 103 let const$33; |
| 104 let const$34; |
| 105 let const$35; |
| 106 let const$36; |
| 107 let const$37; |
| 108 adjacent_const_string_literals_test.testMultiline = function() { |
| 109 expect$.Expect.equals("abe", (const$32 || (const$32 = dart.const(new adjacen
t_const_string_literals_test.Conster("a" + "b" + "e")))).toString()); |
| 110 expect$.Expect.equals("a b e", (const$33 || (const$33 = dart.const(new adjac
ent_const_string_literals_test.Conster("a " + "b " + "e")))).toString()); |
| 111 expect$.Expect.equals("a b e", (const$34 || (const$34 = dart.const(new adjac
ent_const_string_literals_test.Conster("a" + " b" + " e")))).toString()); |
| 112 expect$.Expect.equals("abe", (const$35 || (const$35 = dart.const(new adjacen
t_const_string_literals_test.Conster("a" + "b" + "e")))).toString()); |
| 113 expect$.Expect.equals("a b e", (const$36 || (const$36 = dart.const(new adjac
ent_const_string_literals_test.Conster("a" + " b" + " e")))).toString()); |
| 114 expect$.Expect.equals("abe", (const$37 || (const$37 = dart.const(new adjacen
t_const_string_literals_test.Conster("a" + "b" + "e")))).toString()); |
| 115 }; |
| 116 dart.fn(adjacent_const_string_literals_test.testMultiline, VoidTodynamic()); |
| 117 // Exports: |
| 118 exports.adjacent_const_string_literals_test = adjacent_const_string_literals_t
est; |
| 119 }); |
OLD | NEW |