Bug 1321531 - Fixing WPT FileReader-multiple-reads.html, r=ms2ger
authorAndrea Marchesini <amarchesini@mozilla.com>
Thu, 01 Dec 2016 18:58:37 +0100
changeset 325033 7de007e9921283029004cb7a274eb6a5b27a6f56
parent 325032 8083de7bddbc48c2cdf35c4810746b4e6ea9d13f
child 325034 2b38638df04ddb0d688909b0286bf5452c879c18
push id31026
push usercbook@mozilla.com
push dateFri, 02 Dec 2016 08:24:04 +0000
treeherdermozilla-central@f65ad27efe83 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersms2ger
bugs1321531
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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>