Unreviewed, rolling out r243551.
[WebKit-https.git] / LayoutTests / http / tests / xmlhttprequest / upload-onabort-progressevent-attributes.html
index fe9cdab..1f81170 100644 (file)
@@ -26,15 +26,6 @@ function onProgressEvent(e)
             + "(" + e.loaded + " / " + e.total + "), expected (" + loaded + " / " + total + ")");
 }
 
-function onErrorProgressEvent(e)
-{
-    if (e.lengthComputable)
-        fail("Event " + e.type + " lengthComputable is true");
-    if (e.total != 0 || e.loaded != 0)
-        fail("Event " + e.type + " total/loaded values not matching: "
-            + "(" + e.loaded + " / " + e.total + "), expected (0 / 0)");
-}
-
 function onUnexpectedProgressEvent(e)
 {
     fail("unexpected ProgressEvent: " + e.type);
@@ -59,13 +50,13 @@ function test()
     var req = new XMLHttpRequest();
     req.upload.onerror = onUnexpectedProgressEvent;
     req.upload.onload = onUnexpectedProgressEvent;
-    req.upload.onabort = onErrorProgressEvent;
+    req.upload.onabort = onProgressEvent;
     req.upload.onprogress = function(e) {
         onProgressEvent(e);
         req.abort();
     }
     req.upload.onloadend = function(e) {
-        onErrorProgressEvent(e);
+        onProgressEvent(e);
         completeTest();
     }