Skip to content

Commit

Permalink
Merge pull request #1596 from Ms2ger/FileReader-Opera
Browse files Browse the repository at this point in the history
Add equivalent coverage for Opera's FileReader tests.
  • Loading branch information
zcorpan committed Jan 29, 2015
2 parents 1d31b19 + f3a9939 commit 25a8f3f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
7 changes: 7 additions & 0 deletions FileAPI/historical.html
Original file line number Diff line number Diff line change
Expand Up @@ -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');
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!doctype html>
<meta charset="utf-8">
<title>FileReader event handler attributes</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
var attributes = [
"onloadstart",
"onprogress",
"onload",
"onabort",
"onerror",
"onloadend",
];
attributes.forEach(function(a) {
test(function() {
var reader = new FileReader();
assert_equals(reader[a], null,
"event handler attribute should initially be null");
}, "FileReader." + a + ": initial value");
});
</script>

0 comments on commit 25a8f3f

Please sign in to comment.