test_enums.html (488B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <title>Enums</title> 4 <script src=/resources/testharness.js></script> 5 <script src=/resources/testharnessreport.js></script> 6 <div id=log></div> 7 <script> 8 /* global test, assert_equals */ 9 test(function() { 10 var xhr = new XMLHttpRequest(); 11 xhr.open("get", "foo"); 12 assert_equals(xhr.responseType, ""); 13 xhr.responseType = "foo"; 14 assert_equals(xhr.responseType, ""); 15 }, "Assigning an invalid value to an enum attribute should not throw."); 16 </script>