Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Side by Side Diff: LayoutTests/http/tests/custom/xhr-response-does-not-have-registry.html

Issue 132203012: Make Custom Element registration context creation explicit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Nicer. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4 <script>
5 (function() {
6
7 var t = async_test('an XHR response document must not have a registry');
8
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();
16 }
17 });
18 req.open('GET', 'resources/blank.html', true);
19 req.responseType = 'document';
20 req.send();
21
22 })();
23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698