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

Unified Diff: third_party/pkg/angular/test/jasmines_syntax_spec.dart

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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: third_party/pkg/angular/test/jasmines_syntax_spec.dart
diff --git a/third_party/pkg/angular/test/jasmines_syntax_spec.dart b/third_party/pkg/angular/test/jasmines_syntax_spec.dart
new file mode 100644
index 0000000000000000000000000000000000000000..9fe6968fa5036ed497ebc0933dd758899962357a
--- /dev/null
+++ b/third_party/pkg/angular/test/jasmines_syntax_spec.dart
@@ -0,0 +1,63 @@
+library jasmine_syntax_spec;
+
+import 'jasmine_syntax.dart';
+import 'package:unittest/unittest.dart' as unit;
+
+main() {
+ describe('jasmine syntax', () {
+ describe('beforeEach priority', () {
+ var log = [];
+ beforeEach(() {
+ log.add("first p0");
+ });
+
+ beforeEach(() {
+ log.add("p0");
+ }, priority: 0);
+
+ beforeEach(() {
+ log.add("p1");
+ }, priority: 1);
+
+ it('should call beforeEach in the correct order', () {
+ unit.expect(log.join(';'), unit.equals('p1;first p0;p0'));
+ });
+ });
+
+ describe('beforeEach priority with nested describes', () {
+ var log;
+ beforeEach(() {
+ log = [];
+ }, priority: 2);
+
+ beforeEach(() {
+ log.add("p0Outer");
+ }, priority: 0);
+
+ beforeEach(() {
+ log.add("p1Outer");
+ }, priority: 1);
+
+ it('should call beforeEach in the correct order', () {
+ unit.expect(log.join(';'), unit.equals('p1Outer;p0Outer'));
+ });
+
+ describe('inner', () {
+ beforeEach(() {
+ log.add("p0Inner");
+ }, priority: 0);
+
+ beforeEach(() {
+ log.add("p1Inner");
+ }, priority: 1);
+
+
+ it('should call beforeEach in the correct order', () {
+ unit.expect(log.join(';'), unit.equals('p1Outer;p1Inner;p0Outer;p0Inner'));
+ });
+ });
+
+
+ });
+ });
+}
« no previous file with comments | « third_party/pkg/angular/test/jasmine_syntax.dart ('k') | third_party/pkg/angular/test/mock/http_backend_spec.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698