fune/testing/web-platform/tests/FileAPI/reading-data-section/FileReader-event-handler-attributes.any.js
Luca Casonato d3b4d18512 Bug 1703613 [wpt PR 28401] - chore: move FileAPI/reading-data-section to any.js, a=testonly
Automatic update from web-platform-tests
chore: move FileAPI/reading-data-section to any.js

--

wpt-commits: 648205dcf15d75c37b7abe7a0c1a2a7128baea36
wpt-pr: 28401
2021-04-24 15:47:43 +00:00

17 lines
403 B
JavaScript

// META: title=FileReader event handler attributes
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");
});