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><-x-foo></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); |
}); |
}); |
} |