angular_dart 

Send to Kindle
home » snippets » angular_dart


Pages
logging        
routing        



Snippets

Setup angular.dart repo

git clone -o angular git@github.com:angular/angular.dart.git
cd angular.dart
ln -s scripts/git/validate-commit-msg.js .git/hooks/commit-msg

Fixing exception Exception: FormatException: Couldn't parse VM stack trace line '#6 _rootRun (dart:async/zone.dart:536)'.

 /**
  * Handles failures from expect(). The default in
  * this base configuration is to throw an exception;
  */
 void onExpectFailure(String reason) {
   if (stopTestOnExpectFailure) {
+    throw reason; // ckck
-    throw new TestFailure(reason);
   } else {
     try {
       throw '';
     } catch (_, stack) {
       var trace = _getTrace(stack);
       if (trace == null) trace = stack;
       _testLogBuffer.add(new Pair<String, StackTrace>(reason, trace));
     }
   }
 }