dom/bindings/test/test_enums.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/bindings/test/test_enums.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,15 @@
     1.4 +<!doctype html>
     1.5 +<meta charset=utf-8>
     1.6 +<title>Enums</title>
     1.7 +<script src=/resources/testharness.js></script>
     1.8 +<script src=/resources/testharnessreport.js></script>
     1.9 +<div id=log></div>
    1.10 +<script>
    1.11 +test(function() {
    1.12 +  var xhr = new XMLHttpRequest();
    1.13 +  xhr.open("get", "foo")
    1.14 +  assert_equals(xhr.responseType, "");
    1.15 +  xhr.responseType = "foo";
    1.16 +  assert_equals(xhr.responseType, "");
    1.17 +}, "Assigning an invalid value to an enum attribute should not throw.");
    1.18 +</script>

mercurial