Bug 1885602 - Part 5: Implement navigating to the SUMO help topic from the menu heade...
[gecko.git] / dom / bindings / test / test_enums.html
blob95f23885bb7a8fa663b180c251e2d64aa7a43018
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>