Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / custom / xhr-response-does-not-have-registry.html
blob0cff95e622bcd1cfea9b55a13158cdb9bbc2598e
1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4 <script>
5 (function() {
7 var t = async_test('an XHR response document must not have a registry');
9 var req = new XMLHttpRequest();
10 req.onreadystatechange = t.step_func(function() {
11 if (req.readyState == 4 && req.status == 200) {
12 assert_throws(
13 'NOT_SUPPORTED_ERR',
14 function () { req.response.registerElement('x-a'); });
15 t.done();
17 });
18 req.open('GET', 'resources/blank.html', true);
19 req.responseType = 'document';
20 req.send();
22 })();
23 </script>