Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-onProgress-open-should-zero-length.html

Issue 1681923002: Remove XMLHttpRequestProgressEvent (position and totalSize) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update tests Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-onProgress-open-should-zero-length.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-onProgress-open-should-zero-length.html b/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-onProgress-open-should-zero-length.html
index 806a34ee0a811b3e7c1cce14b474e063f61a982e..63367b378ce052bfaf3ed3ff5251f6bcf6040e2c 100644
--- a/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-onProgress-open-should-zero-length.html
+++ b/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-onProgress-open-should-zero-length.html
@@ -14,7 +14,7 @@ function log (msg)
}
function onProgress(e) {
- if (e.position >= resourceSize / 4) {
+ if (e.loaded >= resourceSize / 4) {
// We want to restart the XMLHttpRequest to see if the count is updated
var xhr = e.target;
xhr.onprogress = onProgressTest;
@@ -25,7 +25,7 @@ function onProgress(e) {
}
function onProgressTest(e) {
- lastPosition = e.position;
+ lastPosition = e.loaded;
}
function onReadyStateChange() {

Powered by Google App Engine
This is Rietveld 408576698