webapps

changeset 973:52b745cebe4f

Address Anne's comment in PE test case: allowed ev.loaded to be 0.
author Jungkee Song <jungkee.song@samsung.com>
date Sat, 19 Jan 2013 23:20:44 +0900
parents 34269d195cd8
children 112fa34d109d
files ProgressEvents/tests/submissions/Samsung/firing-events-http-content-length.html ProgressEvents/tests/submissions/Samsung/firing-events-http-no-content-length.html ProgressEvents/tests/submissions/Samsung/security-consideration.html
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/ProgressEvents/tests/submissions/Samsung/firing-events-http-content-length.html	Sat Jan 19 14:44:18 2013 +0100
     1.2 +++ b/ProgressEvents/tests/submissions/Samsung/firing-events-http-content-length.html	Sat Jan 19 23:20:44 2013 +0900
     1.3 @@ -17,7 +17,7 @@
     1.4          xhr.onprogress = function(pe) {
     1.5            test.step(function() {
     1.6              if(pe.type == "progress") {
     1.7 -              assert_not_equals(pe.loaded, 0, "loaded is not zero.");
     1.8 +              assert_true(pe.loaded >= 0, "loaded is initialize to the number of HTTP entity body bytes transferred.");
     1.9                assert_true(pe.lengthComputable, "lengthComputable is true.");
    1.10                assert_not_equals(pe.total, 0, "total is not zero.");
    1.11              }
     2.1 --- a/ProgressEvents/tests/submissions/Samsung/firing-events-http-no-content-length.html	Sat Jan 19 14:44:18 2013 +0100
     2.2 +++ b/ProgressEvents/tests/submissions/Samsung/firing-events-http-no-content-length.html	Sat Jan 19 23:20:44 2013 +0900
     2.3 @@ -17,7 +17,7 @@
     2.4          xhr.onprogress = function(pe) {
     2.5            test.step(function() {
     2.6              if(pe.type == "progress") {
     2.7 -              assert_not_equals(pe.loaded, 0, "loaded is not zero.");
     2.8 +              assert_true(pe.loaded >= 0, "loaded is initialize to the number of HTTP entity body bytes transferred.");
     2.9                assert_false(pe.lengthComputable, "lengthComputable is false.");
    2.10                assert_equals(pe.total, 0, "total is zero.");
    2.11              }
     3.1 --- a/ProgressEvents/tests/submissions/Samsung/security-consideration.html	Sat Jan 19 14:44:18 2013 +0100
     3.2 +++ b/ProgressEvents/tests/submissions/Samsung/security-consideration.html	Sat Jan 19 23:20:44 2013 +0900
     3.3 @@ -40,7 +40,7 @@
     3.4          xhr.onloadend = function(pe) {
     3.5            test.done();
     3.6          }
     3.7 -        xhr.open("GET", "http://www.w3.org", true);
     3.8 +        xhr.open("GET", "http://www.w3c-test.org:81/webapps/ProgressEvents/tests/submissions/Samsung/resources/img.jpg", true);
     3.9          xhr.send(null);
    3.10        })
    3.11      </script>
Set up and maintained by W3C Systems Team, please report bugs to sysreq@w3.org.

W3C would like to thank Microsoft who donated the server that allows us to run this service.