From 396343dd669f8335875aa79691d3096cdaf9065c Mon Sep 17 00:00:00 2001 From: Masatoshi Kimura Date: Mon, 12 Mar 2012 21:45:00 -0700 Subject: [PATCH] Bug 721569 - Tests. r=sicking --HG-- rename : content/base/test/test_blobbuilder.html => content/base/test/test_blobconstructor.html --- content/base/test/Makefile.in | 1 + content/base/test/fileutils.js | 4 +- content/base/test/test_blobbuilder.html | 48 ++++- content/base/test/test_blobconstructor.html | 194 ++++++++++++++++++++ 4 files changed, 235 insertions(+), 12 deletions(-) create mode 100644 content/base/test/test_blobconstructor.html diff --git a/content/base/test/Makefile.in b/content/base/test/Makefile.in index cf348b28ef43..873fa10e2c78 100644 --- a/content/base/test/Makefile.in +++ b/content/base/test/Makefile.in @@ -484,6 +484,7 @@ _TEST_FILES2 = \ bug638112.sjs \ test_bug656283.html \ test_blobbuilder.html \ + test_blobconstructor.html \ fileutils.js \ test_bug338583.html \ test_EventSource_redirects.html \ diff --git a/content/base/test/fileutils.js b/content/base/test/fileutils.js index 67ba18989b4c..f0b306079a4f 100644 --- a/content/base/test/fileutils.js +++ b/content/base/test/fileutils.js @@ -97,8 +97,8 @@ function getXHRLoadHandler(expectedResult, expectedLength, statusWorking, testNa "[XHR] no error in test " + testName); } else { - todo(event.target.status, 200, - "[XHR] no error in test " + testName); + todo_is(event.target.status, 200, + "[XHR] no error in test " + testName); } // Do not use |is(convertXHRBinary(event.target.responseText), expectedResult, "...");| that may output raw binary data. var convertedData = convertXHRBinary(event.target.responseText); diff --git a/content/base/test/test_blobbuilder.html b/content/base/test/test_blobbuilder.html index 6addb2f75f5b..d32643952786 100644 --- a/content/base/test/test_blobbuilder.html +++ b/content/base/test/test_blobbuilder.html @@ -18,7 +18,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=648997
 
+  
+  
+  
+
+
+Mozilla Bug 721569
+

+ +
+
+
+ +