XMLHttpRequest: abort() after successful receive should not fire "abort" event
-
+
@@ -22,7 +22,9 @@
assert_equals(client.readyState, 0);
- test.done();
+ setTimeout(function(){ // use a timeout to catch any implementation that might queue an abort event for later - just in case
+ test.step(function(){test.done();});
+ }, 200);
}
});
diff --git a/XMLHttpRequest/abort-after-timeout.htm b/XMLHttpRequest/abort-after-timeout.htm
index 74c6e85bd9176f..b59c51d9192abe 100644
--- a/XMLHttpRequest/abort-after-timeout.htm
+++ b/XMLHttpRequest/abort-after-timeout.htm
@@ -4,7 +4,8 @@
XMLHttpRequest: abort() after a timeout should not fire "abort" event
-
+
+
@@ -28,9 +29,12 @@
assert_true(timeoutFired);
// abort should not cause the "abort" event to fire
-
client.abort();
+ setTimeout(function(){ // use a timeout to catch any implementation that might queue an abort event for later - just in case
+ test.step(function(){test.done();});
+ }, 200);
+
assert_equals(client.readyState, 0);
test.done();
diff --git a/XMLHttpRequest/event-readystatechange-loaded.htm b/XMLHttpRequest/event-readystatechange-loaded.htm
index f2a22bf907e9bc..50f411dea823f5 100644
--- a/XMLHttpRequest/event-readystatechange-loaded.htm
+++ b/XMLHttpRequest/event-readystatechange-loaded.htm
@@ -2,10 +2,12 @@
- XMLHttpRequest: the LOADED state change should only happen once
+ XMLHttpRequest: the LOADING state change should only happen once
-
+
+
+
diff --git a/XMLHttpRequest/response-data-gzip.htm b/XMLHttpRequest/response-data-gzip.htm
index 3e6f04d9f26ef7..2ddbb26b450507 100644
--- a/XMLHttpRequest/response-data-gzip.htm
+++ b/XMLHttpRequest/response-data-gzip.htm
@@ -4,7 +4,7 @@
XMLHttpRequest: GZIP response was correctly inflated
-
+
diff --git a/XMLHttpRequest/response-data-progress.htm b/XMLHttpRequest/response-data-progress.htm
index a4f890948ab07a..384a1171a8029c 100644
--- a/XMLHttpRequest/response-data-progress.htm
+++ b/XMLHttpRequest/response-data-progress.htm
@@ -5,7 +5,8 @@
XMLHttpRequest: progress events grow response body size
-
+
+