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

Unified Diff: pkg/polymer/e2e_test/bad_import3/test/import_test.dart

Issue 293023008: Bring back initPolymer, allow boot.js only if using "polymer_experimental.html". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: pkg/polymer/e2e_test/bad_import3/test/import_test.dart
diff --git a/tests/html/non_instantiated_is_test.dart b/pkg/polymer/e2e_test/bad_import3/test/import_test.dart
similarity index 52%
copy from tests/html/non_instantiated_is_test.dart
copy to pkg/polymer/e2e_test/bad_import3/test/import_test.dart
index b226ea7a40cd99f1edb950f53b14698026019c99..13b64738d38ace0b9c5d2fb3cbbd648430691351 100644
--- a/tests/html/non_instantiated_is_test.dart
+++ b/pkg/polymer/e2e_test/bad_import3/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_import3.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_import3/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.');
});
}
« no previous file with comments | « pkg/polymer/e2e_test/bad_import3/pubspec.yaml ('k') | pkg/polymer/e2e_test/bad_import3/test/import_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698