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

Unified Diff: LayoutTests/fast/dom/custom/exception-from-constructor.html

Issue 1097243002: [Reland] Implement Custom Element's class side inheritance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Nits Created 5 years, 8 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/fast/dom/custom/exception-from-constructor.html
diff --git a/LayoutTests/fast/dom/custom/exception-from-constructor.html b/LayoutTests/fast/dom/custom/exception-from-constructor.html
new file mode 100644
index 0000000000000000000000000000000000000000..decefa717bb8d310750d723f8893741daa80637f
--- /dev/null
+++ b/LayoutTests/fast/dom/custom/exception-from-constructor.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<body>
+<script>
+description('Tests throwing an exception during registration of constructor');
+
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+var proto = Object.create(HTMLElement.prototype, {
+ constructor: {
+ configurable: true,
+ get: function () { throw "Exception thrown from getter"; }
+ }
+ });
+
+shouldThrow('document.registerElement("x-a", {prototype: proto})', '"Exception thrown from getter"');
+</script>

Powered by Google App Engine
This is Rietveld 408576698