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

Side by Side Diff: test/custom_element_test.dart

Issue 993423004: Fix normalization of relative paths inside of deep relative imports (Closed) Base URL: git@github.com:dart-lang/web-components.git@master
Patch Set: format Created 5 years, 9 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/build/import_inliner_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 library web_components.test.custom_element_test; 4 library web_components.test.custom_element_test;
5 5
6 import 'dart:async'; 6 import 'dart:async';
7 import 'dart:html'; 7 import 'dart:html';
8 import 'package:initialize/initialize.dart' as init; 8 import 'package:initialize/initialize.dart' as init;
9 import 'package:unittest/html_config.dart'; 9 import 'package:unittest/html_config.dart';
10 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // why? https://github.com/dart-lang/web-components/issues/4 68 // why? https://github.com/dart-lang/web-components/issues/4
69 return new Future(() {}).then((_) { 69 return new Future(() {}).then((_) {
70 var elements = container.querySelectorAll('child-element'); 70 var elements = container.querySelectorAll('child-element');
71 expect(elements.length, 2); 71 expect(elements.length, 2);
72 for (var element in elements) { 72 for (var element in elements) {
73 expect(element is ChildElement, isTrue); 73 expect(element is ChildElement, isTrue);
74 } 74 }
75 }); 75 });
76 }); 76 });
77 77
78
79 test('extends input element', () { 78 test('extends input element', () {
80 expect(document.querySelector('input') is ExtendedElement, isTrue); 79 expect(document.querySelector('input') is ExtendedElement, isTrue);
81 container.append(new ExtendedElement()); 80 container.append(new ExtendedElement());
82 container.appendHtml('<input is="extended-element" />'); 81 container.appendHtml('<input is="extended-element" />');
83 // TODO(jakemac): after appendHtml elements are upgraded asynchronously, 82 // TODO(jakemac): after appendHtml elements are upgraded asynchronously,
84 // why? https://github.com/dart-lang/web-components/issues/4 83 // why? https://github.com/dart-lang/web-components/issues/4
85 return new Future(() {}).then((_) { 84 return new Future(() {}).then((_) {
86 var elements = container.querySelectorAll('input'); 85 var elements = container.querySelectorAll('input');
87 expect(elements.length, 2); 86 expect(elements.length, 2);
88 for (var element in elements) { 87 for (var element in elements) {
89 expect(element is ExtendedElement, isTrue); 88 expect(element is ExtendedElement, isTrue);
90 } 89 }
91 }); 90 });
92 }); 91 });
93 }); 92 });
94 } 93 }
OLDNEW
« no previous file with comments | « test/build/import_inliner_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698