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

Unified Diff: third_party/pkg/angular/test/tools/selector_spec.dart

Issue 148453003: Updating Angular version (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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
« no previous file with comments | « third_party/pkg/angular/test/mock/http_backend_spec.dart ('k') | third_party/pkg/angular/travis.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pkg/angular/test/tools/selector_spec.dart
diff --git a/third_party/pkg/angular/test/tools/selector_spec.dart b/third_party/pkg/angular/test/tools/selector_spec.dart
index 9e6b40b88a0ee39be91a57bb0bd4b8cd98ae735b..3c9a139386d2c6e42c78ac7ebbd87d8b14f044b9 100644
--- a/third_party/pkg/angular/test/tools/selector_spec.dart
+++ b/third_party/pkg/angular/test/tools/selector_spec.dart
@@ -57,6 +57,16 @@ main() => describe('selector', () {
expect(matchesNode(node, '[*=/xyzz/]'), isFalse);
});
+ it('should match whildcard attributes', () {
+ var node = new Element.html('<div attr-foo="blah"></div>');
+ expect(matchesNode(node, '[attr-*]'), isTrue);
+ expect(matchesNode(node, '[attr-*=blah]'), isTrue);
+ expect(matchesNode(node, '[attr-*=halb]'), isFalse);
+ expect(matchesNode(node, '[foo-*]'), isFalse);
+ expect(matchesNode(node, '[foo-*=blah]'), isFalse);
+ expect(matchesNode(node, '[foo-*=halb]'), isFalse);
+ });
+
it('should match text', () {
var node = new Text('before-abc-after');
expect(matchesNode(node, ':contains(/abc/)'), isTrue);
« no previous file with comments | « third_party/pkg/angular/test/mock/http_backend_spec.dart ('k') | third_party/pkg/angular/travis.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698