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

Unified Diff: third_party/pkg/angular/test/config/filter_tests.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, 12 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/config/filter_tests.dart
diff --git a/third_party/pkg/angular/test/config/filter_tests.dart b/third_party/pkg/angular/test/config/filter_tests.dart
new file mode 100644
index 0000000000000000000000000000000000000000..10a97c308dfee0ed25d00b62ee465e96a063bbfa
--- /dev/null
+++ b/third_party/pkg/angular/test/config/filter_tests.dart
@@ -0,0 +1,16 @@
+import 'package:unittest/unittest.dart' as unit;
+import '../jasmine_syntax.dart' as jasmine;
+
+main() {
+ unit.filterStacks = true;
+ unit.formatStacks = false;
+ unit.filterTests((test) {
+ if (jasmine.ddescribeActive) {
+ String name = test.currentGroup;
+ return name.indexOf('DDESCRIBE: ') != -1;
+ } else {
+ return true;
+ }
+ return true;
+ });
+}

Powered by Google App Engine
This is Rietveld 408576698