dom/bindings/test/test_enums.html
author Boris Zbarsky <bzbarsky@mit.edu>
Wed, 08 Aug 2012 23:47:04 -0400
changeset 105034 e3e9040a6eb9f8e7d78fe91c98ac80d42bd06aa8
parent 99848 9ce5e415d5da386955d6ad4552c8586f8aae6e54
permissions -rw-r--r--
Bug 703855. Don't update performance timing or navigation timing state during document.open. r=jst

<!doctype html>
<meta charset=utf-8>
<title>Enums</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<script>
test(function() {
  var xhr = new XMLHttpRequest();
  xhr.open("get", "foo")
  assert_equals(xhr.responseType, "");
  xhr.responseType = "foo";
  assert_equals(xhr.responseType, "");
}, "Assigning an invalid value to an enum attribute should not throw.");
</script>