Commits

Daniel Roberts committed 3d6c064 Draft

Adding hgignore to exclude vim swap files.

  • Participants
  • Parent commits 9c98be5

Comments (0)

Files changed (3)

+.*.sw?

File tests/index.html

         <div id="qunit"></div>
         <div id="qunit-fixture"></div>
         <script src="qunit.js"></script>
+        <script src="../dcollection.js"></script>
         <script src="test_dcollection.js"></script>
     </body>
 </html>

File tests/test_dcollection.js

+asyncTest("Thenable", function () {
+    var deferred, promise;
+    deferred = new DeferredCollection();
+    promise = deferred.promise;
+
+    promise.then(function (resolvedData) {
+        ok(true, "Resolved function called as expected.");
+        ok(resolvedData === promise, "Argument to resolved callback is promised collection.");
+    }, function (errorData) {
+        ok(false, "Rejected function unexpectedly called.");
+    });
+
+    deferred.resolve();
+});