Skip to content

Commit

Permalink
Add equivalent coverage for Opera's FileReader tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Jan 28, 2015
1 parent 83d9681 commit f3a9939
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 f3a9939

Please sign in to comment.