Bug 1321531 - Fixing WPT FileReader-multiple-reads.html, r=ms2ger
authorAndrea Marchesini <amarchesini@mozilla.com>
Thu, 01 Dec 2016 18:58:37 +0100
changeset 325066 7de007e9921283029004cb7a274eb6a5b27a6f56
parent 325065 8083de7bddbc48c2cdf35c4810746b4e6ea9d13f
child 325067 2b38638df04ddb0d688909b0286bf5452c879c18
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersms2ger
bugs1321531
milestone53.0a1
Bug 1321531 - Fixing WPT FileReader-multiple-reads.html, r=ms2ger
testing/web-platform/meta/FileAPI/reading-data-section/FileReader-multiple-reads.html.ini
testing/web-platform/tests/FileAPI/reading-data-section/FileReader-multiple-reads.html
deleted file mode 100644
--- a/testing/web-platform/meta/FileAPI/reading-data-section/FileReader-multiple-reads.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[FileReader-multiple-reads.html]
-  type: testharness
-  [test FileReader no InvalidStateError exception in onloadstart event for readAsArrayBuffer]
-    expected: FAIL
-
--- a/testing/web-platform/tests/FileAPI/reading-data-section/FileReader-multiple-reads.html
+++ b/testing/web-platform/tests/FileAPI/reading-data-section/FileReader-multiple-reads.html
@@ -57,17 +57,17 @@ async_test(function() {
   assert_equals(reader.readyState, FileReader.LOADING, "readyState Must be LOADING")
 }, 'test FileReader InvalidStateError exception in onloadstart event for readAsArrayBuffer');
 
 async_test(function() {
   var blob_1 = new Blob(['TEST000000001'])
   var blob_2 = new Blob(['TEST000000002'])
   var reader = new FileReader();
   reader.onloadend = this.step_func_done(function() {
-    assert_equals(reader.readyState, FileReader.LOADING,
-                  "readyState must be LOADING")
+    assert_equals(reader.readyState, FileReader.DONE,
+                  "readyState must be DONE")
     reader.readAsArrayBuffer(blob_2)
     assert_equals(reader.readyState, FileReader.LOADING, "readyState Must be LOADING")
   });
   reader.readAsArrayBuffer(blob_1)
   assert_equals(reader.readyState, FileReader.LOADING, "readyState Must be LOADING")
 }, 'test FileReader no InvalidStateError exception in onloadstart event for readAsArrayBuffer');
 </script>