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

Side by Side Diff: third_party/pkg/angular/test/directive/ng_show_hide_spec.dart

Issue 124053002: Adding Angular and dependent packages for testing (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 library ng_show_hide_spec;
2
3 import '../_specs.dart';
4
5
6 main() {
7 describe('NgHide', () {
8 TestBed _;
9 beforeEach(inject((TestBed tb) => _ = tb));
10
11 it('should add/remove ng-hide class', () {
12 _.compile('<div ng-hide="isHidden"></div>');
13
14 expect(_.rootElement).not.toHaveClass('ng-hide');
15
16 _.rootScope.$apply(() {
17 _.rootScope['isHidden'] = true;
18 });
19 expect(_.rootElement).toHaveClass('ng-hide');
20
21 _.rootScope.$apply(() {
22 _.rootScope['isHidden'] = false;
23 });
24 expect(_.rootElement).not.toHaveClass('ng-hide');
25 });
26 });
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698