FileReader-event-handler-attributes.any.js (403B)
1 // META: title=FileReader event handler attributes 2 3 var attributes = [ 4 "onloadstart", 5 "onprogress", 6 "onload", 7 "onabort", 8 "onerror", 9 "onloadend", 10 ]; 11 attributes.forEach(function(a) { 12 test(function() { 13 var reader = new FileReader(); 14 assert_equals(reader[a], null, 15 "event handler attribute should initially be null"); 16 }, "FileReader." + a + ": initial value"); 17 });