Title: [120584] trunk/LayoutTests
Revision
120584
Author
o...@webkit.org
Date
2012-06-18 03:43:35 -0700 (Mon, 18 Jun 2012)

Log Message

Unreviewed gardening after r120574.

* fast/files/xhr-response-blob-expected.txt:
* platform/qt/fast/files/xhr-response-blob-expected.txt: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (120583 => 120584)


--- trunk/LayoutTests/ChangeLog	2012-06-18 10:30:42 UTC (rev 120583)
+++ trunk/LayoutTests/ChangeLog	2012-06-18 10:43:35 UTC (rev 120584)
@@ -1,3 +1,10 @@
+2012-06-18  Csaba Osztrogonác  <o...@webkit.org>
+
+        Unreviewed gardening after r120574.
+
+        * fast/files/xhr-response-blob-expected.txt:
+        * platform/qt/fast/files/xhr-response-blob-expected.txt: Added.
+
 2012-06-18  Taiju Tsuiki  <t...@chromium.org>
 
         Fix syntax of FileReader::readAsDataURL result

Modified: trunk/LayoutTests/fast/files/xhr-response-blob-expected.txt (120583 => 120584)


--- trunk/LayoutTests/fast/files/xhr-response-blob-expected.txt	2012-06-18 10:30:42 UTC (rev 120583)
+++ trunk/LayoutTests/fast/files/xhr-response-blob-expected.txt	2012-06-18 10:43:35 UTC (rev 120584)
@@ -3,49 +3,19 @@
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-FAIL xhr.responseType should be blob. Was .
+PASS xhr.responseType is "blob"
 PASS successfullyParsed is true
 
 TEST COMPLETE
-FAIL xhr.response should be null (of type object). Was  (of type string).
-FAIL xhr.response should be null (of type object). Was description("Test that XHR.responseType = 'blob' gives you back a Blob.");
+PASS xhr.response is null
+PASS xhr.response is null
+PASS xhr.response instanceof Blob is true
+PASS xhr.response.type is "text/_javascript_"
+PASS xhr.responseType is "blob"
+PASS xhr.response instanceof Blob is true
+PASS xhr.response.type is ""
+PASS xhr.responseType is "blob"
+PASS xhr.response is null
+PASS xhr.response instanceof Blob is true
+PASS xhr.response.type is ""
 
-if (window.layoutTestController)
-    layoutTestController.waitUntilDone();
-
-function testBlob(blobURL, blobType, doneFunction) {
-    window.xhr = new XMLHttpRequest();
-    xhr.open("GET", blobURL);
-    xhr.responseType = "blob";
-    shouldBeEqualToString("xhr.responseType", "blob");
-    xhr.send();
-    xhr._onreadystatechange_ = function() {
-        if (xhr.readyState != 4) {
-            shouldBeNull("xhr.response");
-            return;
-        }
-        shouldBeTrue("xhr.response instanceof Blob");
-        shouldBeEqualToString("xhr.response.type", blobType);
-        doneFunction();
-    }
-}
-
-testBlob("script-tests/xhr-response-blob.js", "text/_javascript_", function() {
-    testBlob("resources/does_not_exist.txt", "", function() {
-        testBlob("resources/empty-file", "", function() {
-            if (window.layoutTestController)
-                layoutTestController.notifyDone();
-        })
-    })
-});
- (of type string).
-FAIL xhr.response instanceof Blob should be true. Was false.
-FAIL xhr.response.type should be text/_javascript_ (of type string). Was undefined (of type undefined).
-FAIL xhr.responseType should be blob. Was .
-FAIL xhr.response instanceof Blob should be true. Was false.
-FAIL xhr.response.type should be  (of type string). Was undefined (of type undefined).
-FAIL xhr.responseType should be blob. Was .
-FAIL xhr.response should be null (of type object). Was  (of type string).
-FAIL xhr.response instanceof Blob should be true. Was false.
-FAIL xhr.response.type should be  (of type string). Was undefined (of type undefined).
-

Added: trunk/LayoutTests/platform/qt/fast/files/xhr-response-blob-expected.txt (0 => 120584)


--- trunk/LayoutTests/platform/qt/fast/files/xhr-response-blob-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/qt/fast/files/xhr-response-blob-expected.txt	2012-06-18 10:43:35 UTC (rev 120584)
@@ -0,0 +1,21 @@
+Test that XHR.responseType = 'blob' gives you back a Blob.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS xhr.responseType is "blob"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+PASS xhr.response is null
+PASS xhr.response is null
+PASS xhr.response instanceof Blob is true
+FAIL xhr.response.type should be text/_javascript_. Was application/x-_javascript_.
+PASS xhr.responseType is "blob"
+PASS xhr.response instanceof Blob is true
+PASS xhr.response.type is ""
+PASS xhr.responseType is "blob"
+PASS xhr.response is null
+PASS xhr.response instanceof Blob is true
+PASS xhr.response.type is ""
+
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to