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

Unified 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, 11 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/custom/xhr-response-does-not-have-registry.html
diff --git a/LayoutTests/http/tests/custom/xhr-response-does-not-have-registry.html b/LayoutTests/http/tests/custom/xhr-response-does-not-have-registry.html
new file mode 100644
index 0000000000000000000000000000000000000000..0cff95e622bcd1cfea9b55a13158cdb9bbc2598e
--- /dev/null
+++ b/LayoutTests/http/tests/custom/xhr-response-does-not-have-registry.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<script>
+(function() {
+
+var t = async_test('an XHR response document must not have a registry');
+
+var req = new XMLHttpRequest();
+req.onreadystatechange = t.step_func(function() {
+ if (req.readyState == 4 && req.status == 200) {
+ assert_throws(
+ 'NOT_SUPPORTED_ERR',
+ function () { req.response.registerElement('x-a'); });
+ t.done();
+ }
+});
+req.open('GET', 'resources/blank.html', true);
+req.responseType = 'document';
+req.send();
+
+})();
+</script>

Powered by Google App Engine
This is Rietveld 408576698