Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't time things out after they

  • Loading branch information...
commit 4c9242c960e38642081551cd23ec241112d8309a 1 parent b635a75
Conrad Irwin ConradIrwin authored
Showing with 8 additions and 6 deletions.
  1. +8 −6 test-cors/index.html
14 test-cors/index.html
View
@@ -20,13 +20,15 @@
.fail(function () {
li.addClass("bad");
li.text((technical ? msg : 'failed') + '');
- });
+ }),
- setTimeout(function () {
- if (!d.isResolved()) {
- li.text(technical ? "timed out" : "not tested :(");
- }
- }, 10000);
+ t = setTimeout(function () {
+ li.text(technical ? "timed out" : "not tested :(");
+ }, 10000);
+
+ d.always(function () {
+ clearTimeout(t);
+ });
}
jQuery(function () {
Please sign in to comment.
Something went wrong with that request. Please try again.