From f3a99397336f066d2ac4082a1044215ceb722f65 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 28 Jan 2015 22:38:19 +0100 Subject: [PATCH] Add equivalent coverage for Opera's FileReader tests. --- FileAPI/historical.html | 7 ++++++ .../FileReader-event-handler-attributes.html | 23 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 FileAPI/reading-data-section/FileReader-event-handler-attributes.html diff --git a/FileAPI/historical.html b/FileAPI/historical.html index a9ae674d45..3ff56a3016 100644 --- a/FileAPI/historical.html +++ b/FileAPI/historical.html @@ -36,6 +36,13 @@ assert_false(prefixes[i]+'BlobBuilder' in window, prefixes[i]+'BlobBuilder'); } }, 'BlobBuilder should not be supported.'); + + test(function() { + var reader = new FileReader(); + assert_false('readAsBinaryString' in reader, 'should not be in reader'); + assert_equals(reader.readAsBinaryString, undefined, + 'should be undefined on getting') + }, 'FileReader should not support readAsBinaryString'); diff --git a/FileAPI/reading-data-section/FileReader-event-handler-attributes.html b/FileAPI/reading-data-section/FileReader-event-handler-attributes.html new file mode 100644 index 0000000000..86657b5711 --- /dev/null +++ b/FileAPI/reading-data-section/FileReader-event-handler-attributes.html @@ -0,0 +1,23 @@ + + +FileReader event handler attributes + + +
+