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

Unified Diff: pkg/third_party/html5lib/test/dom_test.dart

Issue 158083002: introduce web_components pkg for consolidated polyfills (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/third_party/html5lib/test/dom_test.dart
diff --git a/pkg/third_party/html5lib/test/dom_test.dart b/pkg/third_party/html5lib/test/dom_test.dart
index 8b339f0da61425b10177960d6478338263db6680..4aa07d8017bb208d4af608aead679cf2e8907ccd 100644
--- a/pkg/third_party/html5lib/test/dom_test.dart
+++ b/pkg/third_party/html5lib/test/dom_test.dart
@@ -6,29 +6,29 @@ import 'package:html5lib/parser.dart';
import 'package:html5lib/dom.dart';
main() {
- group('Node.query type selectors', () {
+ group('Node.querySelector type selectors', () {
test('x-foo', () {
- expect(parse('<x-foo>').body.query('x-foo'), isNotNull);
+ expect(parse('<x-foo>').body.querySelector('x-foo'), isNotNull);
});
test('-x-foo', () {
var doc = parse('<body><-x-foo>');
expect(doc.body.outerHtml, equals('<body>&lt;-x-foo&gt;</body>'));
- expect(doc.body.query('-x-foo'), isNull);
+ expect(doc.body.querySelector('-x-foo'), isNull);
});
test('foo123', () {
- expect(parse('<foo123>').body.query('foo123'), isNotNull);
+ expect(parse('<foo123>').body.querySelector('foo123'), isNotNull);
});
test('123 - invalid', () {
var doc = parse('<123>');
- expect(() => doc.body.query('123'), throwsUnimplementedError);
+ expect(() => doc.body.querySelector('123'), throwsUnimplementedError);
});
test('x\\ny - not implemented', () {
var doc = parse('<x\\ny>');
- expect(() => doc.body.query('x\\ny'), throwsUnimplementedError);
+ expect(() => doc.body.querySelector('x\\ny'), throwsUnimplementedError);
});
});
}

Powered by Google App Engine
This is Rietveld 408576698