| Index: pkg/polymer/e2e_test/bad_import1/test/import_test.dart
|
| diff --git a/tests/html/non_instantiated_is_test.dart b/pkg/polymer/e2e_test/bad_import1/test/import_test.dart
|
| similarity index 52%
|
| copy from tests/html/non_instantiated_is_test.dart
|
| copy to pkg/polymer/e2e_test/bad_import1/test/import_test.dart
|
| index b226ea7a40cd99f1edb950f53b14698026019c99..8bd79cfc06459eb36f9efdc9f58cba7a741128c8 100644
|
| --- a/tests/html/non_instantiated_is_test.dart
|
| +++ b/pkg/polymer/e2e_test/bad_import1/test/import_test.dart
|
| @@ -2,19 +2,21 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -// Regression test for dart2js, that used to emit wrong code on is
|
| -// checks of native classes that are not instantiated.
|
| +/// Tests how canonicalization works when using the deployed app.
|
| +library bad_import1.import_test;
|
|
|
| -import 'dart:html';
|
| import 'package:unittest/unittest.dart';
|
| import 'package:unittest/html_config.dart';
|
| +import 'package:polymer/polymer.dart';
|
|
|
| -var a = [new Object()];
|
| -
|
| +import 'package:bad_import1/a.dart';
|
| main() {
|
| + initPolymer();
|
| useHtmlConfiguration();
|
|
|
| - test('is', () {
|
| - expect(a[0] is Node, isFalse);
|
| + setUp(() => Polymer.onReady);
|
| +
|
| + test('html import', () {
|
| + expect(a, 0, reason: 'html import was not resolved correctly.');
|
| });
|
| }
|
|
|