@@ -245,14 +245,16 @@ initializerTests(phases) {
245
245
'<!DOCTYPE html><html><head>'
246
246
'</head><body><div></div>' ,
247
247
'a|web/test.html._data' :
248
- expectedData (['web/a.dart' , 'web/b.dart' , 'web/c.dart' , 'web/d.dart' ]),
248
+ expectedData (['web/a.dart' , 'web/b.dart' , 'web/c.dart' ,
249
+ 'web/i.dart' , 'web/j.dart' , 'web/d.dart' ]),
249
250
'a|web/d.dart' :
250
251
'library d;\n '
251
252
'import "package:polymer/polymer.dart";\n '
252
253
'main(){}\n @initMethod mD(){}' ,
253
254
254
255
'a|web/a.dart' :
255
256
'import "package:polymer/polymer.dart";\n '
257
+ 'export "i.dart" hide mI2;\n '
256
258
'@initMethod mA(){}\n ' ,
257
259
258
260
'a|web/b.dart' :
@@ -296,6 +298,15 @@ initializerTests(phases) {
296
298
'@initMethod mH1(){}\n '
297
299
'@CustomTag("x-h2") class XH2 extends PolymerElement {}\n '
298
300
'@initMethod mH2(){}\n ' ,
301
+
302
+ 'a|web/i.dart' :
303
+ 'import "package:polymer/polymer.dart";\n '
304
+ '@CustomTag("x-i") class XI extends PolymerElement {}\n '
305
+ '@initMethod mI1(){}\n '
306
+ '@initMethod mI2(){}\n ' ,
307
+
308
+ 'a|web/j.dart' :
309
+ 'export "a.dart";\n ' ,
299
310
}, {
300
311
'a|web/test.html' :
301
312
'<!DOCTYPE html><html><head></head><body><div></div>'
@@ -308,36 +319,43 @@ initializerTests(phases) {
308
319
import 'a.dart' as i0;
309
320
import 'b.dart' as i1;
310
321
import 'c.dart' as i2;
311
- import 'd.dart' as i3;
322
+ import 'i.dart' as i3;
323
+ import 'j.dart' as i4;
324
+ import 'd.dart' as i5;
312
325
${DEFAULT_IMPORTS .join ('\n ' )}
313
- import 'e .dart' as smoke_0;
326
+ import 'i .dart' as smoke_0;
314
327
import 'package:polymer/polymer.dart' as smoke_1;
315
- import 'f.dart' as smoke_2;
316
- import 'g.dart' as smoke_3;
317
- import 'h.dart' as smoke_4;
318
- import 'c.dart' as smoke_5;
328
+ import 'e.dart' as smoke_2;
329
+ import 'f.dart' as smoke_3;
330
+ import 'g.dart' as smoke_4;
331
+ import 'h.dart' as smoke_5;
332
+ import 'c.dart' as smoke_6;
319
333
320
334
void main() {
321
335
useGeneratedCode(new StaticConfiguration(
322
336
checkedMode: false,
323
337
parents: {
324
- smoke_5.XC1: smoke_1.PolymerElement,
325
- smoke_5.XC2: smoke_1.PolymerElement,
326
- smoke_0.XE: smoke_1.PolymerElement,
327
- smoke_2.XF1: smoke_1.PolymerElement,
328
- smoke_3.XG2: smoke_1.PolymerElement,
329
- smoke_4.XH1: smoke_1.PolymerElement,
338
+ smoke_6.XC1: smoke_1.PolymerElement,
339
+ smoke_6.XC2: smoke_1.PolymerElement,
340
+ smoke_2.XE: smoke_1.PolymerElement,
341
+ smoke_3.XF1: smoke_1.PolymerElement,
342
+ smoke_4.XG2: smoke_1.PolymerElement,
343
+ smoke_5.XH1: smoke_1.PolymerElement,
344
+ smoke_0.XI: smoke_1.PolymerElement,
330
345
},
331
346
declarations: {
332
- smoke_5.XC1: {},
333
- smoke_5.XC2: {},
334
- smoke_0.XE: {},
335
- smoke_2.XF1: {},
336
- smoke_3.XG2: {},
337
- smoke_4.XH1: {},
347
+ smoke_6.XC1: {},
348
+ smoke_6.XC2: {},
349
+ smoke_2.XE: {},
350
+ smoke_3.XF1: {},
351
+ smoke_4.XG2: {},
352
+ smoke_5.XH1: {},
353
+ smoke_0.XI: {},
338
354
}));
339
355
configureForDeployment([
340
356
i0.mA,
357
+ i0.mI1,
358
+ () => Polymer.register('x-i', i0.XI),
341
359
i1.mB,
342
360
i1.mE,
343
361
i1.mF1,
@@ -348,9 +366,10 @@ initializerTests(phases) {
348
366
() => Polymer.register('x-h1', i1.XH1),
349
367
() => Polymer.register('x-c1', i2.XC1),
350
368
() => Polymer.register('x-c2', i2.XC2),
351
- i3.mD,
369
+ i3.mI2,
370
+ i5.mD,
352
371
]);
353
- i3 .main();
372
+ i5 .main();
354
373
}
355
374
''' .replaceAll ('\n ' , '\n ' ),
356
375
}, null );
0 commit comments