Add failing Windows expected results for tests that involve the xhr.arrayBuffer ...
authorbweinstein@apple.com <bweinstein@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Dec 2010 19:34:07 +0000 (19:34 +0000)
committerbweinstein@apple.com <bweinstein@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Dec 2010 19:34:07 +0000 (19:34 +0000)
which works on Mac, but not on Windows.

Getting arrayBuffer working on Windows is being tracked by https://bugs.webkit.org/show_bug.cgi?id=50334.

* platform/win/fast/xmlhttprequest: Added.
* platform/win/fast/xmlhttprequest/xmlhttprequest-responsetype-abort-expected.txt: Added.
* platform/win/fast/xmlhttprequest/xmlhttprequest-responsetype-arraybuffer-expected.txt: Added.
* platform/win/http/tests/xmlhttprequest: Added.
* platform/win/http/tests/xmlhttprequest/send-array-buffer-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@73048 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/platform/win/fast/xmlhttprequest/xmlhttprequest-responsetype-abort-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/xmlhttprequest/xmlhttprequest-responsetype-arraybuffer-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/xmlhttprequest/send-array-buffer-expected.txt [new file with mode: 0644]

index d0ae715..bfd726f 100644 (file)
@@ -1,3 +1,16 @@
+2010-12-01  Brian Weinstein  <bweinstein@apple.com>
+
+        Add failing Windows expected results for tests that involve the xhr.arrayBuffer = 'arraybuffer',
+        which works on Mac, but not on Windows.
+        
+        Getting arrayBuffer working on Windows is being tracked by https://bugs.webkit.org/show_bug.cgi?id=50334.
+
+        * platform/win/fast/xmlhttprequest: Added.
+        * platform/win/fast/xmlhttprequest/xmlhttprequest-responsetype-abort-expected.txt: Added.
+        * platform/win/fast/xmlhttprequest/xmlhttprequest-responsetype-arraybuffer-expected.txt: Added.
+        * platform/win/http/tests/xmlhttprequest: Added.
+        * platform/win/http/tests/xmlhttprequest/send-array-buffer-expected.txt: Added.
+
 2010-12-01  Ryosuke Niwa  <rniwa@webkit.org>
 
         Reviewed by Darin Adler, Tony Chang, and unofficially by Enrica Casucci.
diff --git a/LayoutTests/platform/win/fast/xmlhttprequest/xmlhttprequest-responsetype-abort-expected.txt b/LayoutTests/platform/win/fast/xmlhttprequest/xmlhttprequest-responsetype-abort-expected.txt
new file mode 100644 (file)
index 0000000..ffc6c69
--- /dev/null
@@ -0,0 +1,12 @@
+Tests aborting XMLHttpRequest 'arraybuffer' loading with the .responseType and .response attributes.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS responseType property exists.
+PASS response property exists.
+PASS abort() was called.
+PASS 'arraybuffer' .response does not exist after aborted load.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/platform/win/fast/xmlhttprequest/xmlhttprequest-responsetype-arraybuffer-expected.txt b/LayoutTests/platform/win/fast/xmlhttprequest/xmlhttprequest-responsetype-arraybuffer-expected.txt
new file mode 100644 (file)
index 0000000..b0fdbe6
--- /dev/null
@@ -0,0 +1,21 @@
+CONSOLE MESSAGE: line 59: ReferenceError: Can't find variable: Uint8Array
+FAIL: Timed out waiting for notifyDone to be called
+Tests XMLHttpRequest 'arraybuffer' loading with the .responseType and .response attributes.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS 'arraybuffer' .response does not exist when .readyState is 1.
+PASS responseType property exists.
+PASS response property exists.
+PASS xhr.responseType is initially set to default value of empty string.
+PASS xhr.responseType has been correctly set to ''.
+PASS xhr.responseType has been correctly set to 'text'.
+PASS xhr.responseType has been correctly set to 'document'.
+PASS exception correctly thrown when xhr.responseType is set to invalid value : Error: SYNTAX_ERR: DOM Exception 12.
+PASS 'arraybuffer' .response does not exist when .readyState is 2.
+PASS 'arraybuffer' .response does not exist when .readyState is 3.
+FAIL 'arraybuffer' .response should exist when .readyState is 4.
+PASS DONE LOADING
+PASS received response object : null.
+PASS exception correctly thrown when xhr.responseType is set to valid value too late in the loading process : Error: INVALID_STATE_ERR: DOM Exception 11.
+
diff --git a/LayoutTests/platform/win/http/tests/xmlhttprequest/send-array-buffer-expected.txt b/LayoutTests/platform/win/http/tests/xmlhttprequest/send-array-buffer-expected.txt
new file mode 100644 (file)
index 0000000..97f2b40
--- /dev/null
@@ -0,0 +1,3 @@
+CONSOLE MESSAGE: line 18: ReferenceError: Can't find variable: Uint8Array
+Tests sending an array buffer.
+