Test case details

Preparation Code

<script> window.NativePromise = Promise; </script> <script src="http://ci.angularjs.org/job/angular.js-caitlin/429/artifact/build/angular.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/1.2.2/bluebird.min.js"></script> <script> window.$q = angular.injector(['ng']).get('$q'); </script> <div ng-app="app"></div>

Test cases

Test #1

// async test var d = $q(function(resolve) {   resolve('foo'); }).then(function(value) {   deferred.resolve(value); });  

Test #2

// async test var p = new Promise(function(resolve, reject) {   resolve('foo'); }). then(function() {   deferred.resolve() });

Test #3

// async test var p = new NativePromise(function(resolve, reject) {   resolve('foo'); }). then(function() {   deferred.resolve() });