11cb0ef41Sopenharmony_ci<!doctype html> 21cb0ef41Sopenharmony_ci<meta charset="utf-8"> 31cb0ef41Sopenharmony_ci<title>FileReader event handler attributes</title> 41cb0ef41Sopenharmony_ci<script src="/resources/testharness.js"></script> 51cb0ef41Sopenharmony_ci<script src="/resources/testharnessreport.js"></script> 61cb0ef41Sopenharmony_ci<div id=log></div> 71cb0ef41Sopenharmony_ci<script> 81cb0ef41Sopenharmony_civar attributes = [ 91cb0ef41Sopenharmony_ci "onloadstart", 101cb0ef41Sopenharmony_ci "onprogress", 111cb0ef41Sopenharmony_ci "onload", 121cb0ef41Sopenharmony_ci "onabort", 131cb0ef41Sopenharmony_ci "onerror", 141cb0ef41Sopenharmony_ci "onloadend", 151cb0ef41Sopenharmony_ci]; 161cb0ef41Sopenharmony_ciattributes.forEach(function(a) { 171cb0ef41Sopenharmony_ci test(function() { 181cb0ef41Sopenharmony_ci var reader = new FileReader(); 191cb0ef41Sopenharmony_ci assert_equals(reader[a], null, 201cb0ef41Sopenharmony_ci "event handler attribute should initially be null"); 211cb0ef41Sopenharmony_ci }, "FileReader." + a + ": initial value"); 221cb0ef41Sopenharmony_ci}); 231cb0ef41Sopenharmony_ci</script> 24